aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/ci_hdrc_imx.h
diff options
context:
space:
mode:
authorPhilipp Puschmann <philipp.puschmann@emlix.com>2019-02-27 06:51:34 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-27 15:51:02 +0100
commit5f0632c467de88b6696d2f339b782af3e594f3b2 (patch)
tree74b729c97a0b96c334ee448381fb23ed4ce34843 /drivers/usb/chipidea/ci_hdrc_imx.h
parentdt-bindings: usb: ci-hdrc-usb2: add property power-active-high (diff)
downloadlinux-dev-5f0632c467de88b6696d2f339b782af3e594f3b2.tar.xz
linux-dev-5f0632c467de88b6696d2f339b782af3e594f3b2.zip
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>
Diffstat (limited to 'drivers/usb/chipidea/ci_hdrc_imx.h')
-rw-r--r--drivers/usb/chipidea/ci_hdrc_imx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.h b/drivers/usb/chipidea/ci_hdrc_imx.h
index 7cc53e2ce564..c842e03f8767 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.h
+++ b/drivers/usb/chipidea/ci_hdrc_imx.h
@@ -18,6 +18,7 @@ struct imx_usbmisc_data {
/* true if dt specifies polarity */
unsigned int oc_pol_configured:1;
+ unsigned int pwr_pol:1; /* power polarity */
unsigned int evdo:1; /* set external vbus divider option */
unsigned int ulpi:1; /* connected to an ULPI phy */
unsigned int hsic:1; /* HSIC controlller */