]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - include/dm/device.h
Merge tag 'dm-pull-10apr20-take2' of git://git.denx.de/u-boot-dm
[thirdparty/u-boot.git] / include / dm / device.h
index 17e57bf829c51e04eba1a91c4c6414796068cc27..975eec5d0e19ba02c9220706234a3a3ec12db5d4 100644 (file)
@@ -248,6 +248,8 @@ struct udevice_id {
  * pointers defined by the driver, to implement driver functions required by
  * the uclass.
  * @flags: driver flags - see DM_FLAGS_...
+ * @acpi_ops: Advanced Configuration and Power Interface (ACPI) operations,
+ * allowing the device to add things to the ACPI tables passed to Linux
  */
 struct driver {
        char *name;
@@ -267,6 +269,9 @@ struct driver {
        int per_child_platdata_auto_alloc_size;
        const void *ops;        /* driver-specific operations */
        uint32_t flags;
+#if CONFIG_IS_ENABLED(ACPIGEN)
+       struct acpi_ops *acpi_ops;
+#endif
 };
 
 /* Declare a new U-Boot driver */