Commit 1753d50c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Masahiro Yamada

rapidio: consolidate RAPIDIO config entry in drivers/rapidio

There is no good reason to duplicate the RAPIDIO menu in various
architectures.  Instead provide a selectable HAVE_RAPIDIO symbol
that indicates native availability of RAPIDIO support and the handle
the rest in drivers/pci.  This also means we now provide support
for PCI(e) to Rapidio bridges for every architecture instead of a
limited subset.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarPaul Burton <paul.burton@mips.com>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 8fb71ef9
...@@ -892,7 +892,7 @@ config CAVIUM_OCTEON_SOC ...@@ -892,7 +892,7 @@ config CAVIUM_OCTEON_SOC
bool "Cavium Networks Octeon SoC based boards" bool "Cavium Networks Octeon SoC based boards"
select CEVT_R4K select CEVT_R4K
select ARCH_HAS_PHYS_TO_DMA select ARCH_HAS_PHYS_TO_DMA
select HAS_RAPIDIO select HAVE_RAPIDIO
select PHYS_ADDR_T_64BIT select PHYS_ADDR_T_64BIT
select SYS_SUPPORTS_64BIT_KERNEL select SYS_SUPPORTS_64BIT_KERNEL
select SYS_SUPPORTS_BIG_ENDIAN select SYS_SUPPORTS_BIG_ENDIAN
...@@ -3107,19 +3107,6 @@ config ZONE_DMA ...@@ -3107,19 +3107,6 @@ config ZONE_DMA
config ZONE_DMA32 config ZONE_DMA32
bool bool
config HAS_RAPIDIO
bool
default n
config RAPIDIO
tristate "RapidIO support"
depends on HAS_RAPIDIO || PCI
help
If you say Y here, the kernel will include drivers and
infrastructure code to support RapidIO interconnect devices.
source "drivers/rapidio/Kconfig"
endmenu endmenu
config TRAD_SIGNALS config TRAD_SIGNALS
......
...@@ -939,26 +939,14 @@ config PCI_8260 ...@@ -939,26 +939,14 @@ config PCI_8260
select PPC_INDIRECT_PCI select PPC_INDIRECT_PCI
default y default y
config HAS_RAPIDIO
bool
config RAPIDIO
tristate "RapidIO support"
depends on HAS_RAPIDIO || PCI
help
If you say Y here, the kernel will include drivers and
infrastructure code to support RapidIO interconnect devices.
config FSL_RIO config FSL_RIO
bool "Freescale Embedded SRIO Controller support" bool "Freescale Embedded SRIO Controller support"
depends on RAPIDIO = y && HAS_RAPIDIO depends on RAPIDIO = y && HAVE_RAPIDIO
default "n" default "n"
---help--- ---help---
Include support for RapidIO controller on Freescale embedded Include support for RapidIO controller on Freescale embedded
processors (MPC8548, MPC8641, etc). processors (MPC8548, MPC8641, etc).
source "drivers/rapidio/Kconfig"
endmenu endmenu
config NONSTATIC_KERNEL config NONSTATIC_KERNEL
......
...@@ -66,7 +66,7 @@ config MPC85xx_CDS ...@@ -66,7 +66,7 @@ config MPC85xx_CDS
bool "Freescale MPC85xx CDS" bool "Freescale MPC85xx CDS"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PPC_I8259 select PPC_I8259
select HAS_RAPIDIO select HAVE_RAPIDIO
help help
This option enables support for the MPC85xx CDS board This option enables support for the MPC85xx CDS board
...@@ -74,7 +74,7 @@ config MPC85xx_MDS ...@@ -74,7 +74,7 @@ config MPC85xx_MDS
bool "Freescale MPC85xx MDS" bool "Freescale MPC85xx MDS"
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select PHYLIB if NETDEVICES select PHYLIB if NETDEVICES
select HAS_RAPIDIO select HAVE_RAPIDIO
select SWIOTLB select SWIOTLB
help help
This option enables support for the MPC85xx MDS board This option enables support for the MPC85xx MDS board
...@@ -219,7 +219,7 @@ config PPA8548 ...@@ -219,7 +219,7 @@ config PPA8548
help help
This option enables support for the Prodrive PPA8548 board. This option enables support for the Prodrive PPA8548 board.
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select HAS_RAPIDIO select HAVE_RAPIDIO
config GE_IMP3A config GE_IMP3A
bool "GE Intelligent Platforms IMP3A" bool "GE Intelligent Platforms IMP3A"
...@@ -277,7 +277,7 @@ config CORENET_GENERIC ...@@ -277,7 +277,7 @@ config CORENET_GENERIC
select SWIOTLB select SWIOTLB
select GPIOLIB select GPIOLIB
select GPIO_MPC8XXX select GPIO_MPC8XXX
select HAS_RAPIDIO select HAVE_RAPIDIO
select PPC_EPAPR_HV_PIC select PPC_EPAPR_HV_PIC
help help
This option enables support for the FSL CoreNet based boards. This option enables support for the FSL CoreNet based boards.
......
...@@ -15,7 +15,7 @@ config MPC8641_HPCN ...@@ -15,7 +15,7 @@ config MPC8641_HPCN
select PPC_I8259 select PPC_I8259
select DEFAULT_UIMAGE select DEFAULT_UIMAGE
select FSL_ULI1575 if PCI select FSL_ULI1575 if PCI
select HAS_RAPIDIO select HAVE_RAPIDIO
select SWIOTLB select SWIOTLB
help help
This option enables support for the MPC8641 HPCN board. This option enables support for the MPC8641 HPCN board.
...@@ -57,7 +57,7 @@ config GEF_SBC610 ...@@ -57,7 +57,7 @@ config GEF_SBC610
select MMIO_NVRAM select MMIO_NVRAM
select GPIOLIB select GPIOLIB
select GE_FPGA select GE_FPGA
select HAS_RAPIDIO select HAVE_RAPIDIO
help help
This option enables support for the GE SBC610. This option enables support for the GE SBC610.
......
...@@ -2811,15 +2811,6 @@ config AMD_NB ...@@ -2811,15 +2811,6 @@ config AMD_NB
def_bool y def_bool y
depends on CPU_SUP_AMD && PCI depends on CPU_SUP_AMD && PCI
config RAPIDIO
tristate "RapidIO support"
depends on PCI
help
If enabled this option will include drivers and the core
infrastructure code to support RapidIO interconnect devices.
source "drivers/rapidio/Kconfig"
config X86_SYSFB config X86_SYSFB
bool "Mark VGA/VBE/EFI FB as generic system framebuffer" bool "Mark VGA/VBE/EFI FB as generic system framebuffer"
help help
......
...@@ -6,6 +6,7 @@ menu "Device Drivers" ...@@ -6,6 +6,7 @@ menu "Device Drivers"
source "drivers/amba/Kconfig" source "drivers/amba/Kconfig"
source "drivers/pci/Kconfig" source "drivers/pci/Kconfig"
source "drivers/pcmcia/Kconfig" source "drivers/pcmcia/Kconfig"
source "drivers/rapidio/Kconfig"
source "drivers/base/Kconfig" source "drivers/base/Kconfig"
......
# #
# RapidIO configuration # RapidIO configuration
# #
config HAVE_RAPIDIO
bool
menuconfig RAPIDIO
tristate "RapidIO support"
depends on HAVE_RAPIDIO || PCI
help
If you say Y here, the kernel will include drivers and
infrastructure code to support RapidIO interconnect devices.
source "drivers/rapidio/devices/Kconfig" source "drivers/rapidio/devices/Kconfig"
config RAPIDIO_DISC_TIMEOUT config RAPIDIO_DISC_TIMEOUT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment