[PoC 099/241] global: Migrate CONFIG_LPC32XX_NAND_MLC_WR_LOW to CFG

Tom Rini
2022-11-20T13:50:54Z

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 31a9a22ba31f..285411776096 100644
--- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
+++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
@@ -147,7 +147,7 @@ static void lpc32xx_nand_init(void)
clkdiv(CFG_LPC32XX_NAND_MLC_RD_HIGH, 0x0F, 12) |
clkdiv(CFG_LPC32XX_NAND_MLC_RD_LOW, 0x0F, 8) |
clkdiv(CFG_LPC32XX_NAND_MLC_WR_HIGH, 0x0F, 4) |
- clkdiv(CONFIG_LPC32XX_NAND_MLC_WR_LOW, 0x0F, 0),
+ clkdiv(CFG_LPC32XX_NAND_MLC_WR_LOW, 0x0F, 0),
&lpc32xx_nand_mlc_registers->time_reg);
}

diff --git a/include/configs/work_92105.h b/include/configs/work_92105.h
index c67a0bb6e1a8..f1a7853a80e6 100644
--- a/include/configs/work_92105.h
+++ b/include/configs/work_92105.h
@@ -33,7 +33,7 @@
#define CFG_LPC32XX_NAND_MLC_RD_HIGH 31250000
#define CFG_LPC32XX_NAND_MLC_RD_LOW 45454545
#define CFG_LPC32XX_NAND_MLC_WR_HIGH 40000000
-#define CONFIG_LPC32XX_NAND_MLC_WR_LOW 83333333
+#define CFG_LPC32XX_NAND_MLC_WR_LOW 83333333

/*
* NAND
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 607056ade394..6eed044d853c 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -107,7 +107,7 @@ CFG_LPC32XX_NAND_MLC_RD_HIGH
CFG_LPC32XX_NAND_MLC_RD_LOW
CFG_LPC32XX_NAND_MLC_TCEA_DELAY
CFG_LPC32XX_NAND_MLC_WR_HIGH
-CONFIG_LPC32XX_NAND_MLC_WR_LOW
+CFG_LPC32XX_NAND_MLC_WR_LOW
CONFIG_LPC32XX_NAND_SLC_RDR_CLKS
CONFIG_LPC32XX_NAND_SLC_RHOLD
CONFIG_LPC32XX_NAND_SLC_RSETUP
--
2.25.1