Commit d8e50e50 authored by Bai Ping's avatar Bai Ping

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: default avatarBai Ping <ping.bai@nxp.com>
Reviewed-by: default avatarAnson Huang <anson.huang@nxp.com>
(cherry picked from commit 4eeeb82e)
parent 45e8a812
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment