Skip to content

Commit b0227e7

Browse files
Ondrej Jirmanlag-linaro
authored andcommitted
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 <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 2a46cd9 commit b0227e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/mfd/rk8xx-core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ static int rk808_power_off(struct sys_off_data *data)
525525
reg = RK805_DEV_CTRL_REG;
526526
bit = DEV_OFF;
527527
break;
528+
case RK806_ID:
529+
reg = RK806_SYS_CFG3;
530+
bit = DEV_OFF;
531+
break;
528532
case RK808_ID:
529533
reg = RK808_DEVCTRL_REG,
530534
bit = DEV_OFF_RST;

0 commit comments

Comments
 (0)