summaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2019-11-04 18:22:18 +0100
committerWei Xu <xuwei5@hisilicon.com>2019-11-05 01:47:48 +0100
commit3e5cd20d4e1f75b03da58c379ca661e2f1e55cfc (patch)
treeeba6d72dfe8080a50d68ef8e4140f3076ea92745 /drivers/bus
parentbus: hisi_lpc: Clean some types (diff)
downloadlinux-3e5cd20d4e1f75b03da58c379ca661e2f1e55cfc.tar.xz
linux-3e5cd20d4e1f75b03da58c379ca661e2f1e55cfc.zip
bus: hisi_lpc: Expand build test coverage
Currently the driver will only ever be built for ARM64 because it selects CONFIG_INDIRECT_PIO, which itself depends on ARM64. Expand build test coverage for the driver to other architectures by only selecting CONFIG_INDIRECT_PIO for ARM64, when we really want it. We don't include ALPHA, C6X, HEXAGON, and PARISC architectures as they don't define {read, write}sb. Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/Kconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig
index 6b331061d34b..70886abe008e 100644
--- a/drivers/bus/Kconfig
+++ b/drivers/bus/Kconfig
@@ -41,8 +41,9 @@ config MOXTET
config HISILICON_LPC
bool "Support for ISA I/O space on HiSilicon Hip06/7"
- depends on ARM64 && (ARCH_HISI || COMPILE_TEST)
- select INDIRECT_PIO
+ depends on (ARM64 && ARCH_HISI) || (COMPILE_TEST && !ALPHA && !HEXAGON && !PARISC && !C6X)
+ depends on HAS_IOMEM
+ select INDIRECT_PIO if ARM64
help
Driver to enable I/O access to devices attached to the Low Pin
Count bus on the HiSilicon Hip06/7 SoC.