10 Aug 2012 07:54
[PATCH v2 2/2] powerpc/mpic: add global timer support
<Dongsheng.wang <at> freescale.com>
2012-08-10 05:54:41 GMT
2012-08-10 05:54:41 GMT
From: Wang Dongsheng <Dongsheng.Wang <at> freescale.com> The MPIC global timer is a hardware timer inside the Freescale PIC comply to Open-PIC standard. When the timer is timeout of the specified interval, the hardware timer generates an interrupt. The driver currently is only tested on fsl chip, but it can potentially support other global timers complying to Open-PIC standard. The two independent groups of global timer on fsl chip, group A and group B, are identical in their functionality, except that they appear at different locations within the PIC register map. The hardware timer can be cascaded to create timers larger than the default 31-bit global timers. Timer cascade fields allow configuration of up to two 63-bit timers. But These two groups of timers cannot be cascaded together. It can be used as a wakeup source for low power modes. It also could be used as periodical timer for protocols, drivers and etc. 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 | 525 +++++++++++++++++++++++++++++++++ 4 files changed, 546 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(Continue reading)
RSS Feed