From 0df160cd68571cf895e84ac9f932e84db9e01952 Mon Sep 17 00:00:00 2001 From: Juan Gutierrez Date: Fri, 18 Nov 2016 11:02:19 -0600 Subject: 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 --- board/freescale/mx6sxscm/mx6sxscm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 &= ~SWBST_MODE_MASK; - reg |= SWBST_MODE_AUTO; + reg |= SWBST_MODE_AUTO << SWBST_MODE_SHIFT; reg |= 0x40; pmic_reg_write(pfuze, PFUZE100_SWBSTCON1, reg); -- cgit v1.1