MIPS: Introduce HAS_RAPIDIO Kconfig option
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Tue, 24 Jul 2018 12:31:59 +0000 (14:31 +0200)
committerPaul Burton <paul.burton@mips.com>
Tue, 24 Jul 2018 17:36:59 +0000 (10:36 -0700)
Introduce the same option as PPC and ARM already have because
RAPIDIO can function in the absence of PCI.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Acked-by: Alexandre Bounine <alex.bou9@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/19987/
Cc: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
arch/mips/Kconfig

index a6ce5087b729084171af996180ec5151a33426df..b7fa44ddf45202aa60da278b88f1d939b5ca8ef2 100644 (file)
@@ -3104,10 +3104,13 @@ config ZONE_DMA32
 
 source "drivers/pcmcia/Kconfig"
 
+config HAS_RAPIDIO
+       bool
+       default n
+
 config RAPIDIO
        tristate "RapidIO support"
-       depends on PCI
-       default n
+       depends on HAS_RAPIDIO || PCI
        help
          If you say Y here, the kernel will include drivers and
          infrastructure code to support RapidIO interconnect devices.