diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-09 16:09:45 -0400 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-07-19 17:14:11 -0400 |
commit | ab99e11062c187533db08078ccae799faed8873e (patch) | |
tree | cf4c9a0c7a09e59e2631f40f449da29eb312daff /drivers/memory | |
parent | 72b77bb018b3e913504fdb0a0612135e5391521e (diff) |
memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y
It just makes maintainers' life easier by allowing them to compile-test
this driver without having MACH_JZ4780 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>
Acked-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig index 78457ab2cbc4..a642552dfdc9 100644 --- a/drivers/memory/Kconfig +++ b/drivers/memory/Kconfig | |||
@@ -122,7 +122,8 @@ config FSL_IFC | |||
122 | config JZ4780_NEMC | 122 | config JZ4780_NEMC |
123 | bool "Ingenic JZ4780 SoC NEMC driver" | 123 | bool "Ingenic JZ4780 SoC NEMC driver" |
124 | default y | 124 | default y |
125 | depends on MACH_JZ4780 | 125 | depends on MACH_JZ4780 || COMPILE_TEST |
126 | depends on HAS_IOMEM | ||
126 | help | 127 | help |
127 | This driver is for the NAND/External Memory Controller (NEMC) in | 128 | This driver is for the NAND/External Memory Controller (NEMC) in |
128 | the Ingenic JZ4780. This controller is used to handle external | 129 | the Ingenic JZ4780. This controller is used to handle external |