]> 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:38:18 +0000 (16:38 +0300)
commit0c00fb73724e28ec4dd0ebdf5059aad569a1db88
tree7a5edc835486a2b6bc9e3447fb0208008c162abb
parentb5ea90ae1f08951e4190ee544d878b06e45fc78e
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