diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-03-27 19:19:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-03-27 19:19:41 +0000 |
commit | f599459abb2fa734222ce551f9cb62092835e3ee (patch) | |
tree | b166f16bf9db47397bc134e29f2cc1a6efa33e27 /target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c | |
parent | d701a72760317b16cdcf9329ed498a7878294642 (diff) | |
download | master-31e0f0ae-f599459abb2fa734222ce551f9cb62092835e3ee.tar.gz master-31e0f0ae-f599459abb2fa734222ce551f9cb62092835e3ee.tar.bz2 master-31e0f0ae-f599459abb2fa734222ce551f9cb62092835e3ee.zip |
ramips: enable MDIO on the HW550-3G board
SVN-Revision: 26321
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c')
-rw-r--r-- | target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c index 3770760fdc..37fc6fd43f 100644 --- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c +++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c @@ -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(); |