From ecbc0c5cb9c2dd403a2464ddc53ec937931d8cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 6 Jun 2013 10:29:49 +0300 Subject: [PATCH] usbdebug: Fix use without EARLY_CONSOLE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If EARLY_CONSOLE is not selected, the PCI function for EHCI host controller must be configured in ramstage instead. Change-Id: I20f7569f79484c744bc413450bfa139052f3580f Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/3383 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- src/console/usbdebug_console.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/console/usbdebug_console.c b/src/console/usbdebug_console.c index 58a62b8e94..dd61953f8e 100644 --- a/src/console/usbdebug_console.c +++ b/src/console/usbdebug_console.c @@ -50,6 +50,9 @@ unsigned get_ehci_debug(void) static void dbgp_init(void) { +#if !CONFIG_EARLY_CONSOLE + enable_usbdebug(CONFIG_USBDEBUG_DEFAULT_PORT); +#endif usbdebug_init(CONFIG_EHCI_BAR, CONFIG_EHCI_DEBUG_OFFSET, &dbg_info); }