From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 6 Jan 2014 16:52:04 +0100 Subject: [U-Boot] [PATCH 7/8] smdk5420: Correct the vbus gpio configuration for USB controller In-Reply-To: <1389000583-20758-8-git-send-email-gautam.vivek@samsung.com> References: <1389000583-20758-1-git-send-email-gautam.vivek@samsung.com> <1389000583-20758-8-git-send-email-gautam.vivek@samsung.com> Message-ID: <201401061652.04335.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, January 06, 2014 at 10:29:42 AM, Vivek Gautam wrote: > On smdk5420 two availbale XHCI controllers require VBUS GPIO > to be configured, the EHCI however doesn't have any such VBUS > GPIO. So correcting the available board_usb_vbus_init() function > to the needs. > > Signed-off-by: Vivek Gautam > --- > board/samsung/smdk5420/smdk5420.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/board/samsung/smdk5420/smdk5420.c > b/board/samsung/smdk5420/smdk5420.c index 3ad2ad0..4f23000 100644 > --- a/board/samsung/smdk5420/smdk5420.c > +++ b/board/samsung/smdk5420/smdk5420.c > @@ -18,14 +18,15 @@ > > DECLARE_GLOBAL_DATA_PTR; > > -#ifdef CONFIG_USB_EHCI_EXYNOS > +#ifdef CONFIG_USB_XHCI_EXYNOS > static int board_usb_vbus_init(void) > { > - struct exynos5_gpio_part1 *gpio1 = (struct exynos5_gpio_part1 *) > - samsung_get_base_gpio_part1(); > + struct exynos5420_gpio_part4 *gpio4 = (struct exynos5420_gpio_part4 *) > + samsung_get_base_gpio_part4(); > > /* Enable VBUS power switch */ > - s5p_gpio_direction_output(&gpio1->x2, 6, 1); > + s5p_gpio_direction_output(&gpio4->g0, 5, 1); > + s5p_gpio_direction_output(&gpio4->g1, 4, 1); This VBUS toggling should happen on per-port basis, right ? Best regards, Marek Vasut