[U-Boot] [PATCH 2/2] SMDK5250: Enable VBus for USB
Rajeshwari Shinde
rajeshwari.s at samsung.com
Mon Dec 3 14:18:17 CET 2012
This patch enables Vbus required for USB.
Signed-off-by: Vivek Gautam <gautam.vivek at samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s at samsung.com>
---
board/samsung/smdk5250/smdk5250.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
index 5ebc665..fb4c70e 100644
--- a/board/samsung/smdk5250/smdk5250.c
+++ b/board/samsung/smdk5250/smdk5250.c
@@ -63,6 +63,19 @@ void board_poll_devices(void)
#endif
}
+int board_usb_vbus_init(void)
+{
+ int err;
+ err = exynos_pinmux_config(PERIPH_ID_USB20, PINMUX_FLAG_NONE);
+ if (err) {
+ debug("VBUS not configured\n");
+ return err;
+ }
+ /* VBUS turn ON time */
+ mdelay(3);
+ return 0;
+}
+
int board_init(void)
{
gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
@@ -80,6 +93,10 @@ int board_init(void)
#ifdef CONFIG_EXYNOS_SPI
spi_init();
#endif
+
+#ifdef CONFIG_USB_EHCI_EXYNOS
+ board_usb_vbus_init();
+#endif
return 0;
}
--
1.7.4.4
More information about the U-Boot
mailing list