[PoC 100/241] global: Migrate CONFIG_LPC32XX_NAND_SLC_RDR_CLKS to CFG

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

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

diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c
index f4f1b22f5e21..0f12201aa0e3 100644
--- a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c
+++ b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c
@@ -130,7 +130,7 @@ static void lpc32xx_nand_init(void)
TAC_W_WIDTH(hclk / CONFIG_LPC32XX_NAND_SLC_WWIDTH) |
TAC_W_HOLD(hclk / CONFIG_LPC32XX_NAND_SLC_WHOLD) |
TAC_W_SETUP(hclk / CONFIG_LPC32XX_NAND_SLC_WSETUP) |
- TAC_R_RDY(CONFIG_LPC32XX_NAND_SLC_RDR_CLKS) |
+ TAC_R_RDY(CFG_LPC32XX_NAND_SLC_RDR_CLKS) |
TAC_R_WIDTH(hclk / CONFIG_LPC32XX_NAND_SLC_RWIDTH) |
TAC_R_HOLD(hclk / CONFIG_LPC32XX_NAND_SLC_RHOLD) |
TAC_R_SETUP(hclk / CONFIG_LPC32XX_NAND_SLC_RSETUP),
diff --git a/include/configs/devkit3250.h b/include/configs/devkit3250.h
index ab10101f20a9..e17896841355 100644
--- a/include/configs/devkit3250.h
+++ b/include/configs/devkit3250.h
@@ -45,7 +45,7 @@
#define CONFIG_LPC32XX_NAND_SLC_WWIDTH 66666666
#define CONFIG_LPC32XX_NAND_SLC_WHOLD 200000000
#define CONFIG_LPC32XX_NAND_SLC_WSETUP 50000000
-#define CONFIG_LPC32XX_NAND_SLC_RDR_CLKS 14
+#define CFG_LPC32XX_NAND_SLC_RDR_CLKS 14
#define CONFIG_LPC32XX_NAND_SLC_RWIDTH 66666666
#define CONFIG_LPC32XX_NAND_SLC_RHOLD 200000000
#define CONFIG_LPC32XX_NAND_SLC_RSETUP 50000000
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 6eed044d853c..8c567e45590c 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -108,7 +108,7 @@ CFG_LPC32XX_NAND_MLC_RD_LOW
CFG_LPC32XX_NAND_MLC_TCEA_DELAY
CFG_LPC32XX_NAND_MLC_WR_HIGH
CFG_LPC32XX_NAND_MLC_WR_LOW
-CONFIG_LPC32XX_NAND_SLC_RDR_CLKS
+CFG_LPC32XX_NAND_SLC_RDR_CLKS
CONFIG_LPC32XX_NAND_SLC_RHOLD
CONFIG_LPC32XX_NAND_SLC_RSETUP
CONFIG_LPC32XX_NAND_SLC_RWIDTH
--
2.25.1