lkml.org 
[lkml]   [2021]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] mfd: rk808: Add poweroff and reboot support for rk809 pmic
Date
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 --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
\
 
 \ /
  Last update: 2021-12-15 22:50    [W:0.049 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site