aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-26 07:39:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-26 07:39:30 +0000
commitcaeb4fe1553102c06a737a6045bd7d8c2e162f24 (patch)
treea5c30e4e36ecd8a88a1d68e23c4cd40ff5bf1bf3 /target/linux
parent328ed6a45e194635360db5d2526e2b9a6ea7efcd (diff)
downloadupstream-caeb4fe1553102c06a737a6045bd7d8c2e162f24.tar.gz
upstream-caeb4fe1553102c06a737a6045bd7d8c2e162f24.tar.bz2
upstream-caeb4fe1553102c06a737a6045bd7d8c2e162f24.zip
[ar71xx] preliminary support for the Ubiquiti RouterStation Pro
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14666 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c13
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/prom.c3
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h1
3 files changed, 17 insertions, 0 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 85fa27e081..f05d8cbdd7 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
@@ -106,6 +106,19 @@ static void __init ubnt_rs_setup(void)
MIPS_MACHINE(AR71XX_MACH_UBNT_RS, "Ubiquiti RouterStation", ubnt_rs_setup);
+static void __init ubnt_rspro_setup(void)
+{
+ ar71xx_add_device_spi(NULL, ubnt_spi_info,
+ ARRAY_SIZE(ubnt_spi_info));
+
+ ar71xx_add_device_usb();
+
+ ar71xx_pci_init(ARRAY_SIZE(ubnt_pci_irqs), ubnt_pci_irqs);
+}
+
+MIPS_MACHINE(AR71XX_MACH_UBNT_RSPRO, "Ubiquiti RouterStation Pro",
+ ubnt_rspro_setup);
+
static void __init ubnt_lsx_setup(void)
{
ar71xx_add_device_spi(NULL, ubnt_spi_info,
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
index 4786badf12..aa4da8e231 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
@@ -60,6 +60,9 @@ static struct board_rec boards[] __initdata = {
.name = "UBNT-RS",
.mach_type = AR71XX_MACH_UBNT_RS,
}, {
+ .name = "UBNT-RSPRO",
+ .mach_type = AR71XX_MACH_UBNT_RSPRO,
+ }, {
.name = "Ubiquiti AR71xx-based board",
.mach_type = AR71XX_MACH_UBNT_RS,
}, {
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
index a2d884f668..ae4e3891f7 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h
@@ -128,6 +128,7 @@ extern unsigned long ar71xx_mach_type;
#define AR71XX_MACH_MZK_W04NU 14 /* Planex MZK-W04NU */
#define AR71XX_MACH_UBNT_LSSR71 15 /* Ubiquiti LS-SR71 */
#define AR71XX_MACH_TL_WR941ND 16 /* TP-LINK TL-WR941ND */
+#define AR71XX_MACH_UBNT_RSPRO 17 /* Ubiquiti RouterStation Pro */
/*
* PLL block