mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-22 04:56:15 +00:00
7108f5bd9f
Backport upstreamed clk/mfd/phy/usb updates for rk3588. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> Link: https://github.com/openwrt/openwrt/pull/16149 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 lines
906 B
Diff
30 lines
906 B
Diff
From b0227e7081404448a0059b8698fdffd2dec280d2 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megi@xff.cz>
|
|
Date: Thu, 19 Oct 2023 18:57:26 +0200
|
|
Subject: [PATCH] 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>
|
|
---
|
|
drivers/mfd/rk8xx-core.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
--- a/drivers/mfd/rk8xx-core.c
|
|
+++ b/drivers/mfd/rk8xx-core.c
|
|
@@ -517,6 +517,10 @@ static int rk808_power_off(struct sys_of
|
|
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;
|