aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x/common.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-04-26 14:48:11 -0400
committerNicolas Pitre <nico@cam.org>2008-05-09 10:39:34 -0400
commitd236f5a5f77183c270223e8816804e7763463282 (patch)
treefccb0ca71b01aa6877a7f98290f7e1e203b4b333 /arch/arm/mach-orion5x/common.c
parent28a4acb48586dc21d2d14a75a7aab7be78b7c83b (diff)
[ARM] Orion: use mv643xx_eth driver mbus window handling
Make the Orion 5x platform code use the mbus window handling code that's in the mv643xx_eth driver, instead of programming the GigE block's mbus window registers by hand. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Reviewed-by: Tzachi Perelstein <tzachi@marvell.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-orion5x/common.c')
-rw-r--r--arch/arm/mach-orion5x/common.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c
index 0ecff5a61972..da6e5deab073 100644
--- a/arch/arm/mach-orion5x/common.c
+++ b/arch/arm/mach-orion5x/common.c
@@ -190,6 +190,10 @@ static struct platform_device orion5x_ehci1 = {
190 * (The Orion and Discovery (MV643xx) families use the same Ethernet driver) 190 * (The Orion and Discovery (MV643xx) families use the same Ethernet driver)
191 ****************************************************************************/ 191 ****************************************************************************/
192 192
193struct mv643xx_eth_shared_platform_data orion5x_eth_shared_data = {
194 .dram = &orion5x_mbus_dram_info,
195};
196
193static struct resource orion5x_eth_shared_resources[] = { 197static struct resource orion5x_eth_shared_resources[] = {
194 { 198 {
195 .start = ORION5X_ETH_PHYS_BASE + 0x2000, 199 .start = ORION5X_ETH_PHYS_BASE + 0x2000,
@@ -201,6 +205,9 @@ static struct resource orion5x_eth_shared_resources[] = {
201static struct platform_device orion5x_eth_shared = { 205static struct platform_device orion5x_eth_shared = {
202 .name = MV643XX_ETH_SHARED_NAME, 206 .name = MV643XX_ETH_SHARED_NAME,
203 .id = 0, 207 .id = 0,
208 .dev = {
209 .platform_data = &orion5x_eth_shared_data,
210 },
204 .num_resources = 1, 211 .num_resources = 1,
205 .resource = orion5x_eth_shared_resources, 212 .resource = orion5x_eth_shared_resources,
206}; 213};
@@ -362,7 +369,6 @@ void __init orion5x_init(void)
362 * Setup Orion address map 369 * Setup Orion address map
363 */ 370 */
364 orion5x_setup_cpu_mbus_bridge(); 371 orion5x_setup_cpu_mbus_bridge();
365 orion5x_setup_eth_wins();
366 372
367 /* 373 /*
368 * Register devices. 374 * Register devices.