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>2017-01-31 14:59:49 -0600
commitd2e16e009e2c4cff6b7e203adaa0211db92c7e00 (patch)
tree660cfae2e296c41f5f970ba4f0ce42d5abb6b284
parent2abf979e3581df9ac7c21672ada2c6f250627e72 (diff)
downloadu-boot-imx-d2e16e009e2c4cff6b7e203adaa0211db92c7e00.zip
u-boot-imx-d2e16e009e2c4cff6b7e203adaa0211db92c7e00.tar.gz
u-boot-imx-d2e16e009e2c4cff6b7e203adaa0211db92c7e00.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);