summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-10-14 18:26:44 +0200
committerArthur Heymans <arthur@aheymans.xyz>2019-10-16 08:29:30 +0000
commit62b6a8394a6d09476ea71b99e079dbe954851d4e (patch)
treea4d4a2009a9bb3120bfa57d2d29ddacfb6618f60 /src
parentf350768a82d2d445e35eea7dd99e8d49e9e5260c (diff)
downloadcoreboot-62b6a8394a6d09476ea71b99e079dbe954851d4e.tar.xz
drivers/usb: Enable EHCI debug during verstage
Change-Id: I14843c1944f2c1e0a26870b576bac549c0cac7f9 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36040 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/usb/Makefile.inc1
-rw-r--r--src/include/console/usb.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/usb/Makefile.inc b/src/drivers/usb/Makefile.inc
index c8d319bbdc..fa995c33cc 100644
--- a/src/drivers/usb/Makefile.inc
+++ b/src/drivers/usb/Makefile.inc
@@ -1,4 +1,5 @@
bootblock-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c
+verstage-$(CONFIG_USBDEBUG) += ehci_debug.c console.c
romstage-$(CONFIG_USBDEBUG) += ehci_debug.c pci_ehci.c console.c gadget.c
postcar-$(CONFIG_USBDEBUG) += ehci_debug.c console.c
diff --git a/src/include/console/usb.h b/src/include/console/usb.h
index f4f8bd73ed..33edbf6e5f 100644
--- a/src/include/console/usb.h
+++ b/src/include/console/usb.h
@@ -31,6 +31,7 @@ int usb_can_rx_byte(int idx);
((ENV_BOOTBLOCK && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
(ENV_ROMSTAGE && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
(ENV_POSTCAR && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
+ (ENV_VERSTAGE && CONFIG(USBDEBUG_IN_PRE_RAM)) || \
ENV_RAMSTAGE))
#define USB_PIPE_FOR_CONSOLE 0