linux/arch/arm/plat-omap
Kevin Hilman 5a3a388fbe ARM: OMAP: Timer32K: Re-organize duplicated 32k-timer code
On OMAP2/3, the gp-timer code can be used for a 32kHz timer simply by
setting the source to be the 32k clock instead of sys_clk.

This patch uses the mach-omap2/timer-gp.c code for 32kHz timer on
OMAP2, moving the logic into mach-omap2/timer-gp.c, and not using
plat-omap/timer32k.c which, for OMAP2, is redundant with the timer-gp
code.

Also, if CONFIG_OMAP_32K_TIMER is enabled, the gptimer-based
clocksource is not used.  Instead the default 32k sync counter is used
as the clocksource (see the clocksource in plat-omap/common.c.)  This
is important for sleep/suspend so there is a valid counter during
sleep.  Note that the suspend/sleep code needs fixing to check for
overflows of this counter.

In addition, the OMAP2/3 details are removed from timer32k.c leaving
that with only OMAP1 specifics.  A follow-up patch will move it from
plat-omap common code to mach-omap1.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2008-04-14 09:57:12 -07:00
..
clock.c ARM: OMAP: add SoSSI clock (call propagate_rate for childrens) 2007-05-09 10:39:29 +01:00
common.c ARM: OMAP: Fix 32k timer unsupported one-shot mode 2007-08-22 00:42:50 -07:00
cpu-omap.c ARM: OMAP: Fix sleep under spinlock for cpufreq 2008-03-05 10:23:19 +02:00
debug-devices.c [NET] smc91x: Make smc91x use IRQ resource trigger flags 2008-01-28 13:13:19 +00:00
debug-leds.c ARM: OMAP: partial LED fixes 2007-05-09 10:39:42 +01:00
devices.c ARM: OMAP: fix omap i2c init (regression) 2008-03-05 10:23:20 +02:00
dma.c ARM: OMAP: Fix DMA CLINK mask, clear spurious interrupt 2008-03-20 16:57:54 +02:00
dmtimer.c [ARM] replace remaining __FUNCTION__ occurrences 2008-03-06 12:18:18 +00:00
fb.c Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
gpio.c ARM: OMAP: use edge/level handlers from generic IRQ framework 2008-04-14 09:57:11 -07:00
i2c.c ARM: OMAP: Add helper module for board specific I2C bus registration 2008-02-08 10:38:00 -08:00
Kconfig ARM: OMAP: Fix clockevent support for hrtimers 2008-03-20 16:56:09 +02:00
mailbox.c Merge branch 'blk-end-request' of git://git.kernel.dk/linux-2.6-block 2008-01-29 08:51:32 +11:00
mailbox.h ARM: OMAP: Add mailbox support for IVA 2007-05-09 10:37:10 +01:00
Makefile ARM: OMAP: Timer32K: Re-organize duplicated 32k-timer code 2008-04-14 09:57:12 -07:00
mcbsp.c ARM: OMAP: Request DSP memory for McBSP 2008-02-08 10:37:57 -08:00
mux.c ARM: OMAP: Split omap_cfg_reg() into omap processor specific functions 2008-04-14 09:57:11 -07:00
ocpi.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sram-fn.S fix file specification in comments 2006-10-03 23:01:26 +02:00
sram.c [ARM] spelling fixes 2007-05-20 20:10:32 +01:00
timer32k.c ARM: OMAP: Timer32K: Re-organize duplicated 32k-timer code 2008-04-14 09:57:12 -07:00
usb.c [ARM] spelling fixes 2007-05-20 20:10:32 +01:00