Patchwork Kconfig dependencies for USBDEBUG

login
register
about
Submitter Uwe Hermann
Date 2010-09-26 00:05:50
Message ID <20100926000550.GM3256@greenwood>
Download mbox | patch
Permalink /patch/1979/
State Accepted
Headers show

Comments

Uwe Hermann - 2010-09-26 00:05:50
See patch.


Uwe.
Peter Stuge - 2010-09-26 04:20:52
Uwe Hermann wrote:
> Only show the USB Debug Port kconfig option to the user if a mainboard
> is selected that uses a chipset which actually has that functionality _and_
> we have code to initialize the Debug Port in coreboot (for that chipset).
> 
> Also, remove duplicate list of PCI IDs and just link to the wiki page at:
> 
>  http://www.coreboot.org/EHCI_Debug_Port
> 
> The list is now less useful in the kconfig help as this option will only
> appear for those boards where it's actually supported.
> 
> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>

Maybe mention the Net20DC in the help text too.

Acked-by: Peter Stuge <peter@stuge.se>
Uwe Hermann - 2010-09-26 07:37:58
On Sun, Sep 26, 2010 at 06:20:52AM +0200, Peter Stuge wrote:
> Uwe Hermann wrote:
> > Only show the USB Debug Port kconfig option to the user if a mainboard
> > is selected that uses a chipset which actually has that functionality _and_
> > we have code to initialize the Debug Port in coreboot (for that chipset).
> > 
> > Also, remove duplicate list of PCI IDs and just link to the wiki page at:
> > 
> >  http://www.coreboot.org/EHCI_Debug_Port
> > 
> > The list is now less useful in the kconfig help as this option will only
> > appear for those boards where it's actually supported.
> > 
> > Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
> 
> Maybe mention the Net20DC in the help text too.
> 
> Acked-by: Peter Stuge <peter@stuge.se>

Thanks, r5848. I mentioned all Debug devices I know about briefly in
the help text. We should add more info about the non-NET20DC ones to the
wiki though.


Uwe.
Stefan Reinauer - 2010-09-26 07:42:06
On 9/26/10 2:05 AM, Uwe Hermann wrote:
> Only show the USB Debug Port kconfig option to the user if a mainboard
> is selected that uses a chipset which actually has that functionality _and_
> we have code to initialize the Debug Port in coreboot (for that chipset).
So using a plugin pci card with that functionality is not possible?


Stefan
Peter Stuge - 2010-09-26 15:08:06
Stefan Reinauer wrote:
> > Only show the USB Debug Port kconfig option to the user if a
> > mainboard is selected that uses a chipset which actually has that
> > functionality _and_ we have code to initialize the Debug Port
> 
> So using a plugin pci card with that functionality is not possible?

Good point, no, that will not work, but it never did, because the
coreboot build would only have the code support for the onboard
southbridge.

If we want to support Debug Port on plugin cards then we need to
decouple the code from the southbridges, so that all or none Debug
Port support can be selected in Kconfig. Maybe it goes into drivers/
instead then..


//Peter

Patch

Only show the USB Debug Port kconfig option to the user if a mainboard
is selected that uses a chipset which actually has that functionality _and_
we have code to initialize the Debug Port in coreboot (for that chipset).

Also, remove duplicate list of PCI IDs and just link to the wiki page at:

 http://www.coreboot.org/EHCI_Debug_Port

The list is now less useful in the kconfig help as this option will only
appear for those boards where it's actually supported.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>

Index: src/southbridge/amd/sb600/Kconfig
===================================================================
--- src/southbridge/amd/sb600/Kconfig	(Revision 5847)
+++ src/southbridge/amd/sb600/Kconfig	(Arbeitskopie)
@@ -20,3 +20,5 @@ 
 config SOUTHBRIDGE_AMD_SB600
 	bool
 	select IOAPIC
