summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/Kconfig
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-07-09 22:09:33 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-07-18 10:10:20 +0200
commite37db6df41f5d45e43d5544b2cfadeed1710f086 (patch)
tree469b9bff2bbb22da2da878fa6abc021cd6780f63 /drivers/mtd/nand/raw/Kconfig
parentmtd: rawnand: sunxi: Make sure ret is initialized in sunxi_nfc_read_byte() (diff)
downloadlinux-e37db6df41f5d45e43d5544b2cfadeed1710f086.tar.xz
linux-e37db6df41f5d45e43d5544b2cfadeed1710f086.zip
mtd: rawnand: sunxi: Allow selection of this driver when COMPILE_TEST=y
It just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_SUNXI enabled. We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/Kconfig')
-rw-r--r--drivers/mtd/nand/raw/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 524684239fdb..cd9eb60faff6 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -516,7 +516,8 @@ config MTD_NAND_XWAY
config MTD_NAND_SUNXI
tristate "Support for NAND on Allwinner SoCs"
- depends on ARCH_SUNXI
+ depends on ARCH_SUNXI || COMPILE_TEST
+ depends on HAS_IOMEM
help
Enables support for NAND Flash chips on Allwinner SoCs.