linux/arch/arm/mach-omap2
Paul Walmsley f248076c0d OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files
Add a function omap2_gp_clockevent_set_gptimer() for board-*.c files
to use in .init_irq functions to configure the system tick GPTIMER.
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.

It appears that most boards are fine with GPTIMER1, but BeagleBoard
should use GPTIMER12 when using a 32KiHz timer source, due to hardware bugs
in revisions B4 and below.  Modify board-omap3beagle.c to use GPTIMER12.

This patch originally used a Kbuild config option to select the GPTIMER,
but was changed to allow this to be specified in board-*.c files, per
Tony's request.

Kalle Vallo <kalle.valo@nokia.com> found a bug in an earlier version of
this patch - thanks Kalle.

Tested on Beagle rev B4 ES2.1, with and without CONFIG_OMAP_32K_TIMER, and
3430SDP.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Cc: Kalle Valo <kalle.valo@nokia.com>
2009-04-23 21:11:10 -06:00
..
board-2430sdp.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel 2009-03-25 18:31:35 +00:00
board-3430sdp.c [ARM] OMAP: Fix compile for omap2_init_common_hw() 2009-03-25 19:51:46 +00:00
board-apollon.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel 2009-03-25 18:31:35 +00:00
board-generic.c [ARM] OMAP2 SDRC: add SDRAM timing parameter infrastructure 2009-02-08 17:50:39 +00:00
board-h4.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel 2009-03-25 18:31:35 +00:00
board-ldp.c arm: convert omap ldp platform to use smsc911x 2009-04-02 18:26:17 +01:00
board-omap3beagle.c OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files 2009-04-23 21:11:10 -06:00
board-omap3pandora.c [ARM] OMAP: Fix compile for omap2_init_common_hw() 2009-03-25 19:51:46 +00:00
board-overo.c ARM: Add SMSC911X support to Overo platform (V2) 2009-04-02 18:32:28 +01:00
board-rx51-peripherals.c ARM OMAP3: Initial support for Nokia RX-51, v3 2009-03-23 20:52:48 -07:00
board-rx51.c [ARM] OMAP: Fix compile for omap2_init_common_hw() 2009-03-25 19:51:46 +00:00
clock24xx.c OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files 2009-04-23 21:11:10 -06:00
clock24xx.h OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files 2009-04-23 21:11:10 -06:00
clock34xx.c [ARM] omap: add support for bypassing DPLLs 2009-02-19 17:28:30 +00:00
clock34xx.h OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files 2009-04-23 21:11:10 -06:00
clock.c Merge branch 'omap-clks3' into devel 2009-03-19 12:39:58 +00:00
clock.h [ARM] omap: add support for bypassing DPLLs 2009-02-19 17:28:30 +00:00
clockdomain.c [ARM] omap: ensure that failing power domain lookups produce errors 2009-02-23 14:55:34 +00:00
clockdomains.h [ARM] OMAP3: update ES level flags to discriminate between post-ES2 revisions 2009-02-23 14:52:51 +00:00
cm-regbits-24xx.h [ARM] OMAP2 PRCM: clean up CM_IDLEST bits 2009-02-08 17:50:37 +00:00
cm-regbits-34xx.h [ARM] OMAP2 PRCM: clean up CM_IDLEST bits 2009-02-08 17:50:37 +00:00
cm.h [ARM] omap: Fix IO_ADDRESS() macros 2008-09-05 17:02:31 +01:00
control.c
devices.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6 into devel 2009-03-25 18:31:35 +00:00
gpmc.c ARM: OMAP: Fix compiler warnings in gpmc.c 2008-11-04 13:35:06 -08:00
id.c [ARM] OMAP3: update ES level flags to discriminate between post-ES2 revisions 2009-02-23 14:52:51 +00:00
io.c [ARM] OMAP2 SDRC: add SDRAM timing parameter infrastructure 2009-02-08 17:50:39 +00:00
irq.c ARM: OMAP: Mask interrupts when disabling interrupts, v2 2009-01-29 09:27:00 -08:00
Kconfig ARM OMAP3: Initial support for Nokia RX-51, v3 2009-03-23 20:52:48 -07:00
mailbox.c omap mailbox: add save_/restore_ctx() for PM 2009-03-23 18:07:26 -07:00
Makefile [ARM] 5436/1: ARM: OMAP: Fix compile for rx51 2009-04-01 22:14:51 +01:00
Makefile.boot
mcbsp.c [ARM] omap: mcbsp: convert to use fck/ick clocks directly 2009-02-08 17:50:19 +00:00
mmc-twl4030.c ARM: OMAP3: mmc-twl4030 allow arbitrary slot names, v3 2009-03-23 18:51:23 -07:00
mmc-twl4030.h ARM: OMAP3: mmc-twl4030 allow arbitrary slot names, v3 2009-03-23 18:51:23 -07:00
mux.c ARM: OMAP3: Add more GPIO mux options 2009-03-23 18:51:21 -07:00
pm.c [ARM] OMAP: Fix sparse, checkpatch warnings in OMAP2/3 PRCM/PM code 2009-02-08 17:50:24 +00:00
powerdomain.c [ARM] OMAP3 pwrdm: add hardware save-and-restore (SAR) support 2008-08-21 21:26:39 +01:00
powerdomains24xx.h ARM: OMAP2: Powerdomain: Add OMAP2 powerdomains 2008-08-19 11:08:42 +03:00
powerdomains34xx.h [ARM] OMAP3 powerdomains: make USBTLL SAR only available on ES3.1 and beyond 2009-02-23 14:52:51 +00:00
powerdomains.h [ARM] OMAP3 powerdomains: make USBTLL SAR only available on ES3.1 and beyond 2009-02-23 14:52:51 +00:00
prcm-common.h [ARM] OMAP2 PRCM: clean up CM_IDLEST bits 2009-02-08 17:50:37 +00:00
prcm.c
prm-regbits-24xx.h ARM: OMAP2: Powerdomain: Add OMAP2 powerdomains 2008-08-19 11:08:42 +03:00
prm-regbits-34xx.h [ARM] OMAP34XX: Add miscellaneous definitions related to 34xx 2009-02-08 17:50:36 +00:00
prm.h [ARM] OMAP34XX: Add miscellaneous definitions related to 34xx 2009-02-08 17:50:36 +00:00
sdrc2xxx.c [ARM] omap: add support for bypassing DPLLs 2009-02-19 17:28:30 +00:00
sdrc.c [ARM] OMAP2 SDRC: add SDRAM timing parameter infrastructure 2009-02-08 17:50:39 +00:00
sdrc.h
serial.c Merge branch 'omap-all' into devel 2008-10-14 22:24:42 +01:00
sleep24xx.S ARM: OMAP: fix fault in enter_full_retention() 2009-01-29 09:27:00 -08:00
sram34xx.S ARM: OMAP3: Add minimal omap3430 support 2008-10-09 17:51:41 +03:00
sram242x.S
sram243x.S
timer-gp.c OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files 2009-04-23 21:11:10 -06:00
usb-musb.c ARM: OMAP3: MUSB initialization for omap hw, v2 2009-03-23 18:51:24 -07:00
usb-tusb6010.c ARM: OMAP: Switch to gpio_request/free calls 2008-12-10 17:35:30 -08:00