preliminary support for the Ubiquiti RouterStation Pro
authorGabor Juhos <juhosg@openwrt.org>
Thu, 26 Feb 2009 07:39:30 +0000 (07:39 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 26 Feb 2009 07:39:30 +0000 (07:39 +0000)
SVN-Revision: 14666

target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
target/linux/ar71xx/files/arch/mips/ar71xx/prom.c
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h

index 85fa27e081e84249848557b6e590de5c0f1d1d1b..f05d8cbdd73cc61fd09531c4972a64c7076bb1df 100644 (file)
@@ -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,
index 4786badf121b7d5358c497ea5417052e62b33a4f..aa4da8e2317331a497dc683db37751eb74e8a693 100644 (file)
@@ -59,6 +59,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,
index a2d884f668e4a108ee39bb5ac0f462b664a95cce..ae4e3891f76b8c77c290444a7eb7ec6db254e7c0 100644 (file)
@@ -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