mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
x86: coreboot: Drop USB init on startup
This is very annoying as it is quite slow on many machines. Also, U-Boot has an existing 'preboot' mechanism to enable this feature if desired. Drop this code so that it is possible to choose whether to init USB or not. Use the existing USE_PREBOOT mechanism instead. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
028d1f8dc2
commit
9a1447d85e
3 changed files with 8 additions and 4 deletions
|
@ -25,6 +25,7 @@ config SYS_COREBOOT
|
|||
imply FS_CBFS
|
||||
imply CBMEM_CONSOLE
|
||||
imply X86_TSC_READ_BASE
|
||||
imply USE_PREBOOT
|
||||
select BINMAN if X86_64
|
||||
|
||||
endif
|
||||
|
|
|
@ -86,10 +86,6 @@ static int last_stage_init(void)
|
|||
if (IS_ENABLED(CONFIG_SPL_BUILD))
|
||||
return 0;
|
||||
|
||||
/* start usb so that usb keyboard can be used as input device */
|
||||
if (IS_ENABLED(CONFIG_USB_KEYBOARD))
|
||||
usb_init();
|
||||
|
||||
board_final_init();
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -83,6 +83,13 @@ build in `$CBDIR`::
|
|||
-device ide-hd,drive=disk,bus=ahci.0 \
|
||||
|
||||
|
||||
USB keyboard
|
||||
------------
|
||||
|
||||
The `CONFIG_USE_PREBOOT` option is enabled by default, meaning that USB starts
|
||||
up just before the command-line starts. This allows user interaction on
|
||||
non-laptop devices which use a USB keyboard.
|
||||
|
||||
CBFS access
|
||||
-----------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue