[RFC 11/22] dm: add a hidden link to efi object

AKASHI Takahiro
2021-10-01T05:07:08Z

This member field in udevice will be used to dereference from udevice
to efi_object (or efi_handle).

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
---
include/dm/device.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/include/dm/device.h b/include/dm/device.h
index 0a9718a5b81a..33b09a836f06 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -190,6 +190,10 @@ struct udevice {
#if CONFIG_IS_ENABLED(DM_DMA)
ulong dma_offset;
#endif
+#if CONFIG_IS_ENABLED(EFI_LOADER)
+ /* link to efi_object */
+ void *efi_obj;
+#endif
};

/**
--
2.33.0