summaryrefslogtreecommitdiffstats
path: root/include/usb
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-02-17 21:26:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-02-21 11:44:03 +0100
commitf2031d006982539f1dd01c24a7fa42dcac9f8f8b (patch)
tree00faca33bd51dbca9528b7222f35914dff9e0407 /include/usb
parentf0d8ec807398806ab803f3b9f20808efd6945e8f (diff)
downloadbarebox-f2031d006982539f1dd01c24a7fa42dcac9f8f8b.tar.gz
barebox-f2031d006982539f1dd01c24a7fa42dcac9f8f8b.tar.xz
usb: misc: add support for new OF onboard hub binding
The new binding allows describing hubs that lacks a control bus (e.g. I2C) in the DT and thus replaces the ugly hack of specifying USB hub resets as gpio-hogs. It's already in use for boards we support, like the STM32MP13/5 Discovery kits and will be useful for the i.MX8MP Debix board, so port over the driver from Linux. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230217202620.2882141-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/usb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h
index 9b36122436..717bcf935a 100644
--- a/include/usb/usb.h
+++ b/include/usb/usb.h
@@ -484,4 +484,12 @@ extern struct list_head usb_device_list;
bool usb_hub_is_root_hub(struct usb_device *hdev);
+#ifdef CONFIG_USB_ONBOARD_HUB
+void of_usb_host_probe_hubs(struct usb_host *host);
+#else
+static inline void of_usb_host_probe_hubs(struct usb_host *host)
+{
+}
+#endif
+
#endif /*_USB_H_ */