[PoC 128/241] global: Migrate CONFIG_MXC_NAND_REGS_BASE to CFG

Tom Rini
2022-11-20T14:11:49Z

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

diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index 36c61c2eb8cf..3116356f6915 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -1172,7 +1172,7 @@ int board_nand_init(struct nand_chip *this)
this->write_buf = mxc_nand_write_buf;
this->read_buf = mxc_nand_read_buf;

- host->regs = (struct mxc_nand_regs __iomem *)CONFIG_MXC_NAND_REGS_BASE;
+ host->regs = (struct mxc_nand_regs __iomem *)CFG_MXC_NAND_REGS_BASE;
#ifdef MXC_NFC_V3_2
host->ip_regs =
(struct mxc_nand_ip_regs __iomem *)CFG_MXC_NAND_IP_REGS_BASE;
diff --git a/include/configs/m53menlo.h b/include/configs/m53menlo.h
index 6d0f43999681..88be79462e66 100644
--- a/include/configs/m53menlo.h
+++ b/include/configs/m53menlo.h
@@ -45,7 +45,7 @@
*/
#ifdef CONFIG_CMD_NAND
#define CFG_SYS_NAND_BASE NFC_BASE_ADDR_AXI
-#define CONFIG_MXC_NAND_REGS_BASE NFC_BASE_ADDR_AXI
+#define CFG_MXC_NAND_REGS_BASE NFC_BASE_ADDR_AXI
#define CFG_MXC_NAND_IP_REGS_BASE NFC_BASE_ADDR
#define CFG_SYS_NAND_LARGEPAGE
#define CFG_MXC_NAND_HWECC
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index c83a676a330a..e041df9b887a 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -136,7 +136,7 @@ CFG_MVGBE_PORTS
CFG_MXC_GPT_HCLK
CFG_MXC_NAND_HWECC
CFG_MXC_NAND_IP_REGS_BASE
-CONFIG_MXC_NAND_REGS_BASE
+CFG_MXC_NAND_REGS_BASE
CONFIG_MXC_UART_BASE
CONFIG_MXC_USB_FLAGS
CONFIG_MXC_USB_PORT
--
2.25.1