soc: sunxi: mbus: Only build the driver on ARM/ARM64
authorSamuel Holland <samuel@sholland.org>
Sat, 2 Jul 2022 03:25:20 +0000 (22:25 -0500)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Tue, 5 Jul 2022 20:05:59 +0000 (22:05 +0200)
This driver exists as a workaround for old devicetrees which are missing
interconnects properties, so it is only useful for those specific
platforms, which all happen to be ARM or ARM64.

This solves the issue that the driver fails to build on RISC-V, where
PHYS_OFFSET is not defined.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220702032520.22129-1-samuel@sholland.org
drivers/soc/sunxi/Kconfig

index 1fef0e711056167280476697ec86db185e94d371..8aecbc9b197638c192ea022754c05220ab17ee5d 100644 (file)
@@ -6,6 +6,7 @@
 config SUNXI_MBUS
        bool
        default ARCH_SUNXI
+       depends on ARM || ARM64
        help
          Say y to enable the fixups needed to support the Allwinner
          MBUS DMA quirks.