]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
exynos: usb: Switch USB VBUS GPIOs to be device tree configured
authorJulius Werner <jwerner@chromium.org>
Sat, 14 Sep 2013 08:32:52 +0000 (14:02 +0530)
committerMarek Vasut <marex@denx.de>
Sun, 20 Oct 2013 21:42:38 +0000 (23:42 +0200)
commit4a271cb1b4ffdf33073c0dc8ee1e185c037275f4
tree9e4cb7ba9e1464c094e65236b0a0e2920d89417e
parent8f999f0cbcd4802095d7f812871661a3e7f479d7
exynos: usb: Switch USB VBUS GPIOs to be device tree configured

Some Exynos boards, such as the SMDK5250, control USB port power through
a GPIO pin. For now this had been hardcoded in the exynos5-dt board
file, but not all boards use the same pin, requiring local changes to
support different boards.

This patch moves the GPIO initialization into the USB host controller
drivers which they belong to, and uses the samsung,vbus-gpio parameter
in the device tree to configure it.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Marek Vasut <marex@denx.de>
board/samsung/smdk5250/exynos5-dt.c
drivers/usb/host/ehci-exynos.c
drivers/usb/host/xhci-exynos5.c