]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: OMAP: dmtimer: Add clock source from DT
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 2 Nov 2015 11:14:14 +0000 (12:14 +0100)
committerTony Lindgren <tony@atomide.com>
Mon, 30 Nov 2015 18:00:05 +0000 (10:00 -0800)
commit31a7448f4fa8a528040e3df593e9781f55218183
treecad91ac9fba0c12c9b6585014dde64fceeb6d0d0
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
ARM: OMAP: dmtimer: Add clock source from DT

Add a function which sets the timer source from the clocks
binding on dm_timer_prepare call.

In case the clocks property is not valid, it falls back to
the set_source() with 32_KHZ clock as default.

Suggested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c