MLK-17346 board: imx8mq: Change the SW3A standby mode to off
authorBai Ping <ping.bai@nxp.com>
Fri, 5 Jan 2018 13:46:03 +0000 (21:46 +0800)
committerBai Ping <ping.bai@nxp.com>
Tue, 13 Feb 2018 15:34:24 +0000 (23:34 +0800)
On i.MX8MQ EVK board, the SW3A is used for VDD_DRAM supply,
when system enter DSM mode, the DDR is put into retention mode,
the VDD_DRAM supply can be power off to reduce the leakage
current to save power. Set the SW3A mode to APM_OFF mode to power
off the SW3A when PMIC enters standby mode.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
board/freescale/imx8mq_evk/spl.c

index fe2b88d..d51d5d3 100644 (file)
@@ -175,6 +175,12 @@ int power_init_board(void)
        if (ret < 0)
                return ret;
 
+       /* set SW3A standby mode to off */
+       pmic_reg_read(p, PFUZE100_SW3AMODE, &reg);
+       reg &= ~0xf;
+       reg |= APS_OFF;
+       pmic_reg_write(p, PFUZE100_SW3AMODE, reg);
+
        return 0;
 }
 #endif