projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39ac2a0
)
mfd: rk808: close rtc int when power off
author
Binyuan Lan
<lby@rock-chips.com>
Fri, 30 Sep 2016 03:40:20 +0000
(11:40 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Fri, 30 Sep 2016 11:57:32 +0000
(19:57 +0800)
Change-Id: I1f1bfe3d6c106632c45b51bec3c18361572df865
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
drivers/mfd/rk808.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/rk808.c
b/drivers/mfd/rk808.c
index 9bffa6ded0b705754313066ee266507ee8b6bdc1..0db26cd7876e2debf966c0a26395873879a3c5ea 100644
(file)
--- a/
drivers/mfd/rk808.c
+++ b/
drivers/mfd/rk808.c
@@
-358,6
+358,14
@@
static void rk808_device_shutdown(void)
return;
}
+ /* close rtc int when power off */
+ regmap_update_bits(rk808->regmap,
+ RK808_INT_STS_MSK_REG1,
+ (0x3 << 5), (0x3 << 5));
+ regmap_update_bits(rk808->regmap,
+ RK808_RTC_INT_REG,
+ (0x3 << 2), (0x0 << 2));
+
ret = pm_shutdown(rk808->regmap);
if (ret)
dev_err(&rk808_i2c_client->dev, "power off error!\n");