diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2009-07-21 18:55:02 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2009-07-21 18:55:02 +0000 |
commit | 78fae87beb5ba2c0afd3beb7176f735c00ea5f04 (patch) | |
tree | 9a62409527a36f12fe5ea9a13514c73418490405 /target/linux/orion/patches/020-wnr854t_switch_support.patch | |
parent | 087fcb0eb3b7b53a4867232d69d4bab0d93e302d (diff) | |
download | master-187ad058-78fae87beb5ba2c0afd3beb7176f735c00ea5f04.tar.gz master-187ad058-78fae87beb5ba2c0afd3beb7176f735c00ea5f04.tar.bz2 master-187ad058-78fae87beb5ba2c0afd3beb7176f735c00ea5f04.zip |
upgrade orion to 2.6.30.2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16950 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/orion/patches/020-wnr854t_switch_support.patch')
-rw-r--r-- | target/linux/orion/patches/020-wnr854t_switch_support.patch | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/target/linux/orion/patches/020-wnr854t_switch_support.patch b/target/linux/orion/patches/020-wnr854t_switch_support.patch index 564474a02e..f62b56944e 100644 --- a/target/linux/orion/patches/020-wnr854t_switch_support.patch +++ b/target/linux/orion/patches/020-wnr854t_switch_support.patch @@ -8,11 +8,11 @@ #include <asm/mach-types.h> #include <asm/gpio.h> #include <asm/mach/arch.h> -@@ -97,6 +98,15 @@ static struct mv643xx_eth_platform_data +@@ -97,6 +98,20 @@ static struct mv643xx_eth_platform_data .duplex = DUPLEX_FULL, }; -+static struct dsa_platform_data wnr854t_switch_data = { ++static struct dsa_chip_data wnr854t_switch_chip_data = { + .port_names[0] = "lan3", + .port_names[1] = "lan4", + .port_names[2] = "wan", @@ -21,14 +21,19 @@ + .port_names[7] = "lan2", +}; + ++static struct dsa_platform_data wnr854t_switch_plat_data = { ++ .nr_chips = 1, ++ .chip = &wnr854t_switch_chip_data, ++}; ++ static void __init wnr854t_init(void) { /* -@@ -110,6 +120,7 @@ static void __init wnr854t_init(void) +@@ -110,6 +125,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_eth_switch_init(&wnr854t_switch_plat_data, NO_IRQ); orion5x_uart0_init(); orion5x_setup_dev_boot_win(WNR854T_NOR_BOOT_BASE, |