Skip to content

Commit ee70e5e

Browse files
Boris Brezillonmiquelraynal
authored andcommitted
mtd: rawnand: lpc32xx: Allow selection of these drivers when COMPILE_TEST=y
It just makes NAND maintainers' life easier by allowing them to compile-test these drivers without having ARCH_LPC32XX 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>
1 parent 18331b9 commit ee70e5e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/mtd/nand/raw/Kconfig‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ config MTD_NAND_MARVELL
297297

298298
config MTD_NAND_SLC_LPC32XX
299299
tristate "NXP LPC32xx SLC Controller"
300-
depends on ARCH_LPC32XX
300+
depends on ARCH_LPC32XX || COMPILE_TEST
301+
depends on HAS_IOMEM
301302
help
302303
Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell
303304
chips) NAND controller. This is the default for the PHYTEC 3250
@@ -308,7 +309,8 @@ config MTD_NAND_SLC_LPC32XX
308309

309310
config MTD_NAND_MLC_LPC32XX
310311
tristate "NXP LPC32xx MLC Controller"
311-
depends on ARCH_LPC32XX
312+
depends on ARCH_LPC32XX || COMPILE_TEST
313+
depends on HAS_IOMEM
312314
help
313315
Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND
314316
controller. This is the default for the WORK92105 controller

0 commit comments

Comments
 (0)