[U-Boot] [PATCH 1/5] efi_loader: Allow boards to implement get_time and reset_system

Simon Glass sjg at chromium.org
Thu Aug 18 05:44:51 CEST 2016


Hi Alex,

On 16 August 2016 at 13:08, Alexander Graf <agraf at suse.de> wrote:
> 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 at suse.de>
> ---
>  cmd/bootefi.c                |   4 ++
>  include/efi_loader.h         |  18 ++++++++
>  lib/efi_loader/efi_runtime.c | 101 ++++++++++++++++++++++++++++++++++++++-----
>  3 files changed, 112 insertions(+), 11 deletions(-)

Instead of weak functions, can you use the existing driver model
sysreset uclass?

Regards,
Simon


More information about the U-Boot mailing list