haswell: reinitialize EHCI debug hardware after raminit
Tested on Lenovo ThinkPad T440p. Change-Id: I54b0c9dbb64819f0f502783b632470d27ed0b2b1 Signed-off-by: Iru Cai <mytbk920423@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34358 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
b85ddc5d44
commit
336420348e
|
@ -14,6 +14,7 @@
|
|||
*/
|
||||
|
||||
#include <console/console.h>
|
||||
#include <console/usb.h>
|
||||
#include <string.h>
|
||||
#include <cbmem.h>
|
||||
#include <arch/cbfs.h>
|
||||
|
@ -155,6 +156,11 @@ void sdram_initialize(struct pei_data *pei_data)
|
|||
asm volatile (
|
||||
"call *%%ecx\n\t"
|
||||
:"=a" (rv) : "c" (entry), "a" (pei_data));
|
||||
|
||||
/* mrc.bin reconfigures USB, so reinit it to have debug */
|
||||
if (CONFIG(USBDEBUG_IN_PRE_RAM))
|
||||
usbdebug_hw_init(true);
|
||||
|
||||
if (rv) {
|
||||
switch (rv) {
|
||||
case -1:
|
||||
|
|
Loading…
Reference in New Issue