1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-04 21:39:29 +03:00

ramips: enable MDIO on the HW550-3G board

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26321 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2011-03-27 19:19:41 +00:00
parent 4d41fe6013
commit 2e12b6720f

View 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) 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_flash(0, &hw550_3g_flash_data);
rt305x_register_ethernet(); rt305x_register_ethernet();