diff options
author | Fabien Lahoudere <fabien.lahoudere@collabora.co.uk> | 2016-09-26 13:14:19 +0200 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2016-11-14 10:03:40 +0800 |
commit | d13631bb15cebe8eba50777cb96e2223e5485c23 (patch) | |
tree | 79ad2f4a9dd82b7dd7affca5ae6a97adc6e6dca2 /drivers/usb/chipidea/ci_hdrc_imx.h | |
parent | 34445fb4333f47674e988b98a587195ffa84beae (diff) |
usb: chipidea: imx: configure imx for ULPI phy
In order to use ULPI phy with usb host 2 and 3, we need to configure
controller register to enable ULPI features.
Each USB controller have different behaviour, so in order to avoid to have
several "swicth(data->index)" and lock/unlock, we prefer to get the index
switch and then test for features if they exist for this index.
This patch also remove useless test of reg and val. Those two values cannot
be NULL.
Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
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.h | 1 |
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 409aa5ca8dda..d666c9f036ba 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.h +++ b/drivers/usb/chipidea/ci_hdrc_imx.h @@ -19,6 +19,7 @@ struct imx_usbmisc_data { 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 */ + unsigned int ulpi:1; /* connected to an ULPI phy */ }; int imx_usbmisc_init(struct imx_usbmisc_data *); |