From 637d6dfef2e67bc91cacd1954f465df160fa5207 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Fri, 3 Mar 2017 13:34:04 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- common/efi/efi.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/efi') 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; -- cgit v1.2.3