From 4eeeb82ec0d4c91a5061ed8955956873135502f7 Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Fri, 5 Jan 2018 21:46:03 +0800 Subject: [PATCH] MLK-17346 board: imx8mq: Change the SW3A standby mode to off 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 Reviewed-by: Anson Huang --- board/freescale/imx8mq_evk/spl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/freescale/imx8mq_evk/spl.c b/board/freescale/imx8mq_evk/spl.c index fe2b88deff..d51d5d3a4c 100644 --- a/board/freescale/imx8mq_evk/spl.c +++ b/board/freescale/imx8mq_evk/spl.c @@ -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 &= ~0xf; + reg |= APS_OFF; + pmic_reg_write(p, PFUZE100_SW3AMODE, reg); + return 0; } #endif -- 2.17.1