From 44368eb7f6f9408e67f6b97570204fd084638996 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 12 Sep 2016 14:26:51 -0700 Subject: colibri_imx7: disable DCDC2 discharge Disable DCDC2 discharge as this leads to higher power consumption when turning off DCDC2 on Colibri iMX7S. This is likely due to backfeeding the DCDC2 through the VFB2 pin. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- board/toradex/colibri_imx7/colibri_imx7.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c index 01a50a7e6e..8ec2199fdd 100644 --- a/board/toradex/colibri_imx7/colibri_imx7.c +++ b/board/toradex/colibri_imx7/colibri_imx7.c @@ -600,6 +600,11 @@ int power_init_board(void) reg = (reg & 0xf0) | reg >> 4; pmic_reg_write(p, RN5T567_LDO1_SLOT, reg); + /* disable DCDC2 discharge to avoid backfeeding through VFB2 */ + pmic_reg_read(p, RN5T567_DC2CTL, ®); + reg &= ~(0x2); + pmic_reg_write(p, RN5T567_DC2CTL, reg); + pmic_reg_read(p, RN5T567_DC2_SLOT, ®); reg = (reg & 0xf0) | reg >> 4; pmic_reg_write(p, RN5T567_DC2_SLOT, reg); -- cgit v1.2.3