]> git.baikalelectronics.ru Git - uboot.git/commit
coreboot: only init usb if necessary
authorThomas RIENOESSL <thomas.rienoessl@bachmann.info>
Fri, 30 Nov 2018 04:07:12 +0000 (20:07 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 10 Dec 2018 02:14:36 +0000 (10:14 +0800)
commit8e07cfbcbdd9b06ec928b71fd424f4ce73bb1f26
treeb644ce2b39251e519377b8012541413e6942bb96
parent4c7f708b336bd3f689e7ef960738bb2f46ffc522
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: Thomas RIENOESSL <thomas.rienoessl@bachmann.info>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
arch/x86/cpu/coreboot/coreboot.c