aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x/common.c
diff options
context:
space:
mode:
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.