mtd: ensure MTD is compiled when CMD_MTDPARTS is selected
MTD support must be enabled when using mtdparts. Indeed, functions
like get_mtd_info(), get_mtd_device() and put_mtd_device() are in
drivers/mtd/mtd_uboot.c and are built only with CONFIG_MTD.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
diff --git a/configs/pxm2_defconfig b/configs/pxm2_defconfig
index 817a492..ecfc2a5 100644
--- a/configs/pxm2_defconfig
+++ b/configs/pxm2_defconfig
@@ -94,3 +94,4 @@
CONFIG_SYS_CONSOLE_BG_COL=0xff
CONFIG_SYS_CONSOLE_FG_COL=0x00
CONFIG_MTD=y
+CONFIG_MTD_RAW_NAND=y