diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-06-17 05:57:53 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-06-24 08:56:04 +0800 |
commit | 1ab2c010879baff93c690be8d98d294e9ccfab94 (patch) | |
tree | 8b3e0f5da133892768ee0d34458e6bef6194b484 /arch/x86/cpu/efi | |
parent | 6d02cf0562ead596b20ce23f102be5c3020c04f9 (diff) | |
download | u-boot-1ab2c010879baff93c690be8d98d294e9ccfab94.tar.gz |
x86: efi-x86_payload: Enable usb keyboard during boot
For boards that don't route serial port pins out, it's quite common
to attach a USB keyboard as the input device, along with a monitor.
However USB is not automatically started in the generic efi payload
codes. This uses a payload specific last_stage_init() to start the
USB bus, so that a USB keyboard can be used on the U-Boot shell.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/efi')
-rw-r--r-- | arch/x86/cpu/efi/payload.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c index 9fd9f57776..e3f0f825f3 100644 --- a/arch/x86/cpu/efi/payload.c +++ b/arch/x86/cpu/efi/payload.c @@ -7,6 +7,7 @@ #include <common.h> #include <efi.h> #include <errno.h> +#include <usb.h> #include <asm/post.h> DECLARE_GLOBAL_DATA_PTR; @@ -160,3 +161,11 @@ int reserve_arch(void) return 0; } + +int last_stage_init(void) +{ + /* start usb so that usb keyboard can be used as input device */ + usb_init(); + + return 0; +} |