[PoC 097/241] global: Migrate CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY to CFG

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

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 e75ed1f2ae9c..088fdb7981da 100644
--- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
+++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c
@@ -141,7 +141,7 @@ static void lpc32xx_nand_init(void)
clk = get_hclk_clk_rate();

writel(
- clkdiv(CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY, 0x03, 24) |
+ clkdiv(CFG_LPC32XX_NAND_MLC_TCEA_DELAY, 0x03, 24) |
clkdiv(CFG_LPC32XX_NAND_MLC_BUSY_DELAY, 0x1F, 19) |
clkdiv(CFG_LPC32XX_NAND_MLC_NAND_TA, 0x07, 16) |
clkdiv(CFG_LPC32XX_NAND_MLC_RD_HIGH, 0x0F, 12) |
diff --git a/include/configs/work_92105.h b/include/configs/work_92105.h
index 1a4617c5c02b..34af515037fe 100644
--- a/include/configs/work_92105.h
+++ b/include/configs/work_92105.h
@@ -27,7 +27,7 @@
* NAND chip timings for FIXME: which one?
*/

-#define CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY 333333333
+#define CFG_LPC32XX_NAND_MLC_TCEA_DELAY 333333333
#define CFG_LPC32XX_NAND_MLC_BUSY_DELAY 10000000
#define CFG_LPC32XX_NAND_MLC_NAND_TA 18181818
#define CFG_LPC32XX_NAND_MLC_RD_HIGH 31250000
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 4c28d978ce8a..f0976db1a818 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -105,7 +105,7 @@ CFG_LPC32XX_NAND_MLC_BUSY_DELAY
CFG_LPC32XX_NAND_MLC_NAND_TA
CFG_LPC32XX_NAND_MLC_RD_HIGH
CFG_LPC32XX_NAND_MLC_RD_LOW
-CONFIG_LPC32XX_NAND_MLC_TCEA_DELAY
+CFG_LPC32XX_NAND_MLC_TCEA_DELAY
CONFIG_LPC32XX_NAND_MLC_WR_HIGH
CONFIG_LPC32XX_NAND_MLC_WR_LOW
CONFIG_LPC32XX_NAND_SLC_RDR_CLKS
--
2.25.1