diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-05 05:45:16 -0400 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-18 03:34:19 -0400 |
commit | a58d0b4d512aceb06d8a968c1d19318c77faa6b0 (patch) | |
tree | 06edaf7b8dff3421358e78ae2b5d1dbe9ba79af7 | |
parent | d4de09e5bb08138f06b6d27cd0246d32866b0c68 (diff) |
bcma: Allow selection of this driver when COMPILE_TEST=y
This allows us to increase compile-test coverage without having to build
a kernel for MIPS. That's particularly interesting for subsystem
maintainers that want to test as many drivers as possible in a single
build.
We also add a dependency on HAS_IOMEM in BCMA_HOST_SOC to make sure the
driver is not selected when the arch does not implement IO accessors.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
-rw-r--r-- | drivers/bcma/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bcma/Kconfig b/drivers/bcma/Kconfig index cb0f1aad20b7..b9558ff20830 100644 --- a/drivers/bcma/Kconfig +++ b/drivers/bcma/Kconfig | |||
@@ -30,6 +30,7 @@ config BCMA_HOST_PCI | |||
30 | 30 | ||
31 | config BCMA_HOST_SOC | 31 | config BCMA_HOST_SOC |
32 | bool "Support for BCMA in a SoC" | 32 | bool "Support for BCMA in a SoC" |
33 | depends on HAS_IOMEM | ||
33 | help | 34 | help |
34 | Host interface for a Broadcom AIX bus directly mapped into | 35 | Host interface for a Broadcom AIX bus directly mapped into |
35 | the memory. This only works with the Broadcom SoCs from the | 36 | the memory. This only works with the Broadcom SoCs from the |
@@ -61,7 +62,7 @@ config BCMA_DRIVER_PCI_HOSTMODE | |||
61 | 62 | ||
62 | config BCMA_DRIVER_MIPS | 63 | config BCMA_DRIVER_MIPS |
63 | bool "BCMA Broadcom MIPS core driver" | 64 | bool "BCMA Broadcom MIPS core driver" |
64 | depends on MIPS | 65 | depends on MIPS || COMPILE_TEST |
65 | help | 66 | help |
66 | Driver for the Broadcom MIPS core attached to Broadcom specific | 67 | Driver for the Broadcom MIPS core attached to Broadcom specific |
67 | Advanced Microcontroller Bus. | 68 | Advanced Microcontroller Bus. |