usb: chipidea: imx: set power polarity
authorPhilipp Puschmann <philipp.puschmann@emlix.com>
Wed, 27 Feb 2019 06:51:34 +0000 (06:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 14:51:02 +0000 (15:51 +0100)
commit5f0632c467de88b6696d2f339b782af3e594f3b2
tree74b729c97a0b96c334ee448381fb23ed4ce34843
parent30097374e6ff6997f6c7104b62d7e2c6d15578f0
usb: chipidea: imx: set power polarity

This patch adds support to set the power line polarity for i.MX SoCs.

To let the USB controller control the power it may be necessary to
configure the polarity of the power line. So far the polarity was
configured by Bootloader or alternatively the power line was muxed
as gpio and driven by a regulator.

Also make use of of_property_read_bool.

Signed-off-by: Philipp Puschmann <philipp.puschmann@emlix.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c
drivers/usb/chipidea/ci_hdrc_imx.h
drivers/usb/chipidea/usbmisc_imx.c