+	select HAVE_USBDEBUG
+
Index: src/southbridge/amd/sb700/Kconfig
===================================================================
--- src/southbridge/amd/sb700/Kconfig	(Revision 5847)
+++ src/southbridge/amd/sb700/Kconfig	(Arbeitskopie)
@@ -20,6 +20,7 @@ 
 config SOUTHBRIDGE_AMD_SB700
 	bool
 	select IOAPIC
+	select HAVE_USBDEBUG
 
 config SOUTHBRIDGE_AMD_SB700_SKIP_ISA_DMA_INIT
 	bool
Index: src/southbridge/nvidia/mcp55/Kconfig
===================================================================
--- src/southbridge/nvidia/mcp55/Kconfig	(Revision 5847)
+++ src/southbridge/nvidia/mcp55/Kconfig	(Arbeitskopie)
@@ -1,6 +1,7 @@ 
 config SOUTHBRIDGE_NVIDIA_MCP55
 	bool
 	select IOAPIC
+	select HAVE_USBDEBUG
 
 config ID_SECTION_OFFSET
 	hex
Index: src/southbridge/intel/i82801gx/Kconfig
===================================================================
--- src/southbridge/intel/i82801gx/Kconfig	(Revision 5847)
+++ src/southbridge/intel/i82801gx/Kconfig	(Arbeitskopie)
@@ -21,5 +21,6 @@ 
 	bool
 	select IOAPIC
 	select HAVE_HARD_RESET
+	select HAVE_USBDEBUG
 	select USE_WATCHDOG_ON_BOOT
 
Index: src/southbridge/sis/sis966/Kconfig
===================================================================
--- src/southbridge/sis/sis966/Kconfig	(Revision 5847)
+++ src/southbridge/sis/sis966/Kconfig	(Arbeitskopie)
@@ -1,6 +1,7 @@ 
 config SOUTHBRIDGE_SIS_SIS966
 	bool
 	select IOAPIC
+	select HAVE_USBDEBUG
 
 config ID_SECTION_OFFSET
 	hex
Index: src/console/Kconfig
===================================================================
--- src/console/Kconfig	(Revision 5847)
+++ src/console/Kconfig	(Arbeitskopie)
@@ -84,10 +84,14 @@ 
 	default 3
 	depends on CONSOLE_SERIAL8250
 
-# TODO: FIX DEPENDENCY HERE
+# Use "select HAVE_USBDEBUG" on southbridges which have Debug Port code.
+config HAVE_USBDEBUG
+	def_bool n
+
 config USBDEBUG
 	bool "USB 2.0 EHCI debug dongle support"
 	default n
+	depends on HAVE_USBDEBUG
 	help
 	  This option allows you to use a so-called USB EHCI Debug device
 	  to retrieve the coreboot debug messages (instead, or in addition
@@ -96,26 +100,12 @@ 
 	  This feature is NOT supported on all chipsets in coreboot!
 
 	  It also requires a USB2 controller which supports the EHCI
-	  Debug Port capability. Controllers which are known to work:
+	  Debug Port capability.
 
-	    * 10b9:5239 ALi Corporation USB 2.0 (USB PCI card)
-	    * 8086:24cd Intel ICH4/ICH4-M
-	    * 8086:24dd Intel ICH5
-	    * 8086:265c Intel ICH6
-	    * 8086:268c Intel 631xESB/632xESB/3100
-	    * 8086:27cc Intel ICH7
-	    * 8086:2836 Intel ICH8
-	    * 8086:283a Intel ICH8
-	    * 8086:293a Intel ICH9
-	    * 10de:0088 NVIDIA MCP2A
-	    * 10de:005b NVIDIA CK804
-	    * 10de:026e NVIDIA MCP51
-	    * 10de:036d NVIDIA MCP55
-	    * 10de:03f2 NVIDIA MCP61
-	    * 1002:4386 ATI/AMD SB600
-	    * 1106:3104 VIA VX800
+	  See http://www.coreboot.org/EHCI_Debug_Port for an up-to-date list
+	  of supported controllers.
 
-	  See http://www.coreboot.org/EHCI_Debug_Port for an up-to-date list.
+	  If unsure, say N.
 
 config CONSOLE_VGA
 	bool "Use VGA console once initialized"