summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Gutierrez <juan.gutierrez@nxp.com>2016-11-18 11:02:19 -0600
committerJuan Gutierrez <juan.gutierrez@nxp.com>2016-11-30 13:13:08 -0600
commit80a2d6adbcae1001253c88e31da5add728974b07 (patch)
tree17a4c62d5fa3911e751441d6f074fac46618cd2f
parent7b2603e626e3bd37b21ecaf86aab23b5b5915545 (diff)
downloadu-boot-imx-80a2d6adbcae1001253c88e31da5add728974b07.zip
u-boot-imx-80a2d6adbcae1001253c88e31da5add728974b07.tar.gz
u-boot-imx-80a2d6adbcae1001253c88e31da5add728974b07.tar.bz2
MXSCM-222 usb: fix swbst_mode to properly power usb
The definition of the SWBST_MODE_AUTO at the pfuze100_pmic.h file changed between uboot versions. On the previous version the shift to the proper bit field was part of the macro. In the uboot v2016 this macro does not include the shift and needs to be performed explicitly to properly modify the SWBST_MODE bit field. Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
-rw-r--r--board/freescale/mx6sxscm/mx6sxscm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mx6sxscm/mx6sxscm.c b/board/freescale/mx6sxscm/mx6sxscm.c
index fa029fe..6ec7926 100644
--- a/board/freescale/mx6sxscm/mx6sxscm.c
+++ b/board/freescale/mx6sxscm/mx6sxscm.c
@@ -364,7 +364,7 @@ int power_init_board(void)
/* set SWBST boost regulator mode */
pmic_reg_read(pfuze, PFUZE100_SWBSTCON1, &reg);
reg &= ~SWBST_MODE_MASK;
- reg |= SWBST_MODE_AUTO;
+ reg |= SWBST_MODE_AUTO << SWBST_MODE_SHIFT;
reg |= 0x40;
pmic_reg_write(pfuze, PFUZE100_SWBSTCON1, reg);