summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2015-10-21 09:51:26 +0800
committerRobin Gong <b38343@freescale.com>2015-10-21 09:59:45 +0800
commit7c31d5c2398c9ca5d1b15ddee82272a660eab49e (patch)
tree5b20d1453525305fb3a6ed40b5396df0c3ffa871 /drivers
parentb6b5888dfd7df290cf7216c656453eca0c2c24c6 (diff)
MLK-11745 rtc: rtc-snvs: keep snvs clock before poweroff
Keep SNVS clock before poweroff by SW, otherwise PMIC_ON_REQ can't be pulled up if ONOFF key pressed next time. This is design limitation. Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-snvs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c
index cb19c83d05b0..ede0750f9683 100644
--- a/drivers/rtc/rtc-snvs.c
+++ b/drivers/rtc/rtc-snvs.c
@@ -267,7 +267,11 @@ static void snvs_poweroff(void)
value = readl(snvs_base + SNVS_LPCR);
/* set TOP and DP_EN bit */
writel(value | 0x60, snvs_base + SNVS_LPCR);
- clk_disable(clk_snvs);
+ /*
+ * Do not turn off snvs clock otherwise PMIC_ON_REQ can't be pulled
+ * high by press ONOFF. This is design limitation.
+ */
+ /* clk_disable(clk_snvs); */
}
static int snvs_rtc_probe(struct platform_device *pdev)