From: Miquel Raynal <miquel.raynal@bootlin.com>
Date: Thu, 3 Oct 2019 17:50:13 +0000 (+0200)
Subject: mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND is selected
X-Git-Tag: v2025.01-rc5-pxa1908~2658^2~14
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/%7B%7B?a=commitdiff_plain;h=7ccc3f30187f2fe17b50dc108e7219dde34857ee;p=u-boot.git

mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND is selected

Raw NAND support must be enabled when the environment is in NAND.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
---

diff --git a/configs/bk4r1_defconfig b/configs/bk4r1_defconfig
index 7ad23f5dc8..03c2ec16aa 100644
--- a/configs/bk4r1_defconfig
+++ b/configs/bk4r1_defconfig
@@ -65,6 +65,8 @@ CONFIG_NAND_VF610_NFC_DT=y
 CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_MTD=y
+CONFIG_MTD_RAW_NAND=y
+CONFIG_MTD_UBI=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_MTD=y
 CONFIG_PHYLIB=y
diff --git a/configs/harmony_defconfig b/configs/harmony_defconfig
index 4429896c92..dedc04eab4 100644
--- a/configs/harmony_defconfig
+++ b/configs/harmony_defconfig
@@ -34,6 +34,7 @@ CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_SPL_DM=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
+CONFIG_MTD_RAW_NAND=y
 CONFIG_MTD_UBI=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_PCI=y