aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dm/device.h2
-rw-r--r--include/dm/platdata.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index fc35f4dfd40..c825d472366 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -44,6 +44,8 @@ struct driver_info;
/* Device name is allocated and should be freed on unbind() */
#define DM_FLAG_NAME_ALLOCED (1 << 7)
+#define DM_FLAG_OF_PLATDATA (1 << 8)
+
/**
* struct udevice - An instance of a driver
*
diff --git a/include/dm/platdata.h b/include/dm/platdata.h
index 6f4f00140e5..488b2ab0aea 100644
--- a/include/dm/platdata.h
+++ b/include/dm/platdata.h
@@ -22,10 +22,15 @@
*
* @name: Driver name
* @platdata: Driver-specific platform data
+ * @platdata_size: Size of platform data structure
+ * @flags: Platform data flags (DM_FLAG_...)
*/
struct driver_info {
const char *name;
const void *platdata;
+#if CONFIG_IS_ENABLED(OF_PLATDATA)
+ uint platdata_size;
+#endif
};
/**