summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot-v2012.04.01/0037-mx53loco-Turn-on-VUSB-regulator.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-v2012.04.01/0037-mx53loco-Turn-on-VUSB-regulator.patch')
-rw-r--r--recipes-bsp/u-boot/u-boot-v2012.04.01/0037-mx53loco-Turn-on-VUSB-regulator.patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/recipes-bsp/u-boot/u-boot-v2012.04.01/0037-mx53loco-Turn-on-VUSB-regulator.patch b/recipes-bsp/u-boot/u-boot-v2012.04.01/0037-mx53loco-Turn-on-VUSB-regulator.patch
deleted file mode 100644
index 783c460..0000000
--- a/recipes-bsp/u-boot/u-boot-v2012.04.01/0037-mx53loco-Turn-on-VUSB-regulator.patch
+++ /dev/null
@@ -1,59 +0,0 @@
1From b2297ec8b5d8efeee9adfed046afd8594f020b51 Mon Sep 17 00:00:00 2001
2From: Fabio Estevam <fabio.estevam@freescale.com>
3Date: Mon, 7 May 2012 10:26:00 +0000
4Subject: [PATCH 37/56] mx53loco: Turn on VUSB regulator
5
6On the mx53loco board with mc34708 PMIC it is necessary to turn on VUSB regulator
7so that the mx53 USBH1 PHY receives the 3.3V voltage.
8
9Tested by inserting a USB pen drive in the upper USB slot (USBH1) and then issued the
10commands:
11
12usb start
13
14usb info
15
16,which correctly detected and printed the USB pen drive information.
17
18Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
19Acked-by: Jason Liu <r64343@freescale.com>
20Acked-by: Stefano Babic <sbabic@denx.de>
21---
22 board/freescale/mx53loco/mx53loco.c | 9 +++++++++
23 include/fsl_pmic.h | 1 +
24 2 files changed, 10 insertions(+)
25
26diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
27index 8f5ded9..a49b00a 100644
28--- a/board/freescale/mx53loco/mx53loco.c
29+++ b/board/freescale/mx53loco/mx53loco.c
30@@ -359,6 +359,15 @@ static int power_init(void)
31 pmic_reg_read(p, REG_POWER_CTL2, &val);
32 val = (val & ~TIMER_MASK_MC34708) | TIMER_4S_MC34708;
33 ret |= pmic_reg_write(p, REG_POWER_CTL2, val);
34+
35+ /* Set VUSBSEL and VUSBEN for USB PHY supply*/
36+ pmic_reg_read(p, REG_MODE_0, &val);
37+ val |= (VUSBSEL_MC34708 | VUSBEN_MC34708);
38+ ret |= pmic_reg_write(p, REG_MODE_0, val);
39+
40+ /* Set SWBST to 5V in auto mode */
41+ val = SWBST_AUTO;
42+ ret |= pmic_reg_write(p, SWBST_CTRL, val);
43 }
44
45 return ret;
46diff --git a/include/fsl_pmic.h b/include/fsl_pmic.h
47index 3b7cd37..64c1e2e 100644
48--- a/include/fsl_pmic.h
49+++ b/include/fsl_pmic.h
50@@ -131,5 +131,6 @@ enum {
51 #define VUSBSEL_MC34708 (1 << 2)
52 #define VUSBEN_MC34708 (1 << 3)
53 #define SWBST_CTRL 31
54+#define SWBST_AUTO 0x8
55
56 #endif
57--
581.7.10
59