@@ -11,6 +11,7 @@
#ifndef _DM_DEVICE_H
#define _DM_DEVICE_H
+#include <efi_loader.h>
#include <dm/ofnode.h>
#include <dm/uclass-id.h>
#include <fdtdec.h>
@@ -144,6 +145,9 @@ struct udevice {
uint32_t flags;
int req_seq;
int seq;
+#ifdef EFI_LOADER
+ efi_handle_t handle;
+#endif
#ifdef CONFIG_DEVRES
struct list_head devres_head;
#endif
@@ -139,6 +139,8 @@ struct efi_object {
struct list_head protocols;
/* The object spawner can either use this for data or as identifier */
void *handle;
+ /* Device */
+ struct udevice *dev;
};
/**
@@ -362,6 +362,7 @@ efi_status_t efi_create_handle(efi_handle_t *handle)
(void **)&obj);
if (r != EFI_SUCCESS)
return r;
+ obj->dev = NULL;
efi_add_handle(obj);
*handle = obj->handle;
return r;