diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-05 12:39:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-07 09:18:36 +0200 |
commit | 5d850605fb84e14b9aebc82ac57bac18a2662310 (patch) | |
tree | c8fdb029317098413d0fb508153de71df8d2d72d /include/usb | |
parent | e2fbde50b15b19fa93cfece93c8196a0a4656940 (diff) | |
download | barebox-5d850605fb84e14b9aebc82ac57bac18a2662310.tar.gz barebox-5d850605fb84e14b9aebc82ac57bac18a2662310.tar.xz |
usb: i.MX: Add i.MX28 support
The existing i.MX chipidea support can be used for i.MX28 as well. The
main difference is that the i.MX28 doesn't have a usbmisc unit, so the
bulk of this patch makes this unit optional in the driver.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r-- | include/usb/chipidea-imx.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/usb/chipidea-imx.h b/include/usb/chipidea-imx.h index 5ea5fcc26d..dfd84a9650 100644 --- a/include/usb/chipidea-imx.h +++ b/include/usb/chipidea-imx.h @@ -43,7 +43,20 @@ struct imxusb_platformdata { enum usb_dr_mode mode; }; +#ifdef CONFIG_USB_IMX_CHIPIDEA_USBMISC int imx_usbmisc_port_init(struct device_d *dev, int port, unsigned flags); int imx_usbmisc_port_post_init(struct device_d *dev, int port, unsigned flags); +#else +static inline int imx_usbmisc_port_init(struct device_d *dev, int port, + unsigned flags) +{ + return 0; +} +static inline int imx_usbmisc_port_post_init(struct device_d *dev, int port, + unsigned flags) +{ + return 0; +} +#endif #endif /* __USB_CHIPIDEA_IMX_H */ |