ramips: enable MDIO on the HW550-3G board
authorGabor Juhos <juhosg@openwrt.org>
Sun, 27 Mar 2011 19:19:41 +0000 (19:19 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 27 Mar 2011 19:19:41 +0000 (19:19 +0000)
SVN-Revision: 26321

target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c

index 3770760fdcb00289973b6fd933c1718b9d7474a6..37fc6fd43fb29f4ba139c6aff97a458caf77b7b6 100644 (file)
@@ -122,9 +122,13 @@ static struct gpio_button hw550_3g_gpio_buttons[] __initdata = {
        }
 };
 
+#define HW550_3G_GPIO_MODE \
+       ((RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT) | \
+        RT305X_GPIO_MODE_MDIO)
+
 static void __init hw550_3g_init(void)
 {
-       rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT);
+       rt305x_gpio_init(HW550_3G_GPIO_MODE);
 
        rt305x_register_flash(0, &hw550_3g_flash_data);
        rt305x_register_ethernet();