]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: ab8500-usb: adopt pinctrl support
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 3 Apr 2013 08:45:11 +0000 (10:45 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Apr 2013 09:02:49 +0000 (12:02 +0300)
commit3c6f6ce6ea6a9397ba9b9a8d016bdb21a247d802
tree99128d061eb057588adde2dec739dc848cc0091d
parenteedd87c265d75f965f57a47d4e5e4da42a1363a0
usb: phy: ab8500-usb: adopt pinctrl support

Amend the ab8500-usb driver to optionally take a pin control handle and
set the state of the pins to "default" on ab8500_usb_phy_enable and to
"sleep" on ab8500_usb_phy_disable.

The pinctrl handle is released on ab8500_usb_phy_disable because USB
pins are shared with ab8505_micro_usb_iddet driver.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-ab8500-usb.c