diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-11-28 20:53:20 +0300 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-12-01 02:40:16 +0300 |
commit | f36797ee43802b367e59f0f9a9805304a4ff0c98 (patch) | |
tree | f64265056b3cb1fc10382a991687efd6f5e07e4c /arch/arm/mach-mmp/mmp2.c | |
parent | e78ebdcb6ea83a891e6940381190040ae299e82d (diff) | |
download | linux-f36797ee43802b367e59f0f9a9805304a4ff0c98.tar.xz |
ARM: mmp/mmp2: dt: enable the clock
The device-tree booted MMP2 needs to enable the timer clock, otherwise
it would stop ticking when the boot finishes.
It can also use the clock rate from the clk, the non-DT boards need to
keep using the hardcoded rates.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-mmp/mmp2.c')
-rw-r--r-- | arch/arm/mach-mmp/mmp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mmp/mmp2.c b/arch/arm/mach-mmp/mmp2.c index afba5460cdaf..fb3e7e32c882 100644 --- a/arch/arm/mach-mmp/mmp2.c +++ b/arch/arm/mach-mmp/mmp2.c @@ -134,7 +134,7 @@ void __init mmp2_timer_init(void) clk_rst = APBC_APBCLK | APBC_FNCLK | APBC_FNCLKSEL(1); __raw_writel(clk_rst, APBC_TIMERS); - timer_init(IRQ_MMP2_TIMER1); + timer_init(IRQ_MMP2_TIMER1, 6500000); } /* on-chip devices */ |