* [U-Boot] [PATCH v2] SMDK5250: Enable VBus for USB 2.0 controller
@ 2013-01-03 15:22 Vivek Gautam
2013-01-07 15:37 ` Marek Vasut
0 siblings, 1 reply; 4+ messages in thread
From: Vivek Gautam @ 2013-01-03 15:22 UTC (permalink / raw)
To: u-boot
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>
---
Changes from v1:
- Using the old school method of setting up gpio instead
of using the pinmux method, since the required gpio line
here is board specific.
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 268b42c..fad58f3 100644
--- a/board/samsung/smdk5250/smdk5250.c
+++ b/board/samsung/smdk5250/smdk5250.c
@@ -35,12 +35,29 @@
DECLARE_GLOBAL_DATA_PTR;
+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;
+}
+
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;
}
--
1.7.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] SMDK5250: Enable VBus for USB 2.0 controller
2013-01-03 15:22 [U-Boot] [PATCH v2] SMDK5250: Enable VBus for USB 2.0 controller Vivek Gautam
@ 2013-01-07 15:37 ` Marek Vasut
2013-01-08 6:12 ` Vivek Gautam
0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2013-01-07 15:37 UTC (permalink / raw)
To: u-boot
Dear Vivek Gautam,
> 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>
> ---
Can you please rebase on top of u-boot-usb/next ?
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] SMDK5250: Enable VBus for USB 2.0 controller
2013-01-07 15:37 ` Marek Vasut
@ 2013-01-08 6:12 ` Vivek Gautam
2013-01-08 7:03 ` Marek Vasut
0 siblings, 1 reply; 4+ messages in thread
From: Vivek Gautam @ 2013-01-08 6:12 UTC (permalink / raw)
To: u-boot
Hi Marek,
CCing: Simon Glass
On Mon, Jan 7, 2013 at 9:07 PM, Marek Vasut <marex@denx.de> wrote:
> Dear Vivek Gautam,
>
>> 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>
>> ---
>
> Can you please rebase on top of u-boot-usb/next ?
>
Since these changes were related to samsung so i based them on
u-boot-samsung. :-)
I shall post a patch rebased on top of u-boot-usb/next.
--
Thanks & Regards
Vivek
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] SMDK5250: Enable VBus for USB 2.0 controller
2013-01-08 6:12 ` Vivek Gautam
@ 2013-01-08 7:03 ` Marek Vasut
0 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2013-01-08 7:03 UTC (permalink / raw)
To: u-boot
Dear Vivek Gautam,
> Hi Marek,
>
>
> CCing: Simon Glass
>
> On Mon, Jan 7, 2013 at 9:07 PM, Marek Vasut <marex@denx.de> wrote:
> > Dear Vivek Gautam,
> >
> >> 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>
> >> ---
> >
> > Can you please rebase on top of u-boot-usb/next ?
>
> Since these changes were related to samsung so i based them on
> u-boot-samsung. :-)
> I shall post a patch rebased on top of u-boot-usb/next.
Oh, I'll pick this for -next.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-08 7:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 15:22 [U-Boot] [PATCH v2] SMDK5250: Enable VBus for USB 2.0 controller Vivek Gautam
2013-01-07 15:37 ` Marek Vasut
2013-01-08 6:12 ` Vivek Gautam
2013-01-08 7:03 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox