Skip to content

Commit f214b9b

Browse files
Binyuan Lanrkhuangtao
authored andcommitted
mfd: rk808: close rtc int when power off
Change-Id: I1f1bfe3d6c106632c45b51bec3c18361572df865 Signed-off-by: Binyuan Lan <lby@rock-chips.com>
1 parent 39ac2a0 commit f214b9b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/mfd/rk808.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,14 @@ static void rk808_device_shutdown(void)
358358
return;
359359
}
360360

361+
/* close rtc int when power off */
362+
regmap_update_bits(rk808->regmap,
363+
RK808_INT_STS_MSK_REG1,
364+
(0x3 << 5), (0x3 << 5));
365+
regmap_update_bits(rk808->regmap,
366+
RK808_RTC_INT_REG,
367+
(0x3 << 2), (0x0 << 2));
368+
361369
ret = pm_shutdown(rk808->regmap);
362370
if (ret)
363371
dev_err(&rk808_i2c_client->dev, "power off error!\n");

0 commit comments

Comments
 (0)