]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: apb: Share APB timer code with other platforms
authorJamie Iles <jamie@jamieiles.com>
Mon, 6 Jun 2011 11:43:07 +0000 (12:43 +0100)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 27 Jun 2011 22:16:21 +0000 (15:16 -0700)
commitdde31772c3ce15a53161ff7075816c81678d921c
tree34989a358e7554d82dd4e73328f492653ceeac88
parent743513a82a7226c08b019ae491a720d6b8144eb4
clocksource: apb: Share APB timer code with other platforms

The APB timers are an IP block from Synopsys (DesignWare APB timers)
and are also found in other systems including ARM SoC's.  This patch
adds functions for creating clock_event_devices and clocksources from
APB timers but does not do the resource allocation.  This is handled
in a higher layer to allow the timers to be created from multiple
methods such as platform_devices.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
arch/x86/Kconfig
arch/x86/include/asm/apb_timer.h
arch/x86/kernel/apb_timer.c
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/dw_apb_timer.c [new file with mode: 0644]
include/linux/dw_apb_timer.h [new file with mode: 0644]