diff options
author | Ondrej Jirman <megi@xff.cz> | 2023-10-19 19:57:26 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-11-01 13:02:17 +0300 |
commit | b0227e7081404448a0059b8698fdffd2dec280d2 (patch) | |
tree | e6ecfc4461972b8a4b3a56bc60f5304ab35cfce7 /drivers/mfd/rk8xx-core.c | |
parent | 2a46cd97f401a669d71b3d36b78bd6653f8424ee (diff) | |
download | linux-b0227e7081404448a0059b8698fdffd2dec280d2.tar.xz |
mfd: rk8xx: Add support for RK806 power off
Use DEV_OFF bit to power off the RK806 PMIC, when system-power-controller
is used in DTS.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20231019165732.3818789-5-megi@xff.cz
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/rk8xx-core.c')
-rw-r--r-- | drivers/mfd/rk8xx-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c index a50a181b18e9..c47164a3ec1d 100644 --- a/drivers/mfd/rk8xx-core.c +++ b/drivers/mfd/rk8xx-core.c @@ -525,6 +525,10 @@ static int rk808_power_off(struct sys_off_data *data) reg = RK805_DEV_CTRL_REG; bit = DEV_OFF; break; + case RK806_ID: + reg = RK806_SYS_CFG3; + bit = DEV_OFF; + break; case RK808_ID: reg = RK808_DEVCTRL_REG, bit = DEV_OFF_RST; |