usbdebug: Refactor init calls
Expose the function that can unconditionally re-initialise EHCI debug host and gadget. Given the missing header in soc/intel files that prevented building with USBDEBUG_IN_ROMSTAGE=y, it is not actually known if those SOCs work at all for usbdebug. Change-Id: I8ae7e144a89a8f7e5f9d307ba4e73d4f96401a79 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30557 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
committed by
Felix Held
parent
a144e4d6fa
commit
63649d24fd
@@ -238,10 +238,9 @@ void sdram_initialize(struct pei_data *pei_data)
|
||||
die("UEFI PEI System Agent not found.\n");
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_USBDEBUG_IN_ROMSTAGE)
|
||||
/* mrc.bin reconfigures USB, so reinit it to have debug */
|
||||
usbdebug_init();
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_USBDEBUG_IN_ROMSTAGE))
|
||||
usbdebug_hw_init(true);
|
||||
|
||||
/* For reference print the System Agent version
|
||||
* after executing the UEFI PEI stage.
|
||||
|
Reference in New Issue
Block a user