summaryrefslogtreecommitdiffstats
path: root/common/efi/efi.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2017-03-03 13:34:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-09 07:36:16 +0100
commit637d6dfef2e67bc91cacd1954f465df160fa5207 (patch)
tree21d2af8370797a696ae5b9963f52f391f343ff59 /common/efi/efi.c
parentda11bd9d6028b811732e98bc8cbf3e00b7a1f2b3 (diff)
downloadbarebox-637d6dfef2e67bc91cacd1954f465df160fa5207.tar.gz
barebox-637d6dfef2e67bc91cacd1954f465df160fa5207.tar.xz
efi: clocksoure: add EFI event timer
with this we can be hw generic If the EFI implement timestamp protocol we could use instead of event but even EDK2 Never Ever compile it for any target. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/efi/efi.c')
-rw-r--r--common/efi/efi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/efi/efi.c b/common/efi/efi.c
index 4b589b600f..05c58250f4 100644
--- a/common/efi/efi.c
+++ b/common/efi/efi.c
@@ -353,6 +353,14 @@ efi_status_t efi_main(efi_handle_t image, efi_system_table_t *sys_table)
return EFI_SUCCESS;
}
+static int efi_core_init(void)
+{
+ struct device_d *dev = device_alloc("efi-cs", DEVICE_ID_SINGLE);
+
+ return platform_device_register(dev);
+}
+core_initcall(efi_core_init);
+
static int efi_postcore_init(void)
{
char *uuid;