Make 4-port LAN and 1 port wan configurations work
authorFlorian Fainelli <florian@openwrt.org>
Wed, 26 Nov 2008 15:51:55 +0000 (15:51 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 26 Nov 2008 15:51:55 +0000 (15:51 +0000)
SVN-Revision: 13362

target/linux/brcm63xx/base-files/etc/config/network [new file with mode: 0644]
target/linux/brcm63xx/patches-2.6.27/011-add_preliminary_board_support.patch

diff --git a/target/linux/brcm63xx/base-files/etc/config/network b/target/linux/brcm63xx/base-files/etc/config/network
new file mode 100644 (file)
index 0000000..c15fdd8
--- /dev/null
@@ -0,0 +1,19 @@
+# Copyright (C) 2008 OpenWrt.org
+
+config interface loopback
+        option ifname   lo
+        option proto    static
+        option ipaddr   127.0.0.1
+        option netmask  255.0.0.0
+
+config interface lan
+        option type     bridge
+        option ifname   eth1
+        option proto    static
+        option ipaddr   192.168.1.1
+        option netmask  255.255.255.0
+        option nat      1
+
+config interface wan
+       option ifname   eth0
+       option proto    dhcp
index 1d8789fd7a6f2e6c60c0a50e2834e756682e511e..847cd89b7445fb71964675aa70a51fc9bfc216d3 100644 (file)
@@ -56,7 +56,7 @@ Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
 +obj-$(CONFIG_BOARD_BCM963XX)          += board_bcm963xx.o
 --- /dev/null
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +obj-$(CONFIG_BOARD_BCM963XX)          += board_bcm963xx.o
 --- /dev/null
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -0,0 +1,353 @@
+@@ -0,0 +1,358 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
 + * License.  See the file "COPYING" in the main directory of this archive
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
 + * License.  See the file "COPYING" in the main directory of this archive
@@ -138,12 +138,17 @@ Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
 +      .expected_cpu_id                = 0x6348,
 +
 +      .has_enet0                      = 1,
 +      .expected_cpu_id                = 0x6348,
 +
 +      .has_enet0                      = 1,
++      .has_enet1                      = 1,
 +      .has_pci                        = 1,
 +
 +      .enet0 = {
 +              .has_phy                = 1,
 +              .use_internal_phy       = 1,
 +      },
 +      .has_pci                        = 1,
 +
 +      .enet0 = {
 +              .has_phy                = 1,
 +              .use_internal_phy       = 1,
 +      },
++      .enet1 = {
++              .force_speed_100        = 1,
++              .force_duplex_full      = 1,
++      },
 +};
 +#endif
 +
 +};
 +#endif
 +