diff mbox series

[2/2] mfd: rk808: Add poweroff and reboot support for rk809 pmic

Message ID 20211215213300.4778-3-linux@fw-web.de (mailing list archive)
State New, archived
Headers show
Series Add Poweroff/Reset for rk8xx PMIC | expand

Commit Message

Frank Wunderlich Dec. 15, 2021, 9:33 p.m. UTC
From: Frank Wunderlich <frank-w@public-files.de>

Add support for reset/poweroff rk809. It uses same Register and Values
like rk817 so just add the Chip_id.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 drivers/mfd/rk808.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index afbd7e01df50..2353caa81aa2 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -545,6 +545,7 @@  static void rk808_pm_power_off(void)
 		reg = RK808_DEVCTRL_REG,
 		bit = DEV_OFF_RST;
 		break;
+	case RK809_ID:
 	case RK817_ID:
 		reg = RK817_SYS_CFG(3);
 		bit = DEV_OFF;
@@ -577,6 +578,7 @@  static int rk808_restart_notify(struct notifier_block *this, unsigned long mode,
 		reg = RK808_DEVCTRL_REG,
 		bit = DEV_OFF;
 		break;
+	case RK809_ID:
 	case RK817_ID:
 		reg = RK817_SYS_CFG(3);
 		bit = DEV_RST;