From b8b15dbe4232183eeae2ca39c45dd711dc9568b2 Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 19 Dec 2008 19:17:53 +0000 Subject: [ar71xx] rename RouterStation stuff, and add machine type for the LSX board git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13694 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig | 4 +-- .../linux/ar71xx/files/arch/mips/ar71xx/Makefile | 2 +- .../files/arch/mips/ar71xx/mach-routerstation.c | 37 ---------------------- .../ar71xx/files/arch/mips/ar71xx/mach-ubnt.c | 37 ++++++++++++++++++++++ 4 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 target/linux/ar71xx/files/arch/mips/ar71xx/mach-routerstation.c create mode 100644 target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c (limited to 'target/linux/ar71xx/files/arch/mips') diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig index d16fdb824..66500a94b 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig @@ -31,8 +31,8 @@ config AR71XX_MACH_TEW_632BRP bool "TRENDnet TEW-632BRP support" default y -config AR71XX_MACH_ROUTERSTATION - bool "Ubiquiti RouterStation support" +config AR71XX_MACH_UBNT + bool "Ubiquiti AR71xx based boards support" default y endmenu diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile b/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile index f53dc9daf..902cbc353 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile @@ -14,6 +14,6 @@ obj-$(CONFIG_AR71XX_MACH_AP83) += mach-ap83.o obj-$(CONFIG_AR71XX_MACH_AW_NR580) += mach-aw-nr580.o obj-$(CONFIG_AR71XX_MACH_GENERIC) += mach-generic.o obj-$(CONFIG_AR71XX_MACH_RB_4XX) += mach-rb-4xx.o -obj-$(CONFIG_AR71XX_MACH_ROUTERSTATION) += mach-routerstation.o obj-$(CONFIG_AR71XX_MACH_TEW_632BRP) += mach-tew-632brp.o +obj-$(CONFIG_AR71XX_MACH_UBNT) += mach-ubnt.o obj-$(CONFIG_AR71XX_MACH_WP543) += mach-wp543.o diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-routerstation.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-routerstation.c deleted file mode 100644 index a8de7117f..000000000 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-routerstation.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Ubiquiti RouterStation support - * - * Copyright (C) 2008 Gabor Juhos - * Copyright (C) 2008 Imre Kaloz - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. - */ - -#include -#include -#include - -#include -#include -#include -#include - -static struct spi_board_info routerstation_spi_info[] = { - { - .bus_num = 0, - .chip_select = 0, - .max_speed_hz = 25000000, - .modalias = "m25p80", - } -}; - -static void __init routerstation_setup(void) -{ - ar71xx_add_device_spi(NULL, routerstation_spi_info, - ARRAY_SIZE(routerstation_spi_info)); -} - -MIPS_MACHINE(AR71XX_MACH_ROUTERSTATION, "Ubiquiti RouterStation", - routerstation_setup); diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c new file mode 100644 index 000000000..b1b18f9d4 --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c @@ -0,0 +1,37 @@ +/* + * Ubiquiti RouterStation support + * + * Copyright (C) 2008 Gabor Juhos + * Copyright (C) 2008 Imre Kaloz + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +#include +#include +#include + +#include +#include +#include +#include + +static struct spi_board_info routerstation_spi_info[] = { + { + .bus_num = 0, + .chip_select = 0, + .max_speed_hz = 25000000, + .modalias = "m25p80", + } +}; + +static void __init routerstation_setup(void) +{ + ar71xx_add_device_spi(NULL, routerstation_spi_info, + ARRAY_SIZE(routerstation_spi_info)); +} + +MIPS_MACHINE(AR71XX_MACH_UBNT_RS, "Ubiquiti RouterStation", + routerstation_setup); -- cgit v1.2.3