From 5d850605fb84e14b9aebc82ac57bac18a2662310 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 5 May 2020 12:39:49 +0200 Subject: 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 --- include/usb/chipidea-imx.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/usb') 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 */ -- cgit v1.2.3