27 Jul 2012 08:20
[PATCH] powerpc/fsl: mpic timer driver
<Dongsheng.wang <at> freescale.com>
2012-07-27 06:20:58 GMT
2012-07-27 06:20:58 GMT
From: Wang Dongsheng <Dongsheng.Wang <at> freescale.com> Global timers A and B internal to the PIC. The two independent groups of global timer, group A and group B, are identical in their functionality. The hardware timer generates an interrupt on every timer cycle. e.g Power management can use the hardware timer to wake up the machine. Signed-off-by: Wang Dongsheng <Dongsheng.Wang <at> freescale.com> Signed-off-by: Li Yang <leoli <at> freescale.com> --- arch/powerpc/include/asm/mpic_timer.h | 15 + arch/powerpc/platforms/Kconfig | 5 + arch/powerpc/sysdev/Makefile | 1 + arch/powerpc/sysdev/mpic_timer.c | 459 +++++++++++++++++++++++++++++++++ 4 files changed, 480 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/include/asm/mpic_timer.h create mode 100644 arch/powerpc/sysdev/mpic_timer.c diff --git a/arch/powerpc/include/asm/mpic_timer.h b/arch/powerpc/include/asm/mpic_timer.h new file mode 100644 index 0000000..01d58a2 --- /dev/null +++ b/arch/powerpc/include/asm/mpic_timer.h <at> <at> -0,0 +1,15 <at> <at> +#ifndef __MPIC_TIMER__ +#define __MPIC_TIMER__ + +#include <linux/interrupt.h> +#include <linux/time.h>(Continue reading)
RSS Feed