Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008-2009 ST-Ericsson |
| 3 | * Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> |
| 4 | * |
| 5 | * This file is heavily based on relaview platform, almost a copy. |
| 6 | * |
| 7 | * Copyright (C) 2002 ARM Ltd. |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License version 2 as |
| 11 | * published by the Free Software Foundation. |
| 12 | */ |
| 13 | #include <linux/init.h> |
| 14 | #include <linux/smp.h> |
| 15 | #include <linux/clockchips.h> |
| 16 | |
| 17 | #include <asm/irq.h> |
| 18 | #include <asm/smp_twd.h> |
| 19 | #include <asm/localtimer.h> |
| 20 | |
| 21 | /* |
| 22 | * Setup the local clock events for a CPU. |
| 23 | */ |
Santosh Shilimkar | af90f10 | 2011-02-23 18:53:15 +0100 | [diff] [blame] | 24 | int __cpuinit local_timer_setup(struct clock_event_device *evt) |
Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 25 | { |
| 26 | evt->irq = IRQ_LOCALTIMER; |
| 27 | twd_timer_setup(evt); |
Santosh Shilimkar | af90f10 | 2011-02-23 18:53:15 +0100 | [diff] [blame] | 28 | return 0; |
Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 29 | } |