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)
commit899f0f561b51506f40eb78c9c4aaeeabf97cf35c
tree99128d061eb057588adde2dec739dc848cc0091d
parent77f4396ecb3396e518da60f915bbd4726732fd70
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