aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/ci_hdrc_imx.h
diff options
context:
space:
mode:
authorLi Jun <jun.li@nxp.com>2016-07-20 16:02:42 +0800
committerPeter Chen <peter.chen@nxp.com>2016-09-14 10:58:13 +0800
commit9dba516ed282e3d16481051be547b54caa312029 (patch)
treeec7084ebf573cf90dc78098213eb57f87691e7a5 /drivers/usb/chipidea/ci_hdrc_imx.h
parentdoc: usb: ci-hdrc-usb2: add property over-current-active-high (diff)
downloadlinux-dev-9dba516ed282e3d16481051be547b54caa312029.tar.xz
linux-dev-9dba516ed282e3d16481051be547b54caa312029.zip
usb: chipidea: imx: set over current polarity per dts setting
imx usb over current polarity is low active by default, with over-current-active-high property added, user can config it to be high active. Meanwhile keep this setting unchanged for existing platforms so new platform must set the right value for active low by its usbmisc init function if over current is enabled. Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
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 635717e9354a..409aa5ca8dda 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.h
+++ b/drivers/usb/chipidea/ci_hdrc_imx.h
@@ -17,6 +17,7 @@ struct imx_usbmisc_data {
int index;
unsigned int disable_oc:1; /* over current detect disabled */
+ unsigned int oc_polarity:1; /* over current polarity if oc enabled */
unsigned int evdo:1; /* set external vbus divider option */
};