diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-10-15 19:03:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-10-15 19:03:31 +0000 |
commit | 3b90e01db8852a89a0925e0b44faec6119d6c5c9 (patch) | |
tree | be13b9b6113f5c710e87f990c64390ff0c66981b /target/linux/ar71xx/files/arch | |
parent | a312d0611d6c8da5b08ca770a36455e7cad779a7 (diff) | |
download | mtk-20170518-3b90e01db8852a89a0925e0b44faec6119d6c5c9.zip mtk-20170518-3b90e01db8852a89a0925e0b44faec6119d6c5c9.tar.gz mtk-20170518-3b90e01db8852a89a0925e0b44faec6119d6c5c9.tar.bz2 |
preliminary support for the RB-493/AH, based on a patch by Carl Riechers
SVN-Revision: 12986
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c index 7193849..dce2058 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c @@ -212,3 +212,26 @@ static void __init rb450_setup(void) } MIPS_MACHINE(MACH_AR71XX_RB_450, "MikroTik RouterBOARD 450", rb450_setup); + +static void __init rb493_setup(void) +{ + rb4xx_add_device_spi(); + +#if 0 + ar71xx_add_device_mdio(0x3fffff00); + ar71xx_add_device_eth(0, PHY_INTERFACE_MODE_MII, 0x00000000); + ar71xx_add_device_eth(1, PHY_INTERFACE_MODE_RMII, 0x00000001); +#endif + + ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio), + rb4xx_leds_gpio); + + ar71xx_add_device_gpio_buttons(-1, RB4XX_BUTTONS_POLL_INTERVAL, + ARRAY_SIZE(rb4xx_gpio_buttons), + rb4xx_gpio_buttons); + + platform_device_register(&rb4xx_nand_device); +} + +MIPS_MACHINE(MACH_AR71XX_RB_493, "MikroTik RouterBOARD 493/AH", rb493_setup); + |