Skip to contentSkip to conversation

MIPS: Add BCM947XX to Kconfig

PATCH In review Aurelien Jarno 4 participants 9 messages Aug 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 MIPS: Add BCM947XX to Kconfig

The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to Kconfig.

Cc Michael Buesch <[email protected]>
Cc Waldemar Brodkorb <[email protected]>
Cc Felix Fietkau <[email protected]>
Cc Florian Schirmer <[email protected]>
arch/mips/Kconfig +16 -0
@@ -38,6 +38,22 @@
 	  Lemote Fulong mini-PC board based on the Chinese Loongson-2E CPU and
 	  an FPGA northbridge
 
+config BCM947XX
+	bool "Support for BCM947xx based boards"
+	select DMA_NONCOHERENT
+	select HW_HAS_PCI
+	select IRQ_CPU
+	select SYS_HAS_CPU_MIPS32_R1
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select SSB
+	select SSB_SERIAL
+	select SSB_DRIVER_PCICORE
+	select SSB_PCICORE_HOSTMODE
+	select GENERIC_GPIO
+	help
+	 Support for BCM947xx based boards
+
 config MACH_ALCHEMY
 	bool "Alchemy processor based machines"
 
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#1 lore raw
Quoted 12 lines · Aurelien Jarno

The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to Kconfig.

Cc Michael Buesch <[email protected]>
Cc Waldemar Brodkorb <[email protected]>
Cc Felix Fietkau <[email protected]>
Cc Florian Schirmer <[email protected]>

arch/mips/Kconfig line 44

Quoted 7 lines
arch/mips/Kconfig +4 -0
@@ -38,6 +38,22 @@
 	  Lemote Fulong mini-PC board based on the Chinese Loongson-2E CPU and
 	  an FPGA northbridge
 
+config BCM947XX
+	bool "Support for BCM947xx based boards"
+	select DMA_NONCOHERENT
+	select HW_HAS_PCI

Not sure what this does.
My 47xx machines do _not_ have a PCI bus.

arch/mips/Kconfig line 52

Quoted 8 lines
arch/mips/Kconfig +8 -0
+	select IRQ_CPU
+	select SYS_HAS_CPU_MIPS32_R1
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select SSB
+	select SSB_SERIAL
+	select SSB_DRIVER_PCICORE
+	select SSB_PCICORE_HOSTMODE

Shouldn't we leave the PCICORE an option instead of force selecting it here?
My WRT54G doesn't have a (usable) PCI core. So it would work without the driver for it.
Especially on the small WAP54G disabling PCIcore support could be useful to reduce the kernel size.

Quoted 7 lines
arch/mips/Kconfig +4 -0
+	select GENERIC_GPIO
+	help
+	 Support for BCM947xx based boards
+
 config MACH_ALCHEMY
 	bool "Alchemy processor based machines"
 
#2 lore raw
Quoted 6 lines · Michael Buesch

Shouldn't we leave the PCICORE an option instead of force selecting it here?
My WRT54G doesn't have a (usable) PCI core. So it would work without the driver for it.
Especially on the small WAP54G disabling PCIcore support could be useful to reduce the kernel size.

Yeah, leave it as an option, but I think a 'default y if BCM947XX' on the PCICORE option would be reasonable, since many 47xx devices do have pci.

- Felix

#3 lore raw
Quoted 10 lines · Felix Fietkau
Quoted 6 lines · Michael Buesch

Shouldn't we leave the PCICORE an option instead of force selecting it here?
My WRT54G doesn't have a (usable) PCI core. So it would work without the driver for it.
Especially on the small WAP54G disabling PCIcore support could be useful to reduce the kernel size.

Yeah, leave it as an option, but I think a 'default y if BCM947XX' on the PCICORE option would be reasonable, since many 47xx devices do have pci.

Yeah, probably a good idea.

#4 lore raw
Quoted 9 lines · Michael Buesch
Quoted 8 lines · Felix Fietkau
Quoted 6 lines · Michael Buesch

Shouldn't we leave the PCICORE an option instead of force selecting it here?
My WRT54G doesn't have a (usable) PCI core. So it would work without the driver for it.
Especially on the small WAP54G disabling PCIcore support could be useful to reduce the kernel size.

Quoted 5 lines
Quoted 2 lines

Yeah, leave it as an option, but I think a 'default y if BCM947XX' on the PCICORE option would be reasonable, since many 47xx devices do have pci.

Yeah, probably a good idea.

I will send a new patch to fix that.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#5 lore raw

PATCH 3/4 MIPS: Add BCM947XX to Kconfig (v2)

In reply to Michael Buesch

The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to Kconfig and modify the SSB Kconfig to select SSB_PCICORE_HOSTMODE by default with BCM947XX CPUs.

Cc Michael Buesch <[email protected]>
Cc Waldemar Brodkorb <[email protected]>
Cc Felix Fietkau <[email protected]>
Cc Florian Schirmer <[email protected]>
arch/mips/Kconfig +14 -0
@@ -67,6 +67,20 @@
 	  note that a kernel built with this option selected will not be
 	  able to run on normal units.
 
