Browse Source

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>
imx_v2016.03_4.1.15_2.0.0_ga
Juan Gutierrez 4 years ago
parent
commit
80a2d6adbc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      board/freescale/mx6sxscm/mx6sxscm.c

+ 1
- 1
board/freescale/mx6sxscm/mx6sxscm.c View File

@ -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);


Loading…
Cancel
Save