]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/dm/platdata.h
dm: usb: Add driver model support for hubs
[karo-tx-uboot.git] / include / dm / platdata.h
index 2bc8b147edfed01f152c1ca5e310ba8248637534..fbc8a6b3adda18424bd485a0ea39df981143f55e 100644 (file)
 #ifndef _DM_PLATDATA_H
 #define _DM_PLATDATA_H
 
+#include <linker_lists.h>
+
 /**
  * struct driver_info - Information required to instantiate a device
  *
- * @name:      Device name
+ * @name:      Driver name
  * @platdata:  Driver-specific platform data
  */
 struct driver_info {
@@ -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