Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373884
b: refs/heads/master
c: ab5fdfd
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Simon Horman committed Apr 9, 2013
1 parent 701c939 commit 2d0d9f0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 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: c9dff05030b97d6c8f2b53a43f0d8f6d15481b92
refs/heads/master: ab5fdfd5ea621b629da9bfda987af301da973525
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-shmobile/include/mach/r8a7790.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
void r8a7790_add_standard_devices(void);
void r8a7790_clock_init(void);
void r8a7790_pinmux_init(void);
void r8a7790_timer_init(void);

#endif /* __ASM_R8A7790_H__ */
14 changes: 13 additions & 1 deletion trunk/arch/arm/mach-shmobile/setup-r8a7790.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@ void __init r8a7790_add_standard_devices(void)
r8a7790_register_irqc(0);
}

void __init r8a7790_timer_init(void)
{
void __iomem *cntcr;

/* make sure arch timer is started by setting bit 0 of CNTCT */
cntcr = ioremap(0xe6080000, PAGE_SIZE);
iowrite32(1, cntcr);
iounmap(cntcr);

shmobile_timer_init();
}

#ifdef CONFIG_USE_OF
void __init r8a7790_add_standard_devices_dt(void)
{
Expand All @@ -132,7 +144,7 @@ static const char *r8a7790_boards_compat_dt[] __initdata = {
DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)")
.init_irq = irqchip_init,
.init_machine = r8a7790_add_standard_devices_dt,
.init_time = shmobile_timer_init,
.init_time = r8a7790_timer_init,
.dt_compat = r8a7790_boards_compat_dt,
MACHINE_END
#endif /* CONFIG_USE_OF */

0 comments on commit 2d0d9f0

Please sign in to comment.