]> git.dujemihanovic.xyz Git - u-boot.git/commit
regulator: rk8xx: Fix buck get and set enabled state on RK806
authorJonas Karlman <jonas@kwiboo.se>
Tue, 17 Sep 2024 20:59:17 +0000 (20:59 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 27 Sep 2024 10:20:49 +0000 (18:20 +0800)
commit596465138175cd7e4171cad1e68a2ef7c5c002bc
treede81a19e0bb795e018e106308345cc00acb04696
parent56b47b8b6a09c777e74fe6c52512c832691169aa
regulator: rk8xx: Fix buck get and set enabled state on RK806

Wrong POWER_EN reg is used to get and set enabled state for the RK806
buck 4 and 8 regulators, also wrong POWER_SLP_EN0 bit is used for
suspend state for the RK806 buck 1-8 regulators.

Fix this by not adding one to the zero based buck variable.

Fixes: f172575d92cd ("power: rk8xx: add support for RK806")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
drivers/power/regulator/rk8xx.c