Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295799
b: refs/heads/master
c: df27a2d
h: refs/heads/master
i:
  295797: 740e663
  295795: 63754f5
  295791: b1fba6e
v: v3
  • Loading branch information
Magnus Damm authored and Rafael J. Wysocki committed Mar 12, 2012
1 parent b22ccea commit f9b054f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23e5bc03e3b07185d61c212bf39aaf126cc958e3
refs/heads/master: df27a2d8f1d5e366ef84e9916fa6aab80904b8db
14 changes: 1 addition & 13 deletions trunk/arch/arm/mach-shmobile/board-marzen.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <mach/common.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include <asm/hardware/gic.h>
#include <asm/traps.h>

Expand Down Expand Up @@ -91,23 +90,12 @@ static void __init marzen_init(void)
platform_add_devices(marzen_devices, ARRAY_SIZE(marzen_devices));
}

static void __init marzen_timer_init(void)
{
r8a7779_clock_init();
shmobile_timer.init();
return;
}

struct sys_timer marzen_timer = {
.init = marzen_timer_init,
};

MACHINE_START(MARZEN, "marzen")
.map_io = r8a7779_map_io,
.init_early = r8a7779_add_early_devices,
.nr_irqs = NR_IRQS_LEGACY,
.init_irq = r8a7779_init_irq,
.handle_irq = gic_handle_irq,
.init_machine = marzen_init,
.timer = &marzen_timer,
.timer = &shmobile_timer,
MACHINE_END
10 changes: 10 additions & 0 deletions trunk/arch/arm/mach-shmobile/setup-r8a7779.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <mach/common.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include <asm/mach/map.h>
#include <asm/hardware/cache-l2x0.h>

Expand Down Expand Up @@ -260,6 +261,12 @@ void __init r8a7779_add_standard_devices(void)
ARRAY_SIZE(r8a7779_late_devices));
}

static void __init r8a7779_earlytimer_init(void)
{
r8a7779_clock_init();
shmobile_earlytimer_init();
}

void __init r8a7779_add_early_devices(void)
{
early_platform_add_devices(r8a7779_early_devices,
Expand All @@ -280,4 +287,7 @@ void __init r8a7779_add_early_devices(void)
* As a final step pass earlyprint=sh-sci.2,115200 on the kernel
* command line in case of the marzen board.
*/

/* override timer setup with soc-specific code */
shmobile_timer.init = r8a7779_earlytimer_init;
}

0 comments on commit f9b054f

Please sign in to comment.