diff options
author | Alexandre Bounine <alexandre.bounine@idt.com> | 2011-03-23 19:43:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-23 22:46:42 -0400 |
commit | 388b78adc9899f0299128610f566051d0b1a57f6 (patch) | |
tree | f64e7151235c82ae3652fc5b4ca23c2a017ff464 /arch | |
parent | f8f0626989c85b3d8bd67eff29d9dd3d14a5e71f (diff) |
rapidio: modify configuration to support PCI-SRIO controller
1. Add an option to include RapidIO support if the PCI is available.
2. Add FSL_RIO configuration option to enable controller selection.
3. Add RapidIO support option into x86 and MIPS architectures.
Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Li Yang <leoli@freescale.com>
Cc: Thomas Moll <thomas.moll@sysgo.com>
Cc: Micha Nelissen <micha@neli.hopto.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/Kconfig | 10 | ||||
-rw-r--r-- | arch/powerpc/Kconfig | 10 | ||||
-rw-r--r-- | arch/powerpc/kernel/cpu_setup_fsl_booke.S | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/Makefile | 2 | ||||
-rw-r--r-- | arch/x86/Kconfig | 10 |
5 files changed, 31 insertions, 3 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 6e9811d40c9f..9905e2e85de4 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -2344,6 +2344,16 @@ source "drivers/pcmcia/Kconfig" | |||
2344 | 2344 | ||
2345 | source "drivers/pci/hotplug/Kconfig" | 2345 | source "drivers/pci/hotplug/Kconfig" |
2346 | 2346 | ||
2347 | config RAPIDIO | ||
2348 | bool "RapidIO support" | ||
2349 | depends on PCI | ||
2350 | default n | ||
2351 | help | ||
2352 | If you say Y here, the kernel will include drivers and | ||
2353 | infrastructure code to support RapidIO interconnect devices. | ||
2354 | |||
2355 | source "drivers/rapidio/Kconfig" | ||
2356 | |||
2347 | endmenu | 2357 | endmenu |
2348 | 2358 | ||
2349 | menu "Executable file formats" | 2359 | menu "Executable file formats" |
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index ce9ff55e1026..3584e4d4a4ad 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -772,11 +772,19 @@ config HAS_RAPIDIO | |||
772 | 772 | ||
773 | config RAPIDIO | 773 | config RAPIDIO |
774 | bool "RapidIO support" | 774 | bool "RapidIO support" |
775 | depends on HAS_RAPIDIO | 775 | depends on HAS_RAPIDIO || PCI |
776 | help | 776 | help |
777 | If you say Y here, the kernel will include drivers and | 777 | If you say Y here, the kernel will include drivers and |
778 | infrastructure code to support RapidIO interconnect devices. | 778 | infrastructure code to support RapidIO interconnect devices. |
779 | 779 | ||
780 | config FSL_RIO | ||
781 | bool "Freescale Embedded SRIO Controller support" | ||
782 | depends on RAPIDIO && HAS_RAPIDIO | ||
783 | default "n" | ||
784 | ---help--- | ||
785 | Include support for RapidIO controller on Freescale embedded | ||
786 | processors (MPC8548, MPC8641, etc). | ||
787 | |||
780 | source "drivers/rapidio/Kconfig" | 788 | source "drivers/rapidio/Kconfig" |
781 | 789 | ||
782 | endmenu | 790 | endmenu |
diff --git a/arch/powerpc/kernel/cpu_setup_fsl_booke.S b/arch/powerpc/kernel/cpu_setup_fsl_booke.S index 5c518ad3445c..913611105c1f 100644 --- a/arch/powerpc/kernel/cpu_setup_fsl_booke.S +++ b/arch/powerpc/kernel/cpu_setup_fsl_booke.S | |||
@@ -64,7 +64,7 @@ _GLOBAL(__setup_cpu_e500v2) | |||
64 | bl __e500_icache_setup | 64 | bl __e500_icache_setup |
65 | bl __e500_dcache_setup | 65 | bl __e500_dcache_setup |
66 | bl __setup_e500_ivors | 66 | bl __setup_e500_ivors |
67 | #ifdef CONFIG_RAPIDIO | 67 | #ifdef CONFIG_FSL_RIO |
68 | /* Ensure that RFXE is set */ | 68 | /* Ensure that RFXE is set */ |
69 | mfspr r3,SPRN_HID1 | 69 | mfspr r3,SPRN_HID1 |
70 | oris r3,r3,HID1_RFXE@h | 70 | oris r3,r3,HID1_RFXE@h |
diff --git a/arch/powerpc/sysdev/Makefile b/arch/powerpc/sysdev/Makefile index 9c2973479142..1e0c933ef772 100644 --- a/arch/powerpc/sysdev/Makefile +++ b/arch/powerpc/sysdev/Makefile | |||
@@ -20,7 +20,7 @@ obj-$(CONFIG_FSL_GTM) += fsl_gtm.o | |||
20 | obj-$(CONFIG_MPC8xxx_GPIO) += mpc8xxx_gpio.o | 20 | obj-$(CONFIG_MPC8xxx_GPIO) += mpc8xxx_gpio.o |
21 | obj-$(CONFIG_FSL_85XX_CACHE_SRAM) += fsl_85xx_l2ctlr.o fsl_85xx_cache_sram.o | 21 | obj-$(CONFIG_FSL_85XX_CACHE_SRAM) += fsl_85xx_l2ctlr.o fsl_85xx_cache_sram.o |
22 | obj-$(CONFIG_SIMPLE_GPIO) += simple_gpio.o | 22 | obj-$(CONFIG_SIMPLE_GPIO) += simple_gpio.o |
23 | obj-$(CONFIG_RAPIDIO) += fsl_rio.o | 23 | obj-$(CONFIG_FSL_RIO) += fsl_rio.o |
24 | obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o | 24 | obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o |
25 | obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ | 25 | obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ |
26 | obj-$(CONFIG_PPC_BESTCOMM) += bestcomm/ | 26 | obj-$(CONFIG_PPC_BESTCOMM) += bestcomm/ |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index d57ddd7573cc..140e254fe546 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -2096,6 +2096,16 @@ source "drivers/pcmcia/Kconfig" | |||
2096 | 2096 | ||
2097 | source "drivers/pci/hotplug/Kconfig" | 2097 | source "drivers/pci/hotplug/Kconfig" |
2098 | 2098 | ||
2099 | config RAPIDIO | ||
2100 | bool "RapidIO support" | ||
2101 | depends on PCI | ||
2102 | default n | ||
2103 | help | ||
2104 | If you say Y here, the kernel will include drivers and | ||
2105 | infrastructure code to support RapidIO interconnect devices. | ||
2106 | |||
2107 | source "drivers/rapidio/Kconfig" | ||
2108 | |||
2099 | endmenu | 2109 | endmenu |
2100 | 2110 | ||
2101 | 2111 | ||