diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-31 22:56:02 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-06-01 04:53:13 +0200 |
commit | 5ec48e38eefa5fbc2cab0c34b2b48df67c0fa23e (patch) | |
tree | a61bf0860c0ab52f36892c9a3ebc2bc36905e0be /lib/efi_loader/efi_runtime.c | |
parent | 38b9a79c6366a0e4c98b0a6f33f268fc0d3ba4ce (diff) | |
download | u-boot-5ec48e38eefa5fbc2cab0c34b2b48df67c0fa23e.zip u-boot-5ec48e38eefa5fbc2cab0c34b2b48df67c0fa23e.tar.gz u-boot-5ec48e38eefa5fbc2cab0c34b2b48df67c0fa23e.tar.bz2 |
efi_loader: Kconfig entries for GetTime(), SetTime()
The GetTime() and the SetTime() runtime services are not obligatory. So
let's make them customizable.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_runtime.c')
-rw-r--r-- | lib/efi_loader/efi_runtime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 98ab4de..9c50955 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -167,7 +167,7 @@ static efi_status_t EFIAPI efi_get_time_boottime( struct efi_time *time, struct efi_time_cap *capabilities) { -#ifdef CONFIG_DM_RTC +#ifdef CONFIG_EFI_GET_TIME efi_status_t ret = EFI_SUCCESS; struct rtc_time tm; struct udevice *dev; @@ -214,7 +214,7 @@ out: #endif } -#ifdef CONFIG_DM_RTC +#ifdef CONFIG_EFI_SET_TIME /** * efi_validate_time() - checks if timestamp is valid @@ -252,7 +252,7 @@ static int efi_validate_time(struct efi_time *time) */ static efi_status_t EFIAPI efi_set_time_boottime(struct efi_time *time) { -#ifdef CONFIG_DM_RTC +#ifdef CONFIG_EFI_SET_TIME efi_status_t ret = EFI_SUCCESS; struct rtc_time tm; struct udevice *dev; |