ramips: make built-in switch transparent for ALL0256N and ALL5002
authorGabor Juhos <juhosg@openwrt.org>
Wed, 29 Aug 2012 10:37:47 +0000 (10:37 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 29 Aug 2012 10:37:47 +0000 (10:37 +0000)
This allows them to transparently communicate with an external VLAN switch.

Signed-off-by: Daniel Golle <dgolle@allnet.de>
SVN-Revision: 33305

target/linux/ramips/base-files/etc/uci-defaults/network
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-all0256n.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-all5002.c

index d20b60af06054e1b30b6b7a231f4692f1d4e9b14..76c690198e7fe4de14b5e0481433c801c222f7d2 100755 (executable)
@@ -42,7 +42,10 @@ ramips_setup_interfaces()
 
        case $board in
        all0256n | \
-       all5002 | \
+       all5002)
+               ucidef_set_interface_lan "eth0"
+               ;;
+
        dir-615-h1 | \
        wl-330n)
                ucidef_set_interface_lan "eth0.1"
index d30300e2dad4a3098da6836f81cced30f9bc7091..7f5e00b418c2289cf9b173911110219bec78ddb2 100644 (file)
@@ -75,7 +75,7 @@ static void __init all0256n_init(void)
        rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT);
        rt305x_register_spi(all0256n_spi_slave_info,
                            ARRAY_SIZE(all0256n_spi_slave_info));
-       rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_WLLLL;
+       rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_NONE;
        rt305x_register_ethernet();
        ramips_register_gpio_leds(-1, ARRAY_SIZE(all0256n_leds_gpio),
                                  all0256n_leds_gpio);
index e9d1f41da778fe3a97641ff4b1362e2fa639d6b9..151671acbc42d90870fe10fb12da4c7948c5956d 100644 (file)
@@ -50,7 +50,7 @@ static void __init all5002_init(void)
        rt305x_gpio_init(RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT);
        rt305x_register_spi(all5002_spi_slave_info,
                            ARRAY_SIZE(all5002_spi_slave_info));
-       rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_LLLLW;
+       rt305x_esw_data.vlan_config = RT305X_ESW_VLAN_CONFIG_NONE;
        rt305x_register_ethernet();
        rt305x_register_wifi();
        rt305x_register_wdt();