]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
OMAP2/3 GPTIMER: allow system tick GPTIMER to be configurable at build
authorPaul Walmsley <paul@pwsan.com>
Mon, 11 Aug 2008 23:34:23 +0000 (17:34 -0600)
committerTony Lindgren <tony@atomide.com>
Wed, 13 Aug 2008 13:34:28 +0000 (16:34 +0300)
commit5057ccfd76aa21e4d332f721f57df77372459f99
tree7d9c7e6a9e9d493360a3f5308cccb48fd6efe2f5
parentf7e3cbb3f32144ff331a084cdf2b993f64674513
OMAP2/3 GPTIMER: allow system tick GPTIMER to be configurable at build

Add Kbuild code to allow the builder to select which GPTIMER block to use
for the Linux clockevents timer.  Practical choices at this point are
GPTIMER1 or GPTIMER12.  Both of these timers are in the WKUP powerdomain,
and so are unaffected by chip power management.  GPTIMER1 can use sys_clk
as a source, for applications where a high-resolution timer is more important
than power management.  GPTIMER12 has the special property that it has
the secure 32kHz oscillator as its source clock, which may be less prone
to glitches than the off-chip 32kHz oscillator.  But on HS devices, it may
not be available for Linux use.

At this point, it appears that most boards are fine with GPTIMER1, but
Beagle should use GPTIMER12.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/timer-gp.c