summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-11-15 14:05:36 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-11-22 21:46:13 -0500
commit1753d50c9fdc39338d90ed246fc99f9a0efc35c3 (patch)
tree76e6917a90d16411e9529c790d570e9c0a1f8d59
parent8fb71ef9b91d6c89b22ea9430c231e988d88f688 (diff)
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: Christoph Hellwig <hch@lst.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Paul Burton <paul.burton@mips.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--arch/mips/Kconfig15
-rw-r--r--arch/powerpc/Kconfig14
-rw-r--r--arch/powerpc/platforms/85xx/Kconfig8
-rw-r--r--arch/powerpc/platforms/86xx/Kconfig4
-rw-r--r--arch/x86/Kconfig9
-rw-r--r--drivers/Kconfig1
-rw-r--r--drivers/rapidio/Kconfig11
7 files changed, 20 insertions, 42 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 3912250ff813..67fbd4952ff4 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -892,7 +892,7 @@ config CAVIUM_OCTEON_SOC
892 bool "Cavium Networks Octeon SoC based boards" 892 bool "Cavium Networks Octeon SoC based boards"
893 select CEVT_R4K 893 select CEVT_R4K
894 select ARCH_HAS_PHYS_TO_DMA 894 select ARCH_HAS_PHYS_TO_DMA
895 select HAS_RAPIDIO 895 select HAVE_RAPIDIO
896 select PHYS_ADDR_T_64BIT 896 select PHYS_ADDR_T_64BIT
897 select SYS_SUPPORTS_64BIT_KERNEL 897 select SYS_SUPPORTS_64BIT_KERNEL
898 select SYS_SUPPORTS_BIG_ENDIAN 898 select SYS_SUPPORTS_BIG_ENDIAN
@@ -3107,19 +3107,6 @@ config ZONE_DMA
3107config ZONE_DMA32 3107config ZONE_DMA32
3108 bool 3108 bool
3109 3109
3110config HAS_RAPIDIO
3111 bool
3112 default n
3113
3114config RAPIDIO
3115 tristate "RapidIO support"
3116 depends on HAS_RAPIDIO || PCI
3117 help
3118 If you say Y here, the kernel will include drivers and
3119 infrastructure code to support RapidIO interconnect devices.
3120
3121source "drivers/rapidio/Kconfig"
3122
3123endmenu 3110endmenu
3124 3111
3125config TRAD_SIGNALS 3112config TRAD_SIGNALS
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index cc8435d87949..f2f70cc2bd44 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -939,26 +939,14 @@ config PCI_8260
939 select PPC_INDIRECT_PCI 939 select PPC_INDIRECT_PCI
940 default y 940 default y
941 941
942config HAS_RAPIDIO
943 bool
944
945config RAPIDIO
946 tristate "RapidIO support"
947 depends on HAS_RAPIDIO || PCI
948 help
949 If you say Y here, the kernel will include drivers and
950 infrastructure code to support RapidIO interconnect devices.
951
952config FSL_RIO 942config FSL_RIO
953 bool "Freescale Embedded SRIO Controller support" 943 bool "Freescale Embedded SRIO Controller support"
954 depends on RAPIDIO = y && HAS_RAPIDIO 944 depends on RAPIDIO = y && HAVE_RAPIDIO
955 default "n" 945 default "n"
956 ---help--- 946 ---help---
957 Include support for RapidIO controller on Freescale embedded 947 Include support for RapidIO controller on Freescale embedded
958 processors (MPC8548, MPC8641, etc). 948 processors (MPC8548, MPC8641, etc).
959 949
960source "drivers/rapidio/Kconfig"
961
962endmenu 950endmenu
963 951
964config NONSTATIC_KERNEL 952config NONSTATIC_KERNEL
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index ba0ea84ce578..d1af0ee2f8c8 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -66,7 +66,7 @@ config MPC85xx_CDS
66 bool "Freescale MPC85xx CDS" 66 bool "Freescale MPC85xx CDS"
67 select DEFAULT_UIMAGE 67 select DEFAULT_UIMAGE
68 select PPC_I8259 68 select PPC_I8259
69 select HAS_RAPIDIO 69 select HAVE_RAPIDIO
70 help 70 help
71 This option enables support for the MPC85xx CDS board 71 This option enables support for the MPC85xx CDS board
72 72
@@ -74,7 +74,7 @@ config MPC85xx_MDS
74 bool "Freescale MPC85xx MDS" 74 bool "Freescale MPC85xx MDS"
75 select DEFAULT_UIMAGE 75 select DEFAULT_UIMAGE
76 select PHYLIB if NETDEVICES 76 select PHYLIB if NETDEVICES
77 select HAS_RAPIDIO 77 select HAVE_RAPIDIO
78 select SWIOTLB 78 select SWIOTLB
79 help 79 help
80 This option enables support for the MPC85xx MDS board 80 This option enables support for the MPC85xx MDS board
@@ -219,7 +219,7 @@ config PPA8548
219 help 219 help
220 This option enables support for the Prodrive PPA8548 board. 220 This option enables support for the Prodrive PPA8548 board.
221 select DEFAULT_UIMAGE 221 select DEFAULT_UIMAGE
222 select HAS_RAPIDIO 222 select HAVE_RAPIDIO
223 223
224config GE_IMP3A 224config GE_IMP3A
225 bool "GE Intelligent Platforms IMP3A" 225 bool "GE Intelligent Platforms IMP3A"
@@ -277,7 +277,7 @@ config CORENET_GENERIC
277 select SWIOTLB 277 select SWIOTLB
278 select GPIOLIB 278 select GPIOLIB
279 select GPIO_MPC8XXX 279 select GPIO_MPC8XXX
280 select HAS_RAPIDIO 280 select HAVE_RAPIDIO
281 select PPC_EPAPR_HV_PIC 281 select PPC_EPAPR_HV_PIC
282 help 282 help
283 This option enables support for the FSL CoreNet based boards. 283 This option enables support for the FSL CoreNet based boards.
diff --git a/arch/powerpc/platforms/86xx/Kconfig b/arch/powerpc/platforms/86xx/Kconfig
index a4fa31a40502..413837a63242 100644
--- a/arch/powerpc/platforms/86xx/Kconfig
+++ b/arch/powerpc/platforms/86xx/Kconfig
@@ -15,7 +15,7 @@ config MPC8641_HPCN
15 select PPC_I8259 15 select PPC_I8259
16 select DEFAULT_UIMAGE 16 select DEFAULT_UIMAGE
17 select FSL_ULI1575 if PCI 17 select FSL_ULI1575 if PCI
18 select HAS_RAPIDIO 18 select HAVE_RAPIDIO
19 select SWIOTLB 19 select SWIOTLB
20 help 20 help
21 This option enables support for the MPC8641 HPCN board. 21 This option enables support for the MPC8641 HPCN board.
@@ -57,7 +57,7 @@ config GEF_SBC610
57 select MMIO_NVRAM 57 select MMIO_NVRAM
58 select GPIOLIB 58 select GPIOLIB
59 select GE_FPGA 59 select GE_FPGA
60 select HAS_RAPIDIO 60 select HAVE_RAPIDIO
61 help 61 help
62 This option enables support for the GE SBC610. 62 This option enables support for the GE SBC610.
63 63
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 659d59d7f033..4c8052a7c3f9 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -2811,15 +2811,6 @@ config AMD_NB
2811 def_bool y 2811 def_bool y
2812 depends on CPU_SUP_AMD && PCI 2812 depends on CPU_SUP_AMD && PCI
2813 2813
2814config RAPIDIO
2815 tristate "RapidIO support"
2816 depends on PCI
2817 help
2818 If enabled this option will include drivers and the core
2819 infrastructure code to support RapidIO interconnect devices.
2820
2821source "drivers/rapidio/Kconfig"
2822
2823config X86_SYSFB 2814config X86_SYSFB
2824 bool "Mark VGA/VBE/EFI FB as generic system framebuffer" 2815 bool "Mark VGA/VBE/EFI FB as generic system framebuffer"
2825 help 2816 help
diff --git a/drivers/Kconfig b/drivers/Kconfig
index 58ee88c36cf5..065d308fcb00 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -6,6 +6,7 @@ menu "Device Drivers"
6source "drivers/amba/Kconfig" 6source "drivers/amba/Kconfig"
7source "drivers/pci/Kconfig" 7source "drivers/pci/Kconfig"
8source "drivers/pcmcia/Kconfig" 8source "drivers/pcmcia/Kconfig"
9source "drivers/rapidio/Kconfig"
9 10
10 11
11source "drivers/base/Kconfig" 12source "drivers/base/Kconfig"
diff --git a/drivers/rapidio/Kconfig b/drivers/rapidio/Kconfig
index d6d2f20c4597..e3d8fe41b50c 100644
--- a/drivers/rapidio/Kconfig
+++ b/drivers/rapidio/Kconfig
@@ -1,6 +1,17 @@
1# 1#
2# RapidIO configuration 2# RapidIO configuration
3# 3#
4
5config HAVE_RAPIDIO
6 bool
7
8menuconfig RAPIDIO
9 tristate "RapidIO support"
10 depends on HAVE_RAPIDIO || PCI
11 help
12 If you say Y here, the kernel will include drivers and
13 infrastructure code to support RapidIO interconnect devices.
14
4source "drivers/rapidio/devices/Kconfig" 15source "drivers/rapidio/devices/Kconfig"
5 16
6config RAPIDIO_DISC_TIMEOUT 17config RAPIDIO_DISC_TIMEOUT