ARM: OMAP1: Fix dmtimer support
authorJon Hunter <jon-hunter@ti.com>
Tue, 5 Jun 2012 17:34:58 +0000 (12:34 -0500)
committerTony Lindgren <tony@atomide.com>
Thu, 14 Jun 2012 09:39:47 +0000 (02:39 -0700)
commitbca4580845cbffb455d77783fc7e58a94b3904e0
tree3ad2e1e3c870e1ebdfaf922372ed5cbdafc32d75
parent6615975bc58a1234bd401a7ff231dae85631fd58
ARM: OMAP1: Fix dmtimer support

OMAP1 dmtimer support is currently broken. When a dmtimer is requested by the
omap_dm_timer_request() function fails to allocate a dmtimer because the call
to clk_get() inside omap_dm_timer_prepare fails. The clk_get() fails simply
because the clock data for the OMAP1 dmtimers is not present.

Ideally this should be fixed by moving OMAP1 dmtimers to use the clock
framework. For now simply fix this by using the "TIMER_NEEDS_RESET" flag to
identify an OMAP1 device and avoid calling clk_get(). Although this is not
the ideal fix and should be corrected, this flag has already been use for the
same purpose in omap_dm_timer_stop().

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c