diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2008-12-10 11:54:21 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2008-12-10 11:54:21 +0000 |
commit | 378d80d615a59a839a945d8c67dbe7ece99f6ef3 (patch) | |
tree | d41f7b9ad0d5b6f1d3fe9aae6d289c11139ba73f /target/linux/orion/patches/020-wnr854t_switch_support.patch | |
parent | d9475220de9458914775d0abaa4003e4bb8ae7f0 (diff) | |
download | upstream-378d80d615a59a839a945d8c67dbe7ece99f6ef3.tar.gz upstream-378d80d615a59a839a945d8c67dbe7ece99f6ef3.tar.bz2 upstream-378d80d615a59a839a945d8c67dbe7ece99f6ef3.zip |
upgrade orion to 2.6.28-rc7
SVN-Revision: 13580
Diffstat (limited to 'target/linux/orion/patches/020-wnr854t_switch_support.patch')
-rw-r--r-- | target/linux/orion/patches/020-wnr854t_switch_support.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/orion/patches/020-wnr854t_switch_support.patch b/target/linux/orion/patches/020-wnr854t_switch_support.patch new file mode 100644 index 0000000000..564474a02e --- /dev/null +++ b/target/linux/orion/patches/020-wnr854t_switch_support.patch @@ -0,0 +1,34 @@ +--- a/arch/arm/mach-orion5x/wnr854t-setup.c ++++ b/arch/arm/mach-orion5x/wnr854t-setup.c +@@ -15,6 +15,7 @@ + #include <linux/mtd/physmap.h> + #include <linux/mv643xx_eth.h> + #include <linux/ethtool.h> ++#include <net/dsa.h> + #include <asm/mach-types.h> + #include <asm/gpio.h> + #include <asm/mach/arch.h> +@@ -97,6 +98,15 @@ static struct mv643xx_eth_platform_data + .duplex = DUPLEX_FULL, + }; + ++static struct dsa_platform_data wnr854t_switch_data = { ++ .port_names[0] = "lan3", ++ .port_names[1] = "lan4", ++ .port_names[2] = "wan", ++ .port_names[3] = "cpu", ++ .port_names[5] = "lan1", ++ .port_names[7] = "lan2", ++}; ++ + static void __init wnr854t_init(void) + { + /* +@@ -110,6 +120,7 @@ static void __init wnr854t_init(void) + * Configure peripherals. + */ + orion5x_eth_init(&wnr854t_eth_data); ++ orion5x_eth_switch_init(&wnr854t_switch_data, NO_IRQ); + orion5x_uart0_init(); + + orion5x_setup_dev_boot_win(WNR854T_NOR_BOOT_BASE, |