From 2885cf75f2f944c6ededd7fb0d3189ba6681f0cc Mon Sep 17 00:00:00 2001 From: Ye Li Date: Tue, 20 Jun 2017 06:30:18 -0500 Subject: MLK-15108 mx7d_12x12_lpddr3_arm2: Fix PMIC setting issue Fix the SW2MODE setting problem in power_init_board, which causes issue when wakeup source is set in kernel for LPSR. Signed-off-by: Ye Li Reviewed-by: Bai Ping (cherry picked from commit 35e62eb779ffcc5af32a6fff615549e536bf6cf4) --- board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c b/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c index 692f158..2c64a9a 100644 --- a/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c +++ b/board/freescale/mx7d_12x12_lpddr3_arm2/mx7d_12x12_lpddr3_arm2.c @@ -615,7 +615,7 @@ int power_init_board(void) reg |= 0x80; pmic_reg_write(dev, PFUZE3000_VLDO3CTL, reg); - pmic_reg_read(dev, PFUZE3000_SW2MODE); + reg = pmic_reg_read(dev, PFUZE3000_SW2MODE); reg |= 0x20; pmic_reg_write(dev, PFUZE3000_SW2MODE, reg); -- cgit v1.1