diff options
author | Olof Johansson <olof@lixom.net> | 2012-03-13 20:38:09 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-03-13 20:38:09 -0400 |
commit | ae0b82504e515fdb9bc23c0b770d2b30efd49dc9 (patch) | |
tree | 665d1f26b32f9e68346a9529388fbadec519e865 /arch/arm/mach-shmobile/board-bonito.c | |
parent | f7c8faedf98aa5ec372e0191078ac7fe1e7fb067 (diff) | |
parent | a6e24019468009a21b674e392d74283a90f415dd (diff) |
Merge branch 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/renesas into next/soc
* 'soc' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/renesas: (234 commits)
ARM: shmobile: remove additional __io() macro use
ARM: mach-shmobile: default to no earlytimer
ARM: mach-shmobile: r8a7779 and Marzen timer rework
ARM: mach-shmobile: r8a7740 and Bonito timer rework
ARM: mach-shmobile: sh73a0, AG5EVM and Kota2 timer rework
ARM: mach-shmobile: sh7372, AP4EVB and Mackerel timer rework
ARM: mach-shmobile: sh7377 and G4EVM timer rework
ARM: mach-shmobile: sh7367 and G3EVM timer rework
ARM: mach-shmobile: add shmobile_earlytimer_init()
ARM: mach-shmobile: Move sh7372 AP4EVB external clk setup
ARM: mach-shmobile: Move sh7372 Mackerel external clk setup
ARM: mach-shmobile: rename clk_init() to shmobile_clk_init()
ARM: mach-shmobile: r8a7779 L2 cache support
ARM: mach-shmobile: r8a7779 map_io and init_early update
ARM: mach-shmobile: r8a7740 map_io and init_early update
ARM: mach-shmobile: sh73a0 map_io and init_early update
ARM: mach-shmobile: sh7372 map_io and init_early update
ARM: mach-shmobile: sh7377 map_io and init_early update
ARM: mach-shmobile: sh7367 map_io and init_early update
sh: remove clk_ops
...
(includes an update to v3.3-rc7)
Conflicts:
arch/arm/mach-omap2/id.c
Diffstat (limited to 'arch/arm/mach-shmobile/board-bonito.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-bonito.c | 44 |
1 files changed, 12 insertions, 32 deletions
diff --git a/arch/arm/mach-shmobile/board-bonito.c b/arch/arm/mach-shmobile/board-bonito.c index 4d2201622323..d062becd5460 100644 --- a/arch/arm/mach-shmobile/board-bonito.c +++ b/arch/arm/mach-shmobile/board-bonito.c | |||
@@ -327,28 +327,6 @@ static struct platform_device *bonito_base_devices[] __initdata = { | |||
327 | * map I/O | 327 | * map I/O |
328 | */ | 328 | */ |
329 | static struct map_desc bonito_io_desc[] __initdata = { | 329 | static struct map_desc bonito_io_desc[] __initdata = { |
330 | /* | ||
331 | * for CPGA/INTC/PFC | ||
332 | * 0xe6000000-0xefffffff -> 0xe6000000-0xefffffff | ||
333 | */ | ||
334 | { | ||
335 | .virtual = 0xe6000000, | ||
336 | .pfn = __phys_to_pfn(0xe6000000), | ||
337 | .length = 160 << 20, | ||
338 | .type = MT_DEVICE_NONSHARED | ||
339 | }, | ||
340 | #ifdef CONFIG_CACHE_L2X0 | ||
341 | /* | ||
342 | * for l2x0_init() | ||
343 | * 0xf0100000-0xf0101000 -> 0xf0002000-0xf0003000 | ||
344 | */ | ||
345 | { | ||
346 | .virtual = 0xf0002000, | ||
347 | .pfn = __phys_to_pfn(0xf0100000), | ||
348 | .length = PAGE_SIZE, | ||
349 | .type = MT_DEVICE_NONSHARED | ||
350 | }, | ||
351 | #endif | ||
352 | /* | 330 | /* |
353 | * for FPGA (0x1800000-0x19ffffff) | 331 | * for FPGA (0x1800000-0x19ffffff) |
354 | * 0x18000000-0x18002000 -> 0xf0003000-0xf0005000 | 332 | * 0x18000000-0x18002000 -> 0xf0003000-0xf0005000 |
@@ -363,11 +341,8 @@ static struct map_desc bonito_io_desc[] __initdata = { | |||
363 | 341 | ||
364 | static void __init bonito_map_io(void) | 342 | static void __init bonito_map_io(void) |
365 | { | 343 | { |
344 | r8a7740_map_io(); | ||
366 | iotable_init(bonito_io_desc, ARRAY_SIZE(bonito_io_desc)); | 345 | iotable_init(bonito_io_desc, ARRAY_SIZE(bonito_io_desc)); |
367 | |||
368 | /* setup early devices and console here as well */ | ||
369 | r8a7740_add_early_devices(); | ||
370 | shmobile_setup_console(); | ||
371 | } | 346 | } |
372 | 347 | ||
373 | /* | 348 | /* |
@@ -491,7 +466,7 @@ static void __init bonito_init(void) | |||
491 | } | 466 | } |
492 | } | 467 | } |
493 | 468 | ||
494 | static void __init bonito_timer_init(void) | 469 | static void __init bonito_earlytimer_init(void) |
495 | { | 470 | { |
496 | u16 val; | 471 | u16 val; |
497 | u8 md_ck = 0; | 472 | u8 md_ck = 0; |
@@ -506,17 +481,22 @@ static void __init bonito_timer_init(void) | |||
506 | md_ck |= MD_CK0; | 481 | md_ck |= MD_CK0; |
507 | 482 | ||
508 | r8a7740_clock_init(md_ck); | 483 | r8a7740_clock_init(md_ck); |
509 | shmobile_timer.init(); | 484 | shmobile_earlytimer_init(); |
510 | } | 485 | } |
511 | 486 | ||
512 | struct sys_timer bonito_timer = { | 487 | void __init bonito_add_early_devices(void) |
513 | .init = bonito_timer_init, | 488 | { |
514 | }; | 489 | r8a7740_add_early_devices(); |
490 | |||
491 | /* override timer setup with board-specific code */ | ||
492 | shmobile_timer.init = bonito_earlytimer_init; | ||
493 | } | ||
515 | 494 | ||
516 | MACHINE_START(BONITO, "bonito") | 495 | MACHINE_START(BONITO, "bonito") |
517 | .map_io = bonito_map_io, | 496 | .map_io = bonito_map_io, |
497 | .init_early = bonito_add_early_devices, | ||
518 | .init_irq = r8a7740_init_irq, | 498 | .init_irq = r8a7740_init_irq, |
519 | .handle_irq = shmobile_handle_irq_intc, | 499 | .handle_irq = shmobile_handle_irq_intc, |
520 | .init_machine = bonito_init, | 500 | .init_machine = bonito_init, |
521 | .timer = &bonito_timer, | 501 | .timer = &shmobile_timer, |
522 | MACHINE_END | 502 | MACHINE_END |