Skip to content

Commit ab99e11

Browse files
Boris Brezillonmiquelraynal
authored andcommitted
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>
1 parent 72b77bb commit ab99e11

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/memory/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ config FSL_IFC
122122
config JZ4780_NEMC
123123
bool "Ingenic JZ4780 SoC NEMC driver"
124124
default y
125-
depends on MACH_JZ4780
125+
depends on MACH_JZ4780 || COMPILE_TEST
126+
depends on HAS_IOMEM
126127
help
127128
This driver is for the NAND/External Memory Controller (NEMC) in
128129
the Ingenic JZ4780. This controller is used to handle external

0 commit comments

Comments
 (0)