From 88718be3001055fa2801a44ab10570279b3f2cb7 Mon Sep 17 00:00:00 2001 From: Miquel Raynal Date: Thu, 3 Oct 2019 19:50:03 +0200 Subject: mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND Add more clarity by changing the Kconfig entry name. Signed-off-by: Miquel Raynal [trini: Re-run migration, update a few more cases] Signed-off-by: Tom Rini Reviewed-by: Boris Brezillon --- configs/at91sam9n12ek_mmc_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs/at91sam9n12ek_mmc_defconfig') diff --git a/configs/at91sam9n12ek_mmc_defconfig b/configs/at91sam9n12ek_mmc_defconfig index 5c952f0496..d83fa92300 100644 --- a/configs/at91sam9n12ek_mmc_defconfig +++ b/configs/at91sam9n12ek_mmc_defconfig @@ -40,7 +40,7 @@ CONFIG_DM_GPIO=y CONFIG_AT91_GPIO=y CONFIG_DM_MMC=y CONFIG_GENERIC_ATMEL_MCI=y -CONFIG_NAND=y +CONFIG_MTD_RAW_NAND=y # CONFIG_SYS_NAND_USE_FLASH_BBT is not set CONFIG_NAND_ATMEL=y CONFIG_DM_SPI_FLASH=y -- cgit v1.2.1 From d4c2f6b7e3e2bfd297367d292aa641095c7a18e2 Mon Sep 17 00:00:00 2001 From: Miquel Raynal Date: Thu, 3 Oct 2019 19:50:07 +0200 Subject: mtd: ensure MTD/the raw NAND core are compiled when there is a NAND flash Both symbols must be enabled when there is a raw NAND driver selected. Also enable them when CONFIG_CMD_NAND is selected to avoid breaking things when we'll further rework the MTD dependency description. Signed-off-by: Miquel Raynal Reviewed-by: Boris Brezillon [trini: Rebase and migrate a few more boards here] Signed-off-by: Tom Rini --- configs/at91sam9n12ek_mmc_defconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/at91sam9n12ek_mmc_defconfig') diff --git a/configs/at91sam9n12ek_mmc_defconfig b/configs/at91sam9n12ek_mmc_defconfig index d83fa92300..ae6fb5047b 100644 --- a/configs/at91sam9n12ek_mmc_defconfig +++ b/configs/at91sam9n12ek_mmc_defconfig @@ -60,3 +60,4 @@ CONFIG_USB=y CONFIG_DM_USB=y CONFIG_USB_STORAGE=y CONFIG_LCD=y +CONFIG_MTD=y -- cgit v1.2.1 From f6434a95619e52ffaa1ac7a3a030d00440e479c3 Mon Sep 17 00:00:00 2001 From: Miquel Raynal Date: Thu, 3 Oct 2019 19:50:15 +0200 Subject: 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 Reviewed-by: Boris Brezillon --- configs/at91sam9n12ek_mmc_defconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/at91sam9n12ek_mmc_defconfig') diff --git a/configs/at91sam9n12ek_mmc_defconfig b/configs/at91sam9n12ek_mmc_defconfig index ae6fb5047b..fa94273f65 100644 --- a/configs/at91sam9n12ek_mmc_defconfig +++ b/configs/at91sam9n12ek_mmc_defconfig @@ -61,3 +61,4 @@ CONFIG_DM_USB=y CONFIG_USB_STORAGE=y CONFIG_LCD=y CONFIG_MTD=y +CONFIG_MTD_RAW_NAND=y -- cgit v1.2.1