coreboot: only init usb if necessary
authorThomas RIENOESSL <[email protected]>
Fri, 30 Nov 2018 04:07:12 +0000 (20:07 -0800)
committerBin Meng <[email protected]>
Mon, 10 Dec 2018 02:14:36 +0000 (10:14 +0800)
commitf86bd769fd0624106ecd2c5d500518e8b83a4e27
treeb644ce2b39251e519377b8012541413e6942bb96
parent2677a15e5839ee8f7073192a666348e2e3e5cdcd
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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
arch/x86/cpu/coreboot/coreboot.c