]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ARM: OMAP2+: hwmod: RTC: Add lock and unlock functions
authorLokesh Vutla <lokeshvutla@ti.com>
Sun, 10 Apr 2016 19:20:10 +0000 (13:20 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Apr 2016 19:20:10 +0000 (13:20 -0600)
commit461932dfb54ebaf7da438fd8b769a01ce97a9360
treec65f1aa859110c70b8c0e1d46f3b453e8f483be9
parentb05ff3c394bc5dbb1bc88073759f01c0ebdf5de1
ARM: OMAP2+: hwmod: RTC: Add lock and unlock functions

RTC IP have kicker feature which prevents spurious writes to its registers.
In order to write into any of the RTC registers, KICK values has to be
written to KICK registers. Also, RTC busy flag needs to be polled for
non-TC registers as well, without which update is not proper and confirmed
it by testing on DRA7-evm.
Introduce omap_hwmod_rtc_unlock/lock functions, which  writes into these
KICK registers inorder to lock and unlock RTC registers.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
[paul@pwsan.com: fixed subject line]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.h
arch/arm/mach-omap2/omap_hwmod_reset.c