]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-omap.c: add support for enabling 32khz clock
authorSekhar Nori <nsekhar@ti.com>
Thu, 22 May 2014 00:43:53 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:53 +0000 (10:43 +1000)
commit1b921c439151cb4301529c6ea316e50d3c368b48
tree649e5eee23f7a1e8969ea13a519c6448c1a25f4c
parentb81778e4953ac1287f959f3f763e97a8bfbf2634
drivers/rtc/rtc-omap.c: add support for enabling 32khz clock

Newer versions of OMAP RTC IP such as those found in AM335x and DRA7x need
an explicit enable of 32khz functional clock which ticks the RTC.

AM335x support was working so far because of settings done in U-Boot.
However, the DRA7x U-Boot does no such enable of 32khz clock and this
patch is need to get the RTC to work on DRA7x at least.  In general, it is
better to not depend on settings done in U-Boot.

Thanks to Lokesh Vutla for noticing this.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-omap.c