提交 f86bd769 编写于 作者: T Thomas RIENOESSL 提交者: Bin Meng

coreboot: only init usb if necessary

Up until now the call to initialize the USB subsystem was hardcoded
for U-Boot running as a coreboot payload. This was used to enable
the use of a USB keyboard in the U-Boot shell. However not all boards
might need this functionality. As initializing the USB subsystem can
take a considerable amount of time (several seconds on some boards),
we now initialize the USB subsystem only if U-Boot is configured to
use USB keyboards.
Signed-off-by: NThomas RIENOESSL <thomas.rienoessl@bachmann.info>
Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
Reviewed-by: NChristian Gmeiner <christian.gmeiner@gmail.com>
上级 2677a15e
......@@ -77,7 +77,8 @@ int last_stage_init(void)
timestamp_add_to_bootstage();
/* start usb so that usb keyboard can be used as input device */
usb_init();
if (CONFIG_IS_ENABLED(USB_KEYBOARD))
usb_init();
board_final_cleanup();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册