usbdebug: Make the EHCI debug console work in the bootblock
commitadc4753a8d8c5dc7462547ab148c2d63eabbe4fa
authorArthur Heymans <arthur@aheymans.xyz>
Fri, 28 Dec 2018 14:48:58 +0000 (28 15:48 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Sun, 6 Jan 2019 14:05:20 +0000 (6 14:05 +0000)
treec93ad6be8d24feaa5a04c03a1d434897189be357
parent085a2268083cfe1d22f696c9070726dcf2dc160f
usbdebug: Make the EHCI debug console work in the bootblock

Currently this needlessly initializes the hardware in the both the
romstage and the bootblock, but it works.

Build option is renamed to USBDEBUG_IN_PRE_RAM to reflect the
use better, related support files can be built to pre-ram stages
regardless of usbdebug being enabled or not.

Tested on Google/peppy (adapted to C_ENVIRONMENT_BOOTBLOCK).

Change-Id: Ib77f2fc7f3d8fa524405601bae15cce9f76ffc6f
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30480
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
19 files changed:
src/drivers/usb/Kconfig
src/drivers/usb/Makefile.inc
src/drivers/usb/ehci_debug.c
src/include/console/usb.h
src/northbridge/intel/sandybridge/raminit_mrc.c
src/soc/amd/stoneyridge/Makefile.inc
src/soc/intel/broadwell/Makefile.inc
src/soc/intel/fsp_baytrail/romstage/romstage.c
src/soc/intel/fsp_broadwell_de/romstage/romstage.c
src/southbridge/amd/agesa/hudson/Makefile.inc
src/southbridge/amd/cimx/sb800/Makefile.inc
src/southbridge/amd/pi/hudson/Makefile.inc
src/southbridge/amd/sb700/Makefile.inc
src/southbridge/amd/sb800/Makefile.inc
src/southbridge/intel/common/Makefile.inc
src/southbridge/intel/fsp_rangeley/Makefile.inc
src/southbridge/intel/fsp_rangeley/romstage.c
src/southbridge/nvidia/ck804/Makefile.inc
src/southbridge/nvidia/mcp55/Makefile.inc