]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: AMx3xx: 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)
Hook omap_hwmod_rtc_unlock/lock functions into RTC hwmod,
so that SYSCONFIG register is updated properly.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c

index 907a452b78ea240b07d061993d4355b0dbde01a4..aed33621deebfb1d10361cde6d04288e3206f176 100644 (file)
@@ -918,6 +918,8 @@ static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = {
 static struct omap_hwmod_class am33xx_rtc_hwmod_class = {
        .name           = "rtc",
        .sysc           = &am33xx_rtc_sysc,
+       .unlock         = &omap_hwmod_rtc_unlock,
+       .lock           = &omap_hwmod_rtc_lock,
 };
 
 struct omap_hwmod am33xx_rtc_hwmod = {