diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2011-05-27 10:30:12 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-09-22 15:42:57 +0200 |
commit | 489bccea6334514a8e13436f10d0a274777bf17a (patch) | |
tree | 16ef60894e87bc95e1e44e975667325bb46f6679 /include/linux/clksrc-dbx500-prcmu.h | |
parent | cba13830d3fcb1e025e224c496a10515a39a7f80 (diff) |
clocksource: add DBX500 PRCMU Timer support
This patch adds the DBX500 PRCMU Timer driver as a clocksource
and as sched_clock.
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/clksrc-dbx500-prcmu.h')
-rw-r--r-- | include/linux/clksrc-dbx500-prcmu.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/clksrc-dbx500-prcmu.h b/include/linux/clksrc-dbx500-prcmu.h new file mode 100644 index 000000000000..d1e95042408b --- /dev/null +++ b/include/linux/clksrc-dbx500-prcmu.h @@ -0,0 +1,22 @@ +/* + * Copyright (C) ST-Ericsson SA 2011 + * + * License Terms: GNU General Public License v2 + * Author: Mattias Wallin <mattias.wallin@stericsson.com> + * + */ +#ifndef __CLKSRC_DBX500_PRCMU_H +#define __CLKSRC_DBX500_PRCMU_H + +#include <linux/init.h> +#include <linux/io.h> + +extern void __iomem *clksrc_dbx500_timer_base; + +#ifdef CONFIG_CLKSRC_DBX500_PRCMU +void __init clksrc_dbx500_prcmu_init(void); +#else +void __init clksrc_dbx500_prcmu_init(void) {} +#endif + +#endif |