+config BCM947XX
+	bool "BCM947xx based boards"
+	select DMA_NONCOHERENT
+	select HW_HAS_PCI
+	select IRQ_CPU
+	select SYS_HAS_CPU_MIPS32_R1
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select SSB
+	select SSB_DRIVER_MIPS
+	select GENERIC_GPIO
+	help
+	 Support for BCM947xx based boards
+
 config MIPS_COBALT
 	bool "Cobalt Server"
 	select DMA_NONCOHERENT
drivers/ssb/Kconfig +1 -0
@@ -67,6 +67,7 @@
 config SSB_PCICORE_HOSTMODE
 	bool "Hostmode support for SSB PCI core"
 	depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS
+	default y if BCM947XX
 	help
 	  PCIcore hostmode operation (external PCI bus).
 
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
Acked-by on v1 3/4
#6 lore raw

Re: [PATCH -mm 3/4] MIPS: Add BCM947XX to Kconfig (v2)

Quoted 9 lines · On Monday 06 August 2007 22:16:50 Aurelien Jarno wrote:

The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to Kconfig and modify the SSB Kconfig to select SSB_PCICORE_HOSTMODE by default with BCM947XX CPUs.

Cc Michael Buesch <[email protected]>
Cc Waldemar Brodkorb <[email protected]>
Cc Felix Fietkau <[email protected]>
Cc Florian Schirmer <[email protected]>
Quoted 35 lines
arch/mips/Kconfig +14 -0
@@ -67,6 +67,20 @@
 	  note that a kernel built with this option selected will not be
 	  able to run on normal units.
 
+config BCM947XX
+	bool "BCM947xx based boards"
+	select DMA_NONCOHERENT
+	select HW_HAS_PCI
+	select IRQ_CPU
+	select SYS_HAS_CPU_MIPS32_R1
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select SSB
+	select SSB_DRIVER_MIPS
+	select GENERIC_GPIO
+	help
+	 Support for BCM947xx based boards
+
 config MIPS_COBALT
 	bool "Cobalt Server"
 	select DMA_NONCOHERENT
drivers/ssb/Kconfig +1 -0
@@ -67,6 +67,7 @@
 config SSB_PCICORE_HOSTMODE
 	bool "Hostmode support for SSB PCI core"
 	depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS
+	default y if BCM947XX
 	help
 	  PCIcore hostmode operation (external PCI bus).
 
Signature · 1 line
Greetings Michael.
Acked-by on v1 3/4
#7 lore raw

Re: [PATCH -mm 3/4] MIPS: Add BCM947XX to Kconfig (v2)

In reply to Aurelien Jarno

Hi,

Quoted 10 lines · Aurelien Jarno

The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to Kconfig and modify the SSB Kconfig to select SSB_PCICORE_HOSTMODE by default with BCM947XX CPUs.

Cc Michael Buesch <[email protected]>
Cc Waldemar Brodkorb <[email protected]>
Cc Felix Fietkau <[email protected]>
Cc Florian Schirmer <[email protected]>

Looks good!

Best,
Florian

Quoted 35 lines
arch/mips/Kconfig +14 -0
@@ -67,6 +67,20 @@
 	  note that a kernel built with this option selected will not be
 	  able to run on normal units.
 
+config BCM947XX
+	bool "BCM947xx based boards"
+	select DMA_NONCOHERENT
+	select HW_HAS_PCI
+	select IRQ_CPU
+	select SYS_HAS_CPU_MIPS32_R1
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select SSB
+	select SSB_DRIVER_MIPS
+	select GENERIC_GPIO
+	help
+	 Support for BCM947xx based boards
+
 config MIPS_COBALT
 	bool "Cobalt Server"
 	select DMA_NONCOHERENT
drivers/ssb/Kconfig +1 -0
@@ -67,6 +67,7 @@
 config SSB_PCICORE_HOSTMODE
 	bool "Hostmode support for SSB PCI core"
 	depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS
+	default y if BCM947XX
 	help
 	  PCIcore hostmode operation (external PCI bus).
 
#8 lore raw
In reply to Michael Buesch
Quoted 16 lines · Michael Buesch
Quoted 15 lines · Aurelien Jarno

The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to Kconfig.

Cc Michael Buesch <[email protected]>
Cc Waldemar Brodkorb <[email protected]>
Cc Felix Fietkau <[email protected]>
Cc Florian Schirmer <[email protected]>
arch/mips/Kconfig +0 -0
@@ -38,6 +38,22 @@
 	  Lemote Fulong mini-PC board based on the Chinese Loongson-2E CPU and
 	  an FPGA northbridge
 
Quoted 7 lines

arch/mips/Kconfig line 44

Quoted 4 lines
arch/mips/Kconfig +4 -0
+config BCM947XX
+	bool "Support for BCM947xx based boards"
+	select DMA_NONCOHERENT
+	select HW_HAS_PCI

Not sure what this does.
My 47xx machines do _not_ have a PCI bus.

Without HW_HAS_PCI, it is not possible to enable the PCI bus, as it depends on this variable. However having it defined, does not mean the PCI bus has to be enabled.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net