From patchwork Sat Jun 19 21:48:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Added dependency checking for the USB EHCI debug Kconfig option Date: Sat, 19 Jun 2010 21:48:08 -0000 From: Cristi Magherusan X-Patchwork-Id: 1528 Message-Id: <1276984088.6251.9.camel@ufo> To: coreboot@coreboot.org See attached patch. I had to add that ifdef because config.h didn't have defined the CONFIG_USBDEBUG_DIRECT option and compilation failed. If anyone has an idea how I can get it defined there, I'm all ears. Signed-off-by: Cristi Magherusan >From 15a98ca0bc77a3808318ae4f49084fe7490da57d Mon Sep 17 00:00:00 2001 From: Cristi Magherusan Date: Sun, 20 Jun 2010 00:37:00 +0300 Subject: [PATCH] Added dependency checking for the USB EHCI debug Kconfig option Signed-off-by: Cristi Magherusan --- src/arch/i386/boot/coreboot_table.c | 2 ++ src/console/Kconfig | 4 +++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c index bdf3b1b..d446060 100644 --- a/src/arch/i386/boot/coreboot_table.c +++ b/src/arch/i386/boot/coreboot_table.c @@ -146,9 +146,11 @@ static void lb_console(struct lb_header *header) #if CONFIG_CONSOLE_SROM add_console(header, LB_TAG_CONSOLE_SROM); #endif +#ifdef CONFIG_USBDEBUG_DIRECT #if CONFIG_USBDEBUG_DIRECT add_console(header, LB_TAG_CONSOLE_EHCI); #endif +#endif } static void lb_framebuffer(struct lb_header *header) diff --git a/src/console/Kconfig b/src/console/Kconfig index b9d6f69..f8f615c 100644 --- a/src/console/Kconfig +++ b/src/console/Kconfig @@ -85,9 +85,11 @@ config TTYS0_LCS default 3 depends on CONSOLE_SERIAL8250 -# TODO: FIX DEPENDENCY HERE config USBDEBUG_DIRECT bool "USB 2.0 EHCI debug dongle support" + # only systems that are supported by coreboot are listed here + depends on (SOUTHBRIDGE_NVIDIA_MCP55 || SOUTHBRIDGE_SIS_SIS966 || \ + SOUTHBRIDGE_AMD_SB600 || SOUTHBRIDGE_INTEL_I82801GX ) default n help This option allows you to use a so-called USB EHCI Debug device -- 1.7.1