]> git.baikalelectronics.ru Git - kernel.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)
commitb9c97c94ad92f7b3cdca7fcdd2b7c8f981f7ea17
treecad91ac9fba0c12c9b6585014dde64fceeb6d0d0
parent1d37f22c117701709b102005124f4747fab5d517
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