mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
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>
This commit is contained in:
parent
6abd1620be
commit
9a0c4f9b87
@ -35,11 +35,30 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
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)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
|
gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL);
|
||||||
#ifdef CONFIG_EXYNOS_SPI
|
#ifdef CONFIG_EXYNOS_SPI
|
||||||
spi_init();
|
spi_init();
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_USB_EHCI_EXYNOS
|
||||||
|
board_usb_vbus_init();
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user