aboutsummaryrefslogtreecommitdiff
path: root/src/soc/rockchip/rk3288/rk808.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/rockchip/rk3288/rk808.c')
-rw-r--r--src/soc/rockchip/rk3288/rk808.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/rockchip/rk3288/rk808.c b/src/soc/rockchip/rk3288/rk808.c
index fffef8907e..9713a9292f 100644
--- a/src/soc/rockchip/rk3288/rk808.c
+++ b/src/soc/rockchip/rk3288/rk808.c
@@ -53,6 +53,11 @@ void rk808_configure_ldo(uint8_t bus, int ldo, int millivolts)
{
uint8_t vsel;
+ if (!millivolts) {
+ rk808_clrsetbits(bus, LDO_EN, 1 << (ldo - 1), 0);
+ return;
+ }
+
switch (ldo) {
case 1:
case 2: