blob: 6bf3d0ab96278b1c31571f9263e31ef0691265cf [file] [log] [blame]
Kukjin Kim3c313362011-02-14 16:13:27 +09001/* linux/arch/arm/mach-exynos4/localtimer.c
Changhwan Youncfca3a62010-07-26 21:13:08 +09002 *
3 * Cloned from linux/arch/arm/mach-realview/localtimer.c
4 *
5 * Copyright (C) 2002 ARM Ltd.
6 * All Rights Reserved
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11*/
12
13#include <linux/clockchips.h>
14
15#include <asm/irq.h>
16#include <asm/localtimer.h>
17
18/*
19 * Setup the local clock events for a CPU.
20 */
Santosh Shilimkaraf90f102011-02-23 18:53:15 +010021int __cpuinit local_timer_setup(struct clock_event_device *evt)
Changhwan Youncfca3a62010-07-26 21:13:08 +090022{
23 evt->irq = IRQ_LOCALTIMER;
24 twd_timer_setup(evt);
Santosh Shilimkaraf90f102011-02-23 18:53:15 +010025 return 0;
Changhwan Youncfca3a62010-07-26 21:13:08 +090026}