[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211215213300.4778-3-linux@fw-web.de>
Date: Wed, 15 Dec 2021 22:33:00 +0100
From: Frank Wunderlich <linux@...web.de>
To: Lee Jones <lee.jones@...aro.org>
Cc: Frank Wunderlich <frank-w@...lic-files.de>,
linux-kernel@...r.kernel.org, linux-rockchip@...ts.infradead.org,
Peter Geis <pgwipeout@...il.com>
Subject: [PATCH 2/2] mfd: rk808: Add poweroff and reboot support for rk809 pmic
From: Frank Wunderlich <frank-w@...lic-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@...lic-files.de>
---
drivers/mfd/rk808.c | 2 ++
1 file changed, 2 insertions(+)
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;
--
2.25.1
Powered by blists - more mailing lists