MIPS: Add BCM947XX to Kconfig
Subsystems (2)
PATCH 3/4 MIPS: Add BCM947XX to Kconfig
The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to Kconfig.
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
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]>Signed-off-by Aurelien Jarno <[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"
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
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.
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
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]>Signed-off-by Aurelien Jarno <[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_PCINot 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
PATCH 3/4 MIPS: Add BCM947XX to Kconfig (v2)
In reply to Michael BueschThe 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.
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
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
Kconfigand modify the SSBKconfigto selectSSB_PCICORE_HOSTMODEby default with BCM947XX CPUs.Cc Michael Buesch <[email protected]>Cc Waldemar Brodkorb <[email protected]>Cc Felix Fietkau <[email protected]>Cc Florian Schirmer <[email protected]>Signed-off-by Aurelien Jarno <[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_NONCOHERENTdrivers/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.
Re: [PATCH -mm 3/4] MIPS: Add BCM947XX to Kconfig (v2)
In reply to Aurelien JarnoHi,
Quoted 10 lines · Aurelien Jarno
The patch below against 2.6.23-rc1-mm2 adds a BCM947XX option to
Kconfigand modify the SSBKconfigto selectSSB_PCICORE_HOSTMODEby default with BCM947XX CPUs.Cc Michael Buesch <[email protected]>Cc Waldemar Brodkorb <[email protected]>Cc Felix Fietkau <[email protected]>Cc Florian Schirmer <[email protected]>Signed-off-by Aurelien Jarno <[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_NONCOHERENTdrivers/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).