]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: OMAP2+: Add device-tree support for 32kHz counter
authorJon Hunter <jon-hunter@ti.com>
Tue, 9 Oct 2012 19:12:26 +0000 (14:12 -0500)
committerJon Hunter <jon-hunter@ti.com>
Fri, 2 Nov 2012 18:16:31 +0000 (13:16 -0500)
commit9883f7c8dd21acb90697582ca331f3f8a66ac054
treea17407cb037e0893c887bf33740c030e94d6ec76
parent9725f4451a9ccd159b1d13f63e05896cd9bce07d
ARM: OMAP2+: Add device-tree support for 32kHz counter

For OMAP devices, the 32kHz counter is the default clock-source for the kernel.
However, this is not the only possible clock-source the kernel can use for OMAP
devices.

When booting with device-tree, if the 32kHz counter is the desired clock-source
for the kernel, then parse the device-tree blob to ensure that the counter is
present and if so map memory for the counter using the device-tree of_iomap()
function so we are no longer reliant on the OMAP HWMOD framework to do this for
us.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
arch/arm/mach-omap2/timer.c