[PoC 093/241] global: Migrate CONFIG_LPC32XX_NAND_MLC_BUSY_DELAY to CFG

Tom Rini
2022-11-20T13:49:29Z

drivers/mtd/nand/raw/lpc32xx_nand_mlc.c | 2 +-
include/configs/work_92105.h | 2 +-
scripts/config_whitelist.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
index a884c65d18b8..dd3f35def0fa 100644
--- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
+++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
@@ -142,7 +142,7 @@ static void lpc32xx_nand_init(void)

writel(
clkdiv(CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY, 0x03, 24) |
- clkdiv(CONFIG_LPC32XX_NAND_MLC_BUSY_DELAY, 0x1F, 19) |
+ clkdiv(CFG_LPC32XX_NAND_MLC_BUSY_DELAY, 0x1F, 19) |
clkdiv(CONFIG_LPC32XX_NAND_MLC_NAND_TA, 0x07, 16) |
clkdiv(CONFIG_LPC32XX_NAND_MLC_RD_HIGH, 0x0F, 12) |
clkdiv(CONFIG_LPC32XX_NAND_MLC_RD_LOW, 0x0F, 8) |
diff --git a/include/configs/work_92105.h b/include/configs/work_92105.h
index 010da1531ff9..a1ecd8ceef02 100644
--- a/include/configs/work_92105.h
+++ b/include/configs/work_92105.h
@@ -28,7 +28,7 @@
*/

#define CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY 333333333
-#define CONFIG_LPC32XX_NAND_MLC_BUSY_DELAY 10000000
+#define CFG_LPC32XX_NAND_MLC_BUSY_DELAY 10000000
#define CONFIG_LPC32XX_NAND_MLC_NAND_TA 18181818
#define CONFIG_LPC32XX_NAND_MLC_RD_HIGH 31250000
#define CONFIG_LPC32XX_NAND_MLC_RD_LOW 45454545
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 99942bf36472..b38db2586a4f 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -101,7 +101,7 @@ CFG_L2_CACHE
CFG_LEGACY_BOOTCMD_ENV
CFG_LOWPOWER_ADDR
CFG_LOWPOWER_FLAG
-CONFIG_LPC32XX_NAND_MLC_BUSY_DELAY
+CFG_LPC32XX_NAND_MLC_BUSY_DELAY
CONFIG_LPC32XX_NAND_MLC_NAND_TA
CONFIG_LPC32XX_NAND_MLC_RD_HIGH
CONFIG_LPC32XX_NAND_MLC_RD_LOW
--
2.25.1