diff options
author | Eric Bénard <eric@eukrea.com> | 2015-09-25 17:48:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-29 08:47:25 +0200 |
commit | 39b0eb3b8472b1b9ed37b2e397bccfb9f0f3225e (patch) | |
tree | 80de76645c79b719efbf77b4a72992f515ff2f68 /include/usb/chipidea-imx.h | |
parent | 6b3bf88b7c697b4c7652618615509f8175889013 (diff) | |
download | barebox-39b0eb3b8472b1b9ed37b2e397bccfb9f0f3225e.tar.gz barebox-39b0eb3b8472b1b9ed37b2e397bccfb9f0f3225e.tar.xz |
chipidea-imx: allow phymode configuration in pdata
it's currently only handled through DT and for i.MX25 OTG port (at least),
we need to configure portsc to get host mode working but it actually fails
as ci->phymode is 0 which is USBPHY_INTERFACE_MODE_UNKNOWN
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/chipidea-imx.h')
-rw-r--r-- | include/usb/chipidea-imx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb/chipidea-imx.h b/include/usb/chipidea-imx.h index 09e19af091..64f086af6c 100644 --- a/include/usb/chipidea-imx.h +++ b/include/usb/chipidea-imx.h @@ -1,6 +1,8 @@ #ifndef __USB_CHIPIDEA_IMX_H #define __USB_CHIPIDEA_IMX_H +#include <usb/phy.h> + /* * POTSC flags */ @@ -42,6 +44,7 @@ enum imx_usb_mode { struct imxusb_platformdata { unsigned long flags; + enum usb_phy_interface phymode; enum imx_usb_mode mode; }; |