diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2016-04-10 21:20:10 +0200 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2016-04-10 21:20:10 +0200 |
commit | 461932dfb54ebaf7da438fd8b769a01ce97a9360 (patch) | |
tree | c65f1aa859110c70b8c0e1d46f3b453e8f483be9 /arch/arm/mach-omap2/omap_hwmod.h | |
parent | ARM: OMAP2+: DRA7: Add hwmod entries for PWMSS (diff) | |
download | linux-461932dfb54ebaf7da438fd8b769a01ce97a9360.tar.xz linux-461932dfb54ebaf7da438fd8b769a01ce97a9360.zip |
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>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.h')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index 7c7a31169475..4041bad79a9a 100644 --- a/arch/arm/mach-omap2/omap_hwmod.h +++ b/arch/arm/mach-omap2/omap_hwmod.h @@ -754,6 +754,8 @@ const char *omap_hwmod_get_main_clk(struct omap_hwmod *oh); */ extern int omap_hwmod_aess_preprogram(struct omap_hwmod *oh); +void omap_hwmod_rtc_unlock(struct omap_hwmod *oh); +void omap_hwmod_rtc_lock(struct omap_hwmod *oh); /* * Chip variant-specific hwmod init routines - XXX should be converted |