summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2011-08-22 14:40:10 +0800
committerJustin Waters <justin.waters@timesys.com>2012-09-05 14:57:49 -0400
commitf1adef130e6c7ceda0baf4819f75577cd5df02b3 (patch)
treeefb26aaf21f6a97a2e4b7dc0e07cb7f1f0f8d5e8
parentfea4a9e056bdf9dfee73274184bae4edb3dede26 (diff)
ENGR00151255 mx53 QS: Enable VUSB_2V5
Kernel stops at USB driver initialization if suspending, resuming and resetting the board. It's because VUSB_2V5 voltage is disabled after suspend. Need to re-enable it mannually into U-boot Signed-off-by: Lily Zhang <r58066@freescale.com>
-rw-r--r--board/freescale/mx53_loco/mx53_loco.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/freescale/mx53_loco/mx53_loco.c b/board/freescale/mx53_loco/mx53_loco.c
index c88412e9fc..7f6ded0a9a 100644
--- a/board/freescale/mx53_loco/mx53_loco.c
+++ b/board/freescale/mx53_loco/mx53_loco.c
@@ -702,6 +702,13 @@ int check_recovery_cmd_file(void)
}
#endif
+/* restore VUSB 2V5 active after suspend */
+#define BUCKPERI_RESTORE_SW_STEP (0x55)
+/* restore VUSB 2V5 power supply after suspend */
+#define SUPPLY_RESTORE_VPERISW_EN (0x20)
+#define DA9052_ID1213_REG (35)
+#define DA9052_SUPPLY_REG (60)
+
int board_late_init(void)
{
uchar value;
@@ -729,6 +736,7 @@ int board_late_init(void)
printf("%s:i2c_write:error\n", __func__);
return -1;
}
+
/* set up rev #1 for loco/ripley board */
setup_board_rev(1);
/* Switch to 1GHZ */
@@ -747,6 +755,13 @@ int board_late_init(void)
i2c_read(0x48, 60, 1, &value, 1);
value |= 0x1;
i2c_write(0x48, 60, 1, &value, 1);
+ /* restore VUSB_2V5 when reset from suspend state */
+ value = BUCKPERI_RESTORE_SW_STEP;
+ i2c_write(0x48, DA9052_ID1213_REG, 1, &value, 1);
+ i2c_read(0x48, DA9052_SUPPLY_REG, 1, &value, 1);
+ value |= SUPPLY_RESTORE_VPERISW_EN;
+ i2c_write(0x48, DA9052_SUPPLY_REG, 1, &value, 1);
+
/* set up rev #0 for loco/da9053 board */
setup_board_rev(0);
/* Switch to 1GHZ */