diff options
Diffstat (limited to 'arch/arm/mach-mv78xx0/common.c')
-rw-r--r-- | arch/arm/mach-mv78xx0/common.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/arm/mach-mv78xx0/common.c b/arch/arm/mach-mv78xx0/common.c index 953a26c469cb..238a2f8c2d52 100644 --- a/arch/arm/mach-mv78xx0/common.c +++ b/arch/arm/mach-mv78xx0/common.c | |||
@@ -285,6 +285,11 @@ static struct resource mv78xx0_ge00_shared_resources[] = { | |||
285 | .start = GE00_PHYS_BASE + 0x2000, | 285 | .start = GE00_PHYS_BASE + 0x2000, |
286 | .end = GE00_PHYS_BASE + 0x3fff, | 286 | .end = GE00_PHYS_BASE + 0x3fff, |
287 | .flags = IORESOURCE_MEM, | 287 | .flags = IORESOURCE_MEM, |
288 | }, { | ||
289 | .name = "ge err irq", | ||
290 | .start = IRQ_MV78XX0_GE_ERR, | ||
291 | .end = IRQ_MV78XX0_GE_ERR, | ||
292 | .flags = IORESOURCE_IRQ, | ||
288 | }, | 293 | }, |
289 | }; | 294 | }; |
290 | 295 | ||
@@ -294,7 +299,7 @@ static struct platform_device mv78xx0_ge00_shared = { | |||
294 | .dev = { | 299 | .dev = { |
295 | .platform_data = &mv78xx0_ge00_shared_data, | 300 | .platform_data = &mv78xx0_ge00_shared_data, |
296 | }, | 301 | }, |
297 | .num_resources = 1, | 302 | .num_resources = ARRAY_SIZE(mv78xx0_ge00_shared_resources), |
298 | .resource = mv78xx0_ge00_shared_resources, | 303 | .resource = mv78xx0_ge00_shared_resources, |
299 | }; | 304 | }; |
300 | 305 | ||
@@ -330,6 +335,7 @@ void __init mv78xx0_ge00_init(struct mv643xx_eth_platform_data *eth_data) | |||
330 | struct mv643xx_eth_shared_platform_data mv78xx0_ge01_shared_data = { | 335 | struct mv643xx_eth_shared_platform_data mv78xx0_ge01_shared_data = { |
331 | .t_clk = 0, | 336 | .t_clk = 0, |
332 | .dram = &mv78xx0_mbus_dram_info, | 337 | .dram = &mv78xx0_mbus_dram_info, |
338 | .shared_smi = &mv78xx0_ge00_shared, | ||
333 | }; | 339 | }; |
334 | 340 | ||
335 | static struct resource mv78xx0_ge01_shared_resources[] = { | 341 | static struct resource mv78xx0_ge01_shared_resources[] = { |
@@ -370,7 +376,6 @@ static struct platform_device mv78xx0_ge01 = { | |||
370 | void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data) | 376 | void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data) |
371 | { | 377 | { |
372 | eth_data->shared = &mv78xx0_ge01_shared; | 378 | eth_data->shared = &mv78xx0_ge01_shared; |
373 | eth_data->shared_smi = &mv78xx0_ge00_shared; | ||
374 | mv78xx0_ge01.dev.platform_data = eth_data; | 379 | mv78xx0_ge01.dev.platform_data = eth_data; |
375 | 380 | ||
376 | platform_device_register(&mv78xx0_ge01_shared); | 381 | platform_device_register(&mv78xx0_ge01_shared); |
@@ -384,6 +389,7 @@ void __init mv78xx0_ge01_init(struct mv643xx_eth_platform_data *eth_data) | |||
384 | struct mv643xx_eth_shared_platform_data mv78xx0_ge10_shared_data = { | 389 | struct mv643xx_eth_shared_platform_data mv78xx0_ge10_shared_data = { |
385 | .t_clk = 0, | 390 | .t_clk = 0, |
386 | .dram = &mv78xx0_mbus_dram_info, | 391 | .dram = &mv78xx0_mbus_dram_info, |
392 | .shared_smi = &mv78xx0_ge00_shared, | ||
387 | }; | 393 | }; |
388 | 394 | ||
389 | static struct resource mv78xx0_ge10_shared_resources[] = { | 395 | static struct resource mv78xx0_ge10_shared_resources[] = { |
@@ -424,7 +430,6 @@ static struct platform_device mv78xx0_ge10 = { | |||
424 | void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data) | 430 | void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data) |
425 | { | 431 | { |
426 | eth_data->shared = &mv78xx0_ge10_shared; | 432 | eth_data->shared = &mv78xx0_ge10_shared; |
427 | eth_data->shared_smi = &mv78xx0_ge00_shared; | ||
428 | mv78xx0_ge10.dev.platform_data = eth_data; | 433 | mv78xx0_ge10.dev.platform_data = eth_data; |
429 | 434 | ||
430 | platform_device_register(&mv78xx0_ge10_shared); | 435 | platform_device_register(&mv78xx0_ge10_shared); |
@@ -438,6 +443,7 @@ void __init mv78xx0_ge10_init(struct mv643xx_eth_platform_data *eth_data) | |||
438 | struct mv643xx_eth_shared_platform_data mv78xx0_ge11_shared_data = { | 443 | struct mv643xx_eth_shared_platform_data mv78xx0_ge11_shared_data = { |
439 | .t_clk = 0, | 444 | .t_clk = 0, |
440 | .dram = &mv78xx0_mbus_dram_info, | 445 | .dram = &mv78xx0_mbus_dram_info, |
446 | .shared_smi = &mv78xx0_ge00_shared, | ||
441 | }; | 447 | }; |
442 | 448 | ||
443 | static struct resource mv78xx0_ge11_shared_resources[] = { | 449 | static struct resource mv78xx0_ge11_shared_resources[] = { |
@@ -478,7 +484,6 @@ static struct platform_device mv78xx0_ge11 = { | |||
478 | void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data) | 484 | void __init mv78xx0_ge11_init(struct mv643xx_eth_platform_data *eth_data) |
479 | { | 485 | { |
480 | eth_data->shared = &mv78xx0_ge11_shared; | 486 | eth_data->shared = &mv78xx0_ge11_shared; |
481 | eth_data->shared_smi = &mv78xx0_ge00_shared; | ||
482 | mv78xx0_ge11.dev.platform_data = eth_data; | 487 | mv78xx0_ge11.dev.platform_data = eth_data; |
483 | 488 | ||
484 | platform_device_register(&mv78xx0_ge11_shared); | 489 | platform_device_register(&mv78xx0_ge11_shared); |