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>
This commit is contained in:
committed by
Felix Held
parent
085a226808
commit
adc4753a8d
@@ -239,7 +239,7 @@ void sdram_initialize(struct pei_data *pei_data)
|
||||
}
|
||||
|
||||
/* mrc.bin reconfigures USB, so reinit it to have debug */
|
||||
if (IS_ENABLED(CONFIG_USBDEBUG_IN_ROMSTAGE))
|
||||
if (IS_ENABLED(CONFIG_USBDEBUG_IN_PRE_RAM))
|
||||
usbdebug_hw_init(true);
|
||||
|
||||
/* For reference print the System Agent version
|
||||
|
Reference in New Issue
Block a user