]> git.sur5r.net Git - u-boot/blobdiff - include/dm/platdata.h
usb: dwc3: Add DWC3 controller driver support
[u-boot] / include / dm / platdata.h
index 7716f1940ea78e42c8f9d1ef06339e91991e201c..fbc8a6b3adda18424bd485a0ea39df981143f55e 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef _DM_PLATDATA_H
 #define _DM_PLATDATA_H
 
+#include <linker_lists.h>
+
 /**
  * struct driver_info - Information required to instantiate a device
  *
@@ -25,4 +27,8 @@ struct driver_info {
 #define U_BOOT_DEVICE(__name)                                          \
        ll_entry_declare(struct driver_info, __name, driver_info)
 
+/* Declare a list of devices. The argument is a driver_info[] array */
+#define U_BOOT_DEVICES(__name)                                         \
+       ll_entry_declare_list(struct driver_info, __name, driver_info)
+
 #endif