diff options
author | David S. Miller <davem@davemloft.net> | 2009-03-27 20:19:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-27 20:19:16 -0400 |
commit | a83398570e17af6bb81eb94f4f5dd356bd2828d8 (patch) | |
tree | 5b5c7c3a56898485479291b7c964a1f3887d469c /arch/arm/mach-kirkwood | |
parent | f9384d41c02408dd404aa64d66d0ef38adcf6479 (diff) | |
parent | 0b4d569de222452bcb55a4a536ade6cf4d8d1e30 (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'arch/arm/mach-kirkwood')
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/rd88f6281-setup.c | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index b3404b7775b3..0d2074f51a59 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -231,14 +231,17 @@ static struct platform_device kirkwood_switch_device = { | |||
231 | 231 | ||
232 | void __init kirkwood_ge00_switch_init(struct dsa_platform_data *d, int irq) | 232 | void __init kirkwood_ge00_switch_init(struct dsa_platform_data *d, int irq) |
233 | { | 233 | { |
234 | int i; | ||
235 | |||
234 | if (irq != NO_IRQ) { | 236 | if (irq != NO_IRQ) { |
235 | kirkwood_switch_resources[0].start = irq; | 237 | kirkwood_switch_resources[0].start = irq; |
236 | kirkwood_switch_resources[0].end = irq; | 238 | kirkwood_switch_resources[0].end = irq; |
237 | kirkwood_switch_device.num_resources = 1; | 239 | kirkwood_switch_device.num_resources = 1; |
238 | } | 240 | } |
239 | 241 | ||
240 | d->mii_bus = &kirkwood_ge00_shared.dev; | ||
241 | d->netdev = &kirkwood_ge00.dev; | 242 | d->netdev = &kirkwood_ge00.dev; |
243 | for (i = 0; i < d->nr_chips; i++) | ||
244 | d->chip[i].mii_bus = &kirkwood_ge00_shared.dev; | ||
242 | kirkwood_switch_device.dev.platform_data = d; | 245 | kirkwood_switch_device.dev.platform_data = d; |
243 | 246 | ||
244 | platform_device_register(&kirkwood_switch_device); | 247 | platform_device_register(&kirkwood_switch_device); |
diff --git a/arch/arm/mach-kirkwood/rd88f6281-setup.c b/arch/arm/mach-kirkwood/rd88f6281-setup.c index 9a0e905d10cd..e1c0516c4df3 100644 --- a/arch/arm/mach-kirkwood/rd88f6281-setup.c +++ b/arch/arm/mach-kirkwood/rd88f6281-setup.c | |||
@@ -75,7 +75,7 @@ static struct mv643xx_eth_platform_data rd88f6281_ge00_data = { | |||
75 | .duplex = DUPLEX_FULL, | 75 | .duplex = DUPLEX_FULL, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static struct dsa_platform_data rd88f6281_switch_data = { | 78 | static struct dsa_chip_data rd88f6281_switch_chip_data = { |
79 | .port_names[0] = "lan1", | 79 | .port_names[0] = "lan1", |
80 | .port_names[1] = "lan2", | 80 | .port_names[1] = "lan2", |
81 | .port_names[2] = "lan3", | 81 | .port_names[2] = "lan3", |
@@ -83,6 +83,11 @@ static struct dsa_platform_data rd88f6281_switch_data = { | |||
83 | .port_names[5] = "cpu", | 83 | .port_names[5] = "cpu", |
84 | }; | 84 | }; |
85 | 85 | ||
86 | static struct dsa_platform_data rd88f6281_switch_plat_data = { | ||
87 | .nr_chips = 1, | ||
88 | .chip = &rd88f6281_switch_chip_data, | ||
89 | }; | ||
90 | |||
86 | static struct mv643xx_eth_platform_data rd88f6281_ge01_data = { | 91 | static struct mv643xx_eth_platform_data rd88f6281_ge01_data = { |
87 | .phy_addr = MV643XX_ETH_PHY_ADDR(11), | 92 | .phy_addr = MV643XX_ETH_PHY_ADDR(11), |
88 | }; | 93 | }; |
@@ -105,12 +110,12 @@ static void __init rd88f6281_init(void) | |||
105 | kirkwood_ge00_init(&rd88f6281_ge00_data); | 110 | kirkwood_ge00_init(&rd88f6281_ge00_data); |
106 | kirkwood_pcie_id(&dev, &rev); | 111 | kirkwood_pcie_id(&dev, &rev); |
107 | if (rev == MV88F6281_REV_A0) { | 112 | if (rev == MV88F6281_REV_A0) { |
108 | rd88f6281_switch_data.sw_addr = 10; | 113 | rd88f6281_switch_chip_data.sw_addr = 10; |
109 | kirkwood_ge01_init(&rd88f6281_ge01_data); | 114 | kirkwood_ge01_init(&rd88f6281_ge01_data); |
110 | } else { | 115 | } else { |
111 | rd88f6281_switch_data.port_names[4] = "wan"; | 116 | rd88f6281_switch_chip_data.port_names[4] = "wan"; |
112 | } | 117 | } |
113 | kirkwood_ge00_switch_init(&rd88f6281_switch_data, NO_IRQ); | 118 | kirkwood_ge00_switch_init(&rd88f6281_switch_plat_data, NO_IRQ); |
114 | 119 | ||
115 | kirkwood_rtc_init(); | 120 | kirkwood_rtc_init(); |
116 | kirkwood_sata_init(&rd88f6281_sata_data); | 121 | kirkwood_sata_init(&rd88f6281_sata_data); |