diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-12-29 17:54:16 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-12-29 17:54:16 +0000 |
commit | f325f9116503d9ed40dfc8cb0116ffef7d18989f (patch) | |
tree | b427698e1de1829d1d47562a01714fce63ae6662 /target/linux/ar71xx/files | |
parent | 0e14d8982c412826e1a2d61a4e94bf9a6703f8dc (diff) | |
download | master-187ad058-f325f9116503d9ed40dfc8cb0116ffef7d18989f.tar.gz master-187ad058-f325f9116503d9ed40dfc8cb0116ffef7d18989f.tar.bz2 master-187ad058-f325f9116503d9ed40dfc8cb0116ffef7d18989f.zip |
[ar71xx] add experimental support for the Ubiquiti LSX board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13759 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c index 197be7b581..b23d4a973f 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c @@ -25,7 +25,7 @@ #define UBNT_BUTTONS_POLL_INTERVAL 20 -static struct spi_board_info ubnt_rs_spi_info[] = { +static struct spi_board_info ubnt_spi_info[] = { { .bus_num = 0, .chip_select = 0, @@ -74,8 +74,8 @@ static struct gpio_button ubnt_rs_gpio_buttons[] __initdata = { static void __init ubnt_rs_setup(void) { - ar71xx_add_device_spi(NULL, ubnt_rs_spi_info, - ARRAY_SIZE(ubnt_rs_spi_info)); + ar71xx_add_device_spi(NULL, ubnt_spi_info, + ARRAY_SIZE(ubnt_spi_info)); ar71xx_add_device_mdio(~(UBNT_RS_WAN_PHYMASK | UBNT_RS_LAN_PHYMASK)); @@ -104,3 +104,11 @@ static void __init ubnt_rs_setup(void) } MIPS_MACHINE(AR71XX_MACH_UBNT_RS, "Ubiquiti RouterStation", ubnt_rs_setup); + +static void __init ubnt_lsx_setup(void) +{ + ar71xx_add_device_spi(NULL, ubnt_spi_info, + ARRAY_SIZE(ubnt_spi_info)); +} + +MIPS_MACHINE(AR71XX_MACH_UBNT_LSX, "Ubiquiti LSX", ubnt_lsx_setup); |