diff options
author | Vivek Gautam <gautam.vivek@samsung.com> | 2013-01-07 23:37:18 +0000 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-01-08 21:14:34 +0900 |
commit | 9a0c4f9b870da77b1768470bc37d12251e0a438e (patch) | |
tree | c56f64adfb885ff956a6e8fb96d5288b270e602a /board/samsung/smdk5250/smdk5250.c | |
parent | 6abd1620beeb96f64c85f4fac8336fcb523b912e (diff) | |
download | u-boot-imx-9a0c4f9b870da77b1768470bc37d12251e0a438e.zip u-boot-imx-9a0c4f9b870da77b1768470bc37d12251e0a438e.tar.gz u-boot-imx-9a0c4f9b870da77b1768470bc37d12251e0a438e.tar.bz2 |
SMDK5250: Enable VBus for USB 2.0 controller
This patch enables Vbus required for USB 2.0 controller.
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung/smdk5250/smdk5250.c')
-rw-r--r-- | board/samsung/smdk5250/smdk5250.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 73c3ec0..d80f75d 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -35,12 +35,31 @@ DECLARE_GLOBAL_DATA_PTR; +#ifdef CONFIG_USB_EHCI_EXYNOS +int board_usb_vbus_init(void) +{ + struct exynos5_gpio_part1 *gpio1 = (struct exynos5_gpio_part1 *) + samsung_get_base_gpio_part1(); + + /* Enable VBUS power switch */ + s5p_gpio_direction_output(&gpio1->x2, 6, 1); + + /* VBUS turn ON time */ + mdelay(3); + + return 0; +} +#endif + int board_init(void) { gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL); #ifdef CONFIG_EXYNOS_SPI spi_init(); #endif +#ifdef CONFIG_USB_EHCI_EXYNOS + board_usb_vbus_init(); +#endif return 0; } |