summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-08-16 21:08:45 +0200
committerAlexander Graf <agraf@suse.de>2016-10-18 09:08:08 +0200
commit80a4800ee1526a4a46cd02b3ea2fd37eebb77504 (patch)
tree556c834bd70cb2a1c35d96e31bfa0be9eb8a8350 /cmd
parent511d0b97ef709d13da4922fb694d55ef9a5ef641 (diff)
downloadu-boot-imx-80a4800ee1526a4a46cd02b3ea2fd37eebb77504.zip
u-boot-imx-80a4800ee1526a4a46cd02b3ea2fd37eebb77504.tar.gz
u-boot-imx-80a4800ee1526a4a46cd02b3ea2fd37eebb77504.tar.bz2
efi_loader: Allow boards to implement get_time and reset_system
EFI allows an OS to leverage firmware drivers while the OS is running. In the generic code we so far had to stub those implementations out, because we would need board specific knowledge about MMIO setups for it. However, boards can easily implement those themselves. This patch provides the framework so that a board can implement its own versions of get_time and reset_system which would actually do something useful. While at it we also introduce a simple way for code to reserve MMIO pointers as runtime available. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootefi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 21fe42c..38c3b41 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -206,6 +206,10 @@ static unsigned long do_bootefi_exec(void *efi, void *fdt)
loaded_image_info.device_handle = nethandle;
#endif
+ /* Initialize EFI runtime services */
+ efi_reset_system_init();
+ efi_get_time_init();
+
/* Call our payload! */
debug("%s:%d Jumping to 0x%lx\n", __func__, __LINE__, (long)entry);