android_kernel_xiaomi_sm8350/arch/arm/plat-omap/include/mach
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
..
blizzard.h
board-ams-delta.h
board-sx1.h
board-voiceblue.h ARM: OMAP: Remove remaining board-*.h includes from hardware.h 2009-03-23 18:07:39 -07:00
board.h ARM: OMAP: get rid of OMAP_TAG_USB, v2 2009-03-23 18:51:20 -07:00
clkdev.h [ARM] omap: convert OMAP1 to use clkdev 2009-02-08 17:50:13 +00:00
clock.h [ARM] omap: add support for bypassing DPLLs 2009-02-19 17:28:30 +00:00
clockdomain.h [ARM] OMAP2/3 clockdomains: combine pwrdm, pwrdm_name into union in struct clockdomain 2009-02-08 17:50:28 +00:00
common.h Merge branch 'master' of git://git.marvell.com/orion into devel 2009-03-19 23:10:40 +00:00
control.h omap mmc: Add low-level initialization for hsmmc controller 2008-12-10 17:37:17 -08:00
cpu.h 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
debug-macro.S
dma.h
dmtimer.h OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files 2009-04-23 21:11:10 -06:00
dsp_common.h
eac.h
entry-macro.S ARM: OMAP: Fix get_irqnr_and_base to clear spurious interrupt bits 2008-11-04 13:35:07 -08:00
fpga.h
gpio-switch.h
gpio.h [OMAP850] Changes to base IO subsystem, v2 2009-03-23 18:07:40 -07:00
gpioexpander.h
gpmc.h [ARM] OMAP2 SDRC: move mach-omap2/memory.h into mach/sdrc.h 2009-02-08 17:50:38 +00:00
hardware.h ARM: OMAP: Remove remaining board-*.h includes from hardware.h 2009-03-23 18:07:39 -07:00
hwa742.h
io.h [ARM] OMAP2 SDRC: add SDRAM timing parameter infrastructure 2009-02-08 17:50:39 +00:00
irda.h
irqs.h [OMAP850] IRQ related changes 2009-03-23 18:51:19 -07:00
keypad.h
lcd_mipid.h
led.h
mailbox.h omap mailbox: add save_/restore_ctx() for PM 2009-03-23 18:07:26 -07:00
mcbsp.h [ARM] omap: mcbsp: convert to use fck/ick clocks directly 2009-02-08 17:50:19 +00:00
mcspi.h
memory.h [ARM] make page_to_dma() highmem aware 2009-03-15 21:01:21 -04:00
menelaus.h
mmc.h ARM: OMAP3: mmc-twl4030 init passes device nodes back, v2 2009-03-23 18:51:22 -07:00
mtd-xip.h ALSA: Correct Vladimir Barinov's e-mail address 2008-10-10 13:41:45 +02:00
mux.h ARM: OMAP3: Add more GPIO mux options 2009-03-23 18:51:21 -07:00
nand.h
omap16xx.h
omap24xx.h
omap34xx.h [ARM] 5434/1: ARM: OMAP: Fix mailbox compile for 24xx 2009-03-28 19:35:02 +00:00
omap730.h
omap850.h [OMAP850] Add base support for omap850 cpu 2009-03-23 18:07:39 -07:00
omap1510.h
omap-alsa.h
omapfb.h [ARM] omap: fix a pile of issues 2008-12-01 17:40:54 +00:00
onenand.h
param.h
pm.h Merge branch 'master' of git://git.marvell.com/orion into devel 2009-03-19 23:10:40 +00:00
powerdomain.h [ARM] OMAP2/3 clockdomains: add CM and PRM clkdms 2009-02-08 17:50:29 +00:00
prcm.h [ARM] OMAP: Fix sparse, checkpatch warnings in OMAP2/3 PRCM/PM code 2009-02-08 17:50:24 +00:00
sdrc.h [ARM] OMAP2 SDRC: add SDRAM timing parameter infrastructure 2009-02-08 17:50:39 +00:00
serial.h
sram.h
system.h 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
tc.h
timer-gp.h OMAP2/3 GPTIMER: allow system tick GPTIMER to be changed in board-*.c files 2009-04-23 21:11:10 -06:00
timex.h
uncompress.h
usb.h ARM: OMAP3: MUSB initialization for omap hw, v2 2009-03-23 18:51:24 -07:00
vmalloc.h