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-12-01 10:00:57 -0600
commit0df160cd68571cf895e84ac9f932e84db9e01952 (patch)
tree82945ad3ab4e17f51d57578a52caf9f90fdab2d8
parent36b79dc8497ba01dd3968dfdb36bfb6acb0e619b (diff)
downloadu-boot-imx-0df160cd68571cf895e84ac9f932e84db9e01952.zip
u-boot-imx-0df160cd68571cf895e84ac9f932e84db9e01952.tar.gz
u-boot-imx-0df160cd68571cf895e84ac9f932e84db9e01952.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);