diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2010-07-15 21:54:20 +0800 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-08-05 14:34:45 +0800 |
commit | 4d4a339dd51390066d09701876a499996f1a5fdc (patch) | |
tree | b65deef07a2c7ce037e58effdc5fc039dfb339dc /arch/arm/mach-mmp/time.c | |
parent | 8022887cda044524610ef2a5a45feb9d96b11b4f (diff) | |
download | op-kernel-dev-4d4a339dd51390066d09701876a499996f1a5fdc.zip op-kernel-dev-4d4a339dd51390066d09701876a499996f1a5fdc.tar.gz |
[ARM] mmp: move mmp2 specific timer code to mmp2.c
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/time.c')
-rw-r--r-- | arch/arm/mach-mmp/time.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/mach-mmp/time.c b/arch/arm/mach-mmp/time.c index cf75694..6652819 100644 --- a/arch/arm/mach-mmp/time.c +++ b/arch/arm/mach-mmp/time.c @@ -200,24 +200,3 @@ void __init timer_init(int irq) clocksource_register(&cksrc); clockevents_register_device(&ckevt); } - -static void __init mmp2_timer_init(void) -{ - unsigned long clk_rst; - - __raw_writel(APBC_APBCLK | APBC_RST, APBC_MMP2_TIMERS); - - /* - * enable bus/functional clock, enable 6.5MHz (divider 4), - * release reset - */ - clk_rst = APBC_APBCLK | APBC_FNCLK | APBC_FNCLKSEL(1); - __raw_writel(clk_rst, APBC_MMP2_TIMERS); - - timer_init(IRQ_MMP2_TIMER1); -} - -struct sys_timer mmp2_timer = { - .init = mmp2_timer_init, -}; - |