]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: OMAP2+: AM43x: Use gptimer as clocksource
authorRajendra Nayak <rnayak@ti.com>
Fri, 7 Feb 2014 10:21:26 +0000 (15:51 +0530)
committerTony Lindgren <tony@atomide.com>
Fri, 28 Feb 2014 23:33:27 +0000 (15:33 -0800)
commit5b5c01359152f3ddaa1aa0e5d1141bc2b29ba2c5
treee6683590742e986101f18d21a3a9dbed1043a9ad
parent7a2e05132424ea6bd5d957941ee9805774bad32f
ARM: OMAP2+: AM43x: Use gptimer as clocksource

The SyncTimer in AM43x is clocked using the following two sources:
1) An inaccuarte 32k clock (CLK_32KHZ) derived from PER DPLL, causing system
   time to go slowly (~10% deviation).
2) external 32KHz RTC clock, which may not always be available on board like
   in the case of ePOS EVM

Use gptimer as clocksource instead, as is done in the case of AM335x
(which does not have a SyncTimer). With this, system time keeping works
accurately.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-generic.c
arch/arm/mach-omap2/timer.c