ar71xx: add preliminary support for the RouterBOARD 750
authorGabor Juhos <juhosg@openwrt.org>
Sun, 7 Mar 2010 05:41:01 +0000 (05:41 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 7 Mar 2010 05:41:01 +0000 (05:41 +0000)
SVN-Revision: 20029

target/linux/ar71xx/base-files/etc/defconfig/rb-750/network [new file with mode: 0644]
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/config-2.6.32
target/linux/ar71xx/config-2.6.33
target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig
target/linux/ar71xx/files/arch/mips/ar71xx/Makefile
target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c [new file with mode: 0644]
target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h

diff --git a/target/linux/ar71xx/base-files/etc/defconfig/rb-750/network b/target/linux/ar71xx/base-files/etc/defconfig/rb-750/network
new file mode 100644 (file)
index 0000000..572cd3a
--- /dev/null
@@ -0,0 +1,19 @@
+config interface loopback
+       option ifname   lo
+       option proto    static
+       option ipaddr   127.0.0.1
+       option netmask  255.0.0.0
+
+config interface eth
+       option ifname   eth0
+
+config interface lan
+       option ifname   'lan1 lan2 lan3 lan4'
+       option type     bridge
+       option proto    static
+       option ipaddr   192.168.1.1
+       option netmask  255.255.255.0
+
+config interface wan
+       option ifname   eth1
+       option proto    dhcp
index b4612dc636d381fd60a020de6733bae0db6b88a5..ad1cf7d1e2b86fe5cbbd7643ed5745eaf487bb22 100755 (executable)
@@ -67,6 +67,9 @@ ar71xx_board_name() {
        *"RouterBOARD 493/AH")
                name="rb-493"
                ;;
+       *"RouterBOARD 750")
+               name="rb-750"
+               ;;
        *"Rocket M")
                name="rocket-m"
                ;;
index 036718cd93b9fa8d4de63d6aaab6a5110a5e8614..fa36098857d9a41e9851b598e24625f61507a845 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_AR71XX_MACH_MZK_W300NH=y
 CONFIG_AR71XX_MACH_PB42=y
 CONFIG_AR71XX_MACH_PB44=y
 CONFIG_AR71XX_MACH_RB4XX=y
+CONFIG_AR71XX_MACH_RB750=y
 CONFIG_AR71XX_MACH_TEW_632BRP=y
 CONFIG_AR71XX_MACH_TL_WR1043ND=y
 CONFIG_AR71XX_MACH_TL_WR741ND=y
index 006ff03c72c4082821c31c5318f87dff3e8d4cab..40eb555dfbf5e0db19a42bfe1331f1a87ced9303 100644 (file)
@@ -28,6 +28,7 @@ CONFIG_AR71XX_MACH_MZK_W300NH=y
 CONFIG_AR71XX_MACH_PB42=y
 CONFIG_AR71XX_MACH_PB44=y
 CONFIG_AR71XX_MACH_RB4XX=y
+CONFIG_AR71XX_MACH_RB750=y
 CONFIG_AR71XX_MACH_TEW_632BRP=y
 CONFIG_AR71XX_MACH_TL_WR1043ND=y
 CONFIG_AR71XX_MACH_TL_WR741ND=y
index ee17f73fb794f7cd31a17d681d6db37e43367843..8149a54b2f3baf12133ccebc8f404bbe5f5e0c98 100644 (file)
@@ -113,6 +113,11 @@ config AR71XX_MACH_RB4XX
        select AR71XX_DEV_USB
        default n
 
+config AR71XX_MACH_RB750
+       bool "MikroTik RouterBOARD 750 support"
+       select AR71XX_DEV_AP91_ETH
+       default n
+
 config AR71XX_MACH_WNDR3700
        bool "NETGEAR WNDR3700 board support"
        select AR71XX_DEV_M25P80
index 2547ef7e41a3717967ea5fa8131aea0b96b42892..ba348e3a7b3516f525b951218a441e25f075fa71 100644 (file)
@@ -37,6 +37,7 @@ obj-$(CONFIG_AR71XX_MACH_MZK_W300NH)  += mach-mzk-w300nh.o
 obj-$(CONFIG_AR71XX_MACH_PB42)         += mach-pb42.o
 obj-$(CONFIG_AR71XX_MACH_PB44)         += mach-pb44.o
 obj-$(CONFIG_AR71XX_MACH_RB4XX)                += mach-rb4xx.o
+obj-$(CONFIG_AR71XX_MACH_RB750)                += mach-rb750.o
 obj-$(CONFIG_AR71XX_MACH_TEW_632BRP)   += mach-tew-632brp.o
 obj-$(CONFIG_AR71XX_MACH_TL_WR741ND)   += mach-tl-wr741nd.o
 obj-$(CONFIG_AR71XX_MACH_TL_WR841N_V1) += mach-tl-wr841n.o
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
new file mode 100644 (file)
index 0000000..dd481d9
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ *  MikroTik RouterBOARD 750 support
+ *
+ *  Copyright (C) 2010 Gabor Juhos <juhosg@openwrt.org>
+ *
+ *  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 <asm/mach-ar71xx/ar71xx.h>
+
+#include "machtype.h"
+#include "dev-ap91-eth.h"
+
+static void __init rb750_setup(void)
+{
+       ap91_eth_init(NULL);
+}
+
+MIPS_MACHINE(AR71XX_MACH_RB_750, "750i", "MikroTik RouterBOARD 750",
+            rb750_setup);
index b97832ff1f4394cd35cc89e2359f10ce5306624e..419cbd412a392cbc5d38c7e03716517142dfd428 100644 (file)
@@ -29,6 +29,7 @@ enum ar71xx_mach_type {
        AR71XX_MACH_RB_450,     /* MikroTik RouterBOARD 450 */
        AR71XX_MACH_RB_450G,    /* MikroTik RouterBOARD 450G */
        AR71XX_MACH_RB_493,     /* Mikrotik RouterBOARD 493/493AH */
+       AR71XX_MACH_RB_750,     /* MikroTik RouterBOARD 750 */
        AR71XX_MACH_PB42,       /* Atheros PB42 */
        AR71XX_MACH_PB44,       /* Atheros PB44 */
        AR71XX_MACH_MZK_W04NU,  /* Planex MZK-W04NU */