Skip to contentSkip to conversation

global: Move remaining CONFIG_SYS_NOR_* to CFG_SYS_NOR_*

PATCH In review Tom Rini 4 participants 40 messages Nov 16, 2022 – Jan 20, 2023 Page 2 of 3

Subsystems (58)
Network drivers Arm (32-bit) x86 USB +54 more subsystems
lore
Share & tools
lore
author
#20 lore raw

PATCH 9/17 global: Move remaining CONFIG_SYS_PCI* to CFG_SYS_PCI*

In reply to Tom Rini

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_PCI and CONFIG_SYS_PCIE namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace.

---
 arch/arm/cpu/armv7/ls102xa/cpu.c              | 16 +++----
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c       | 46 +++++++++----------
 .../arm/include/asm/arch-fsl-layerscape/cpu.h | 24 +++++-----
 .../asm/arch-fsl-layerscape/immap_lsch2.h     | 10 ++--
 .../asm/arch-fsl-layerscape/immap_lsch3.h     | 34 +++++++-------
 arch/arm/include/asm/arch-ls102xa/config.h    | 24 +++++-----
 arch/m68k/include/asm/immap.h                 |  8 ++--
 arch/powerpc/cpu/mpc83xx/pcie.c               | 10 ++--
 arch/powerpc/cpu/mpc85xx/liodn.c              |  2 +-
 arch/powerpc/include/asm/fsl_pci.h            | 32 ++++++-------
 arch/powerpc/include/asm/immap_85xx.h         |  4 +-
 board/freescale/common/p_corenet/tlb.c        | 12 ++---
 board/freescale/mpc8548cds/tlb.c              |  6 +--
 board/freescale/p1010rdb/tlb.c                |  4 +-
 board/freescale/p1_p2_rdb_pc/tlb.c            |  4 +-
 board/freescale/t102xrdb/tlb.c                |  4 +-
 board/freescale/t104xrdb/tlb.c                |  4 +-
 board/freescale/t208xqds/tlb.c                | 10 ++--
 board/freescale/t208xrdb/tlb.c                | 10 ++--
 board/freescale/t4rdb/tlb.c                   | 12 ++---
 board/keymile/kmcent2/tlb.c                   |  4 +-
 board/socrates/tlb.c                          |  4 +-
 common/fdt_support.c                          |  4 +-
 drivers/pci/pci_auto.c                        |  8 ++--
 drivers/pci/pcie_fsl.c                        | 16 +++----
 drivers/pci/pcie_fsl.h                        | 12 ++---
 drivers/pci/pcie_layerscape.h                 | 16 +++----
 drivers/pci/pcie_layerscape_ep.c              |  6 +--
 drivers/pci/pcie_layerscape_gen4.c            |  6 +--
 drivers/pci/pcie_layerscape_gen4.h            |  8 ++--
 include/configs/MPC837XERDB.h                 | 18 ++++----
 include/configs/MPC8548CDS.h                  | 24 +++++-----
 include/configs/P1010RDB.h                    | 24 +++++-----
 include/configs/P2041RDB.h                    | 20 ++++----
 include/configs/T102xRDB.h                    | 20 ++++----
 include/configs/T104xRDB.h                    | 24 +++++-----
 include/configs/T208xQDS.h                    | 24 +++++-----
 include/configs/T208xRDB.h                    | 24 +++++-----
 include/configs/T4240RDB.h                    | 24 +++++-----
 include/configs/kmcent2.h                     |  8 ++--
 include/configs/p1_p2_rdb_pc.h                | 24 +++++-----
 include/configs/socrates.h                    |  4 +-
 42 files changed, 299 insertions(+), 299 deletions(-)
arch/arm/cpu/armv7/ls102xa/cpu.c +8 -8
index d530e0655bc2..d09c21d5d9b2 100644
@@ -168,18 +168,18 @@ static void mmu_setup(void)
 	/* Level 1 has 512 entries */
 	for (i = 0; i < 512; i++) {
 		/* Mapping for PCIe 1 */
-		if (va_start >= CONFIG_SYS_PCIE1_VIRT_ADDR &&
-		    va_start < (CONFIG_SYS_PCIE1_VIRT_ADDR +
-				 CONFIG_SYS_PCIE_MMAP_SIZE))
+		if (va_start >= CFG_SYS_PCIE1_VIRT_ADDR &&
+		    va_start < (CFG_SYS_PCIE1_VIRT_ADDR +
+				 CFG_SYS_PCIE_MMAP_SIZE))
 			set_pgsection(level1_table, i,
-				      CONFIG_SYS_PCIE1_PHYS_BASE + va_start,
+				      CFG_SYS_PCIE1_PHYS_BASE + va_start,
 				      MT_DEVICE_MEM);
 		/* Mapping for PCIe 2 */
-		else if (va_start >= CONFIG_SYS_PCIE2_VIRT_ADDR &&
-			 va_start < (CONFIG_SYS_PCIE2_VIRT_ADDR +
-				     CONFIG_SYS_PCIE_MMAP_SIZE))
+		else if (va_start >= CFG_SYS_PCIE2_VIRT_ADDR &&
+			 va_start < (CFG_SYS_PCIE2_VIRT_ADDR +
+				     CFG_SYS_PCIE_MMAP_SIZE))
 			set_pgsection(level1_table, i,
-				      CONFIG_SYS_PCIE2_PHYS_BASE + va_start,
+				      CFG_SYS_PCIE2_PHYS_BASE + va_start,
 				      MT_DEVICE_MEM);
 		else
 			set_pgsection(level1_table, i,
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +23 -23

93 lines not on this page · raw message

arch/arm/include/asm/arch-fsl-layerscape/cpu.h +12 -12
index 4db479140ea2..20f96713871a 100644
@@ -35,17 +35,17 @@
 #define CONFIG_SYS_FSL_QBMAN_SIZE	0x8000000
 #define CONFIG_SYS_FSL_QBMAN_SIZE_1	0x4000000
 #ifdef CONFIG_ARCH_LS2080A
-#define CONFIG_SYS_PCIE1_PHYS_SIZE	0x200000000
-#define CONFIG_SYS_PCIE2_PHYS_SIZE	0x200000000
-#define CONFIG_SYS_PCIE3_PHYS_SIZE	0x200000000
-#define CONFIG_SYS_PCIE4_PHYS_SIZE	0x200000000
+#define CFG_SYS_PCIE1_PHYS_SIZE	0x200000000
+#define CFG_SYS_PCIE2_PHYS_SIZE	0x200000000
+#define CFG_SYS_PCIE3_PHYS_SIZE	0x200000000
+#define CFG_SYS_PCIE4_PHYS_SIZE	0x200000000
 #else
-#define CONFIG_SYS_PCIE1_PHYS_SIZE	0x800000000
-#define CONFIG_SYS_PCIE2_PHYS_SIZE	0x800000000
-#ifndef CONFIG_SYS_PCIE3_PHYS_SIZE
-#define CONFIG_SYS_PCIE3_PHYS_SIZE	0x800000000
+#define CFG_SYS_PCIE1_PHYS_SIZE	0x800000000
+#define CFG_SYS_PCIE2_PHYS_SIZE	0x800000000
+#ifndef CFG_SYS_PCIE3_PHYS_SIZE
+#define CFG_SYS_PCIE3_PHYS_SIZE	0x800000000
 #endif
-#define CONFIG_SYS_PCIE4_PHYS_SIZE	0x800000000
+#define CFG_SYS_PCIE4_PHYS_SIZE	0x800000000
 #define SYS_PCIE5_PHYS_SIZE		0x800000000
 #define SYS_PCIE6_PHYS_SIZE		0x800000000
 #endif
@@ -83,9 +83,9 @@
 #define CONFIG_SYS_FSL_QBMAN_SIZE	0x10000000
 #define CONFIG_SYS_FSL_DRAM_BASE2	0x880000000
 #define CONFIG_SYS_FSL_DRAM_SIZE2	0x780000000	/* 30GB */
-#define CONFIG_SYS_PCIE1_PHYS_SIZE	0x800000000
-#define CONFIG_SYS_PCIE2_PHYS_SIZE	0x800000000
-#define CONFIG_SYS_PCIE3_PHYS_SIZE	0x800000000
+#define CFG_SYS_PCIE1_PHYS_SIZE	0x800000000
+#define CFG_SYS_PCIE2_PHYS_SIZE	0x800000000
+#define CFG_SYS_PCIE3_PHYS_SIZE	0x800000000
 #define CONFIG_SYS_FSL_DRAM_BASE3	0x8800000000
 #define CONFIG_SYS_FSL_DRAM_SIZE3	0x7800000000	/* 480GB */
 #endif
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h +5 -5
index 85ac5eb28138..64dc7c88b7f8 100644
@@ -33,8 +33,8 @@
 #define CONFIG_SYS_XHCI_USB1_ADDR		(CONFIG_SYS_IMMR + 0x01f00000)
 #define CONFIG_SYS_XHCI_USB2_ADDR		(CONFIG_SYS_IMMR + 0x02000000)
 #define CONFIG_SYS_XHCI_USB3_ADDR		(CONFIG_SYS_IMMR + 0x02100000)
-#define CONFIG_SYS_PCIE1_ADDR			(CONFIG_SYS_IMMR + 0x2400000)
-#define CONFIG_SYS_PCIE2_ADDR			(CONFIG_SYS_IMMR + 0x2500000)
+#define CFG_SYS_PCIE1_ADDR			(CONFIG_SYS_IMMR + 0x2400000)
+#define CFG_SYS_PCIE2_ADDR			(CONFIG_SYS_IMMR + 0x2500000)
 #define CONFIG_SYS_SEC_MON_ADDR			(CONFIG_SYS_IMMR + 0xe90000)
 #define CONFIG_SYS_SFP_ADDR			(CONFIG_SYS_IMMR + 0xe80200)
 
@@ -90,9 +90,9 @@
 #define QDMA_BASE_ADDR				(CONFIG_SYS_IMMR + 0x07380000)
 #define QMAN_CQSIDR_REG				0x20a80
 
-#define CONFIG_SYS_PCIE1_PHYS_ADDR		0x4000000000ULL
-#define CONFIG_SYS_PCIE2_PHYS_ADDR		0x4800000000ULL
-#define CONFIG_SYS_PCIE3_PHYS_ADDR		0x5000000000ULL
+#define CFG_SYS_PCIE1_PHYS_ADDR		0x4000000000ULL
+#define CFG_SYS_PCIE2_PHYS_ADDR		0x4800000000ULL
+#define CFG_SYS_PCIE3_PHYS_ADDR		0x5000000000ULL
 /* LUT registers */
 #ifdef CONFIG_ARCH_LS1012A
 #define PCIE_LUT_BASE				0xC0000
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h +17 -17
index 59488a04e409..cd112402e0c8 100644
@@ -192,35 +192,35 @@
 
 
 /* PCIe */
-#define CONFIG_SYS_PCIE1_ADDR			(CONFIG_SYS_IMMR + 0x2400000)
-#define CONFIG_SYS_PCIE2_ADDR			(CONFIG_SYS_IMMR + 0x2500000)
+#define CFG_SYS_PCIE1_ADDR			(CONFIG_SYS_IMMR + 0x2400000)
+#define CFG_SYS_PCIE2_ADDR			(CONFIG_SYS_IMMR + 0x2500000)
 #if defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A)
 #define SYS_PCIE5_ADDR				(CONFIG_SYS_IMMR + 0x2800000)
 #define SYS_PCIE6_ADDR				(CONFIG_SYS_IMMR + 0x2900000)
 #endif
 
 #if defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A)
-#define CONFIG_SYS_PCIE1_PHYS_ADDR		0x8000000000ULL
-#define CONFIG_SYS_PCIE2_PHYS_ADDR		0x8800000000ULL
-#define CONFIG_SYS_PCIE3_PHYS_ADDR		0x9000000000ULL
-#define CONFIG_SYS_PCIE4_PHYS_ADDR		0x9800000000ULL
+#define CFG_SYS_PCIE1_PHYS_ADDR		0x8000000000ULL
+#define CFG_SYS_PCIE2_PHYS_ADDR		0x8800000000ULL
+#define CFG_SYS_PCIE3_PHYS_ADDR		0x9000000000ULL
+#define CFG_SYS_PCIE4_PHYS_ADDR		0x9800000000ULL
 #define SYS_PCIE5_PHYS_ADDR			0xa000000000ULL
 #define SYS_PCIE6_PHYS_ADDR			0xa800000000ULL
 #elif CONFIG_ARCH_LS1088A
-#define CONFIG_SYS_PCIE1_PHYS_ADDR		0x2000000000ULL
-#define CONFIG_SYS_PCIE2_PHYS_ADDR		0x2800000000ULL
-#define CONFIG_SYS_PCIE3_PHYS_ADDR		0x3000000000ULL
+#define CFG_SYS_PCIE1_PHYS_ADDR		0x2000000000ULL
+#define CFG_SYS_PCIE2_PHYS_ADDR		0x2800000000ULL
+#define CFG_SYS_PCIE3_PHYS_ADDR		0x3000000000ULL
 #elif CONFIG_ARCH_LS1028A
-#define CONFIG_SYS_PCIE1_PHYS_ADDR		0x8000000000ULL
-#define CONFIG_SYS_PCIE2_PHYS_ADDR		0x8800000000ULL
-#define CONFIG_SYS_PCIE3_PHYS_ADDR		0x01f0000000ULL
+#define CFG_SYS_PCIE1_PHYS_ADDR		0x8000000000ULL
+#define CFG_SYS_PCIE2_PHYS_ADDR		0x8800000000ULL
+#define CFG_SYS_PCIE3_PHYS_ADDR		0x01f0000000ULL
 /* this is used by integrated PCI on LS1028, includes ECAM and register space */
-#define CONFIG_SYS_PCIE3_PHYS_SIZE		0x0010000000ULL
+#define CFG_SYS_PCIE3_PHYS_SIZE		0x0010000000ULL
 #else
-#define CONFIG_SYS_PCIE1_PHYS_ADDR		0x1000000000ULL
-#define CONFIG_SYS_PCIE2_PHYS_ADDR		0x1200000000ULL
-#define CONFIG_SYS_PCIE3_PHYS_ADDR		0x1400000000ULL
-#define CONFIG_SYS_PCIE4_PHYS_ADDR		0x1600000000ULL
+#define CFG_SYS_PCIE1_PHYS_ADDR		0x1000000000ULL
+#define CFG_SYS_PCIE2_PHYS_ADDR		0x1200000000ULL
+#define CFG_SYS_PCIE3_PHYS_ADDR		0x1400000000ULL
+#define CFG_SYS_PCIE4_PHYS_ADDR		0x1600000000ULL
 #endif
 
 /* Device Configuration */
arch/arm/include/asm/arch-ls102xa/config.h +12 -12
index 033341dbfb63..62026bda9e2b 100644
@@ -55,22 +55,22 @@
 
 #define LPUART_BASE				(CONFIG_SYS_IMMR + 0x01950000)
 
-#define CONFIG_SYS_PCIE1_ADDR			(CONFIG_SYS_IMMR + 0x2400000)
-#define CONFIG_SYS_PCIE2_ADDR			(CONFIG_SYS_IMMR + 0x2500000)
-
-#define CONFIG_SYS_PCIE1_PHYS_BASE		0x4000000000ULL
-#define CONFIG_SYS_PCIE2_PHYS_BASE		0x4800000000ULL
-#define CONFIG_SYS_PCIE1_VIRT_ADDR		0x24000000UL
-#define CONFIG_SYS_PCIE2_VIRT_ADDR		0x34000000UL
-#define CONFIG_SYS_PCIE_MMAP_SIZE		(192 * 1024 * 1024) /* 192M */
+#define CFG_SYS_PCIE1_ADDR			(CONFIG_SYS_IMMR + 0x2400000)
+#define CFG_SYS_PCIE2_ADDR			(CONFIG_SYS_IMMR + 0x2500000)
+
+#define CFG_SYS_PCIE1_PHYS_BASE		0x4000000000ULL
+#define CFG_SYS_PCIE2_PHYS_BASE		0x4800000000ULL
+#define CFG_SYS_PCIE1_VIRT_ADDR		0x24000000UL
+#define CFG_SYS_PCIE2_VIRT_ADDR		0x34000000UL
+#define CFG_SYS_PCIE_MMAP_SIZE		(192 * 1024 * 1024) /* 192M */
 /*
  * TLB will map VIRT_ADDR to (PHYS_BASE + VIRT_ADDR)
  * So 40bit PCIe PHY addr can directly be converted to a 32bit virtual addr.
  */
-#define CONFIG_SYS_PCIE1_PHYS_ADDR		(CONFIG_SYS_PCIE1_PHYS_BASE + \
-						 CONFIG_SYS_PCIE1_VIRT_ADDR)
-#define CONFIG_SYS_PCIE2_PHYS_ADDR		(CONFIG_SYS_PCIE2_PHYS_BASE + \
-						 CONFIG_SYS_PCIE2_VIRT_ADDR)
+#define CFG_SYS_PCIE1_PHYS_ADDR		(CFG_SYS_PCIE1_PHYS_BASE + \
+						 CFG_SYS_PCIE1_VIRT_ADDR)
+#define CFG_SYS_PCIE2_PHYS_ADDR		(CFG_SYS_PCIE2_PHYS_BASE + \
+						 CFG_SYS_PCIE2_VIRT_ADDR)
 
 /* SATA */
 #define AHCI_BASE_ADDR				(CONFIG_SYS_IMMR + 0x02200000)
arch/m68k/include/asm/immap.h +4 -4
index ead62cd03871..f2eb6fcb463b 100644
@@ -337,10 +337,10 @@
 #define CONFIG_SYS_NUM_IRQS		(128)
 
 #ifdef CONFIG_PCI
-#define CONFIG_SYS_PCI_BAR0		(0x40000000)
-#define CONFIG_SYS_PCI_BAR1		(CONFIG_SYS_SDRAM_BASE)
-#define CONFIG_SYS_PCI_TBATR0		(CONFIG_SYS_MBAR)
-#define CONFIG_SYS_PCI_TBATR1		(CONFIG_SYS_SDRAM_BASE)
+#define CFG_SYS_PCI_BAR0		(0x40000000)
+#define CFG_SYS_PCI_BAR1		(CONFIG_SYS_SDRAM_BASE)
+#define CFG_SYS_PCI_TBATR0		(CONFIG_SYS_MBAR)
+#define CFG_SYS_PCI_TBATR1		(CONFIG_SYS_SDRAM_BASE)
 #endif
 #endif				/* CONFIG_M547x */
 
arch/powerpc/cpu/mpc83xx/pcie.c +5 -5
index d2b6b05bdaf9..47ca74c5c356 100644
@@ -24,13 +24,13 @@ static struct {
 	u32 size;
 } mpc83xx_pcie_cfg_space[] = {
 	{
-		.base = CONFIG_SYS_PCIE1_CFG_BASE,
-		.size = CONFIG_SYS_PCIE1_CFG_SIZE,
+		.base = CFG_SYS_PCIE1_CFG_BASE,
+		.size = CFG_SYS_PCIE1_CFG_SIZE,
 	},
-#if defined(CONFIG_SYS_PCIE2_CFG_BASE) && defined(CONFIG_SYS_PCIE2_CFG_SIZE)
+#if defined(CFG_SYS_PCIE2_CFG_BASE) && defined(CFG_SYS_PCIE2_CFG_SIZE)
 	{
-		.base = CONFIG_SYS_PCIE2_CFG_BASE,
-		.size = CONFIG_SYS_PCIE2_CFG_SIZE,
+		.base = CFG_SYS_PCIE2_CFG_BASE,
+		.size = CFG_SYS_PCIE2_CFG_SIZE,
 	},
 #endif
 };
arch/powerpc/cpu/mpc85xx/liodn.c +1 -1
index abc14fae4ec0..d5df02d39d82 100644
@@ -387,7 +387,7 @@ void fdt_fixup_liodn(void *blob)
 	fdt_fixup_liodn_tbl(blob, rman_liodn_tbl, rman_liodn_tbl_sz);
 #endif
 
-	ccsr_pcix_t *pcix = (ccsr_pcix_t *)CONFIG_SYS_PCIE1_ADDR;
+	ccsr_pcix_t *pcix = (ccsr_pcix_t *)CFG_SYS_PCIE1_ADDR;
 	int pci_ver = pcix->ipver1 & 0xffff, liodn_base = 0;
 
 	if (pci_ver >= 0x0204) {
arch/powerpc/include/asm/fsl_pci.h +16 -16
index 06f9bfb8ac73..809ab1d4187e 100644
@@ -193,35 +193,35 @@ int fsl_pcie_init_board(int busno);
 
 #define SET_STD_PCI_INFO(x, num) \
 {			\
-	x.regs = CONFIG_SYS_PCI##num##_ADDR;	\
-	x.mem_bus = CONFIG_SYS_PCI##num##_MEM_BUS; \
-	x.mem_phys = CONFIG_SYS_PCI##num##_MEM_PHYS; \
-	x.mem_size = CONFIG_SYS_PCI##num##_MEM_SIZE; \
-	x.io_bus = CONFIG_SYS_PCI##num##_IO_BUS; \
-	x.io_phys = CONFIG_SYS_PCI##num##_IO_PHYS; \
-	x.io_size = CONFIG_SYS_PCI##num##_IO_SIZE; \
+	x.regs = CFG_SYS_PCI##num##_ADDR;	\
+	x.mem_bus = CFG_SYS_PCI##num##_MEM_BUS; \
+	x.mem_phys = CFG_SYS_PCI##num##_MEM_PHYS; \
+	x.mem_size = CFG_SYS_PCI##num##_MEM_SIZE; \
+	x.io_bus = CFG_SYS_PCI##num##_IO_BUS; \
+	x.io_phys = CFG_SYS_PCI##num##_IO_PHYS; \
+	x.io_size = CFG_SYS_PCI##num##_IO_SIZE; \
 	x.law = LAW_TRGT_IF_PCI_##num; \
 	x.pci_num = num; \
 }
 
 #define SET_STD_PCIE_INFO(x, num) \
 {			\
-	x.regs = CONFIG_SYS_PCIE##num##_ADDR;	\
-	x.mem_bus = CONFIG_SYS_PCIE##num##_MEM_BUS; \
-	x.mem_phys = CONFIG_SYS_PCIE##num##_MEM_PHYS; \
-	x.mem_size = CONFIG_SYS_PCIE##num##_MEM_SIZE; \
-	x.io_bus = CONFIG_SYS_PCIE##num##_IO_BUS; \
-	x.io_phys = CONFIG_SYS_PCIE##num##_IO_PHYS; \
-	x.io_size = CONFIG_SYS_PCIE##num##_IO_SIZE; \
+	x.regs = CFG_SYS_PCIE##num##_ADDR;	\
+	x.mem_bus = CFG_SYS_PCIE##num##_MEM_BUS; \
+	x.mem_phys = CFG_SYS_PCIE##num##_MEM_PHYS; \
+	x.mem_size = CFG_SYS_PCIE##num##_MEM_SIZE; \
+	x.io_bus = CFG_SYS_PCIE##num##_IO_BUS; \
+	x.io_phys = CFG_SYS_PCIE##num##_IO_PHYS; \
+	x.io_size = CFG_SYS_PCIE##num##_IO_SIZE; \
 	x.law = LAW_TRGT_IF_PCIE_##num; \
 	x.pci_num = num; \
 }
 
 #define __FT_FSL_PCI_SETUP(blob, compat, num) \
-	ft_fsl_pci_setup(blob, compat, CONFIG_SYS_PCI##num##_ADDR)
+	ft_fsl_pci_setup(blob, compat, CFG_SYS_PCI##num##_ADDR)
 
 #define __FT_FSL_PCIE_SETUP(blob, compat, num) \
-	ft_fsl_pci_setup(blob, compat, CONFIG_SYS_PCIE##num##_ADDR)
+	ft_fsl_pci_setup(blob, compat, CFG_SYS_PCIE##num##_ADDR)
 
 #define FT_FSL_PCI1_SETUP __FT_FSL_PCI_SETUP(blob, FSL_PCI_COMPAT, 1)
 #define FT_FSL_PCI2_SETUP __FT_FSL_PCI_SETUP(blob, FSL_PCI_COMPAT, 2)
arch/powerpc/include/asm/immap_85xx.h +2 -2
index 78c0d0549655..9ae698743eee 100644
@@ -2662,9 +2662,9 @@ struct ccsr_pman {
 #define CONFIG_SYS_PAMU_ADDR \
 	(CONFIG_SYS_IMMR + CFG_SYS_FSL_PAMU_OFFSET)
 
-#define CONFIG_SYS_PCIE1_ADDR \
+#define CFG_SYS_PCIE1_ADDR \
 	(CONFIG_SYS_IMMR + CFG_SYS_MPC85xx_PCIE1_OFFSET)
-#define CONFIG_SYS_PCIE2_ADDR \
+#define CFG_SYS_PCIE2_ADDR \
 	(CONFIG_SYS_IMMR + CFG_SYS_MPC85xx_PCIE2_OFFSET)
 
 #define CONFIG_SYS_SFP_ADDR  \
board/freescale/common/p_corenet/tlb.c +6 -6
index ef46353a3670..4cdef89bf0ee 100644
@@ -91,23 +91,23 @@ struct fsl_e_tlb_entry tlb_table[] = {
 		      0, 2, BOOKE_PAGESZ_256M, 1),
 
 	/* *I*G* - PCI */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 		      MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 3, BOOKE_PAGESZ_1G, 1),
 
 	/* *I*G* - PCI */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT + 0x40000000,
-		      CONFIG_SYS_PCIE1_MEM_PHYS + 0x40000000,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT + 0x40000000,
+		      CFG_SYS_PCIE1_MEM_PHYS + 0x40000000,
 		      MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_256M, 1),
 
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT + 0x50000000,
-		      CONFIG_SYS_PCIE1_MEM_PHYS + 0x50000000,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT + 0x50000000,
+		      CFG_SYS_PCIE1_MEM_PHYS + 0x50000000,
 		      MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 5, BOOKE_PAGESZ_256M, 1),
 
 	/* *I*G* - PCI I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 6, BOOKE_PAGESZ_256K, 1),
 
board/freescale/mpc8548cds/tlb.c +3 -3
index 8d1e5fee9365..9c8e94860089 100644
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * Entry 4:
 	 * PCI and PCIe MEM	1G	Non-cacheable, guarded
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_VIRT, CONFIG_SYS_PCI1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCI1_MEM_VIRT, CFG_SYS_PCI1_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_1G, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * Entry 5:
 	 * PCI1 IO	1M	Non-cacheable, guarded
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_IO_VIRT, CONFIG_SYS_PCI1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCI1_IO_VIRT, CFG_SYS_PCI1_IO_PHYS,
 		      MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 5, BOOKE_PAGESZ_1M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * Entry 6:
 	 * PCIe IO	1M	Non-cacheable, guarded
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 6, BOOKE_PAGESZ_1M, 1),
 };
board/freescale/p1010rdb/tlb.c +2 -2
index aa7517a74d81..5e1fa70bca55 100644
@@ -52,12 +52,12 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 #ifdef CONFIG_PCI
 	/* *I*G* - PCI */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 			MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 			0, 4, BOOKE_PAGESZ_1G, 1),
 
 	/* *I*G* - PCI I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 			MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 			0, 5, BOOKE_PAGESZ_256K, 1),
 #endif
board/freescale/p1_p2_rdb_pc/tlb.c +2 -2
index 85d41327aa24..4cc5e01f5789 100644
@@ -45,12 +45,12 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 #ifdef CONFIG_PCI
 	/* *I*G* - PCI memory 1.5G */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 			MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 			0, 3, BOOKE_PAGESZ_1G, 1),
 
 	/* *I*G* - PCI I/O effective: 192K  */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 			MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 			0, 4, BOOKE_PAGESZ_256K, 1),
 #endif
board/freescale/t102xrdb/tlb.c +2 -2
index 8fdff7576fe5..74744c8ab0ad 100644
@@ -54,12 +54,12 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 #ifndef CONFIG_SPL_BUILD
 	/* *I*G* - PCI */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 3, BOOKE_PAGESZ_1G, 1),
 
 	/* *I*G* - PCI I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_256K, 1),
 
board/freescale/t104xrdb/tlb.c +2 -2
index 8a3d67449c27..905e4771c91e 100644
@@ -67,12 +67,12 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 #ifndef CONFIG_SPL_BUILD
 	/* *I*G* - PCI */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 3, BOOKE_PAGESZ_1G, 1),
 
 	/* *I*G* - PCI I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_256K, 1),
 
board/freescale/t208xqds/tlb.c +5 -5
index f27faf5d2437..9160674b94fd 100644
@@ -66,28 +66,28 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 #ifndef CONFIG_SPL_BUILD
 	/* *I*G* - PCIe 1, 0x80000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 3, BOOKE_PAGESZ_512M, 1),
 
 	/* *I*G* - PCIe 2, 0xa0000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE2_MEM_VIRT, CONFIG_SYS_PCIE2_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE2_MEM_VIRT, CFG_SYS_PCIE2_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_256M, 1),
 
 	/* *I*G* - PCIe 3, 0xb0000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_VIRT, CONFIG_SYS_PCIE3_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE3_MEM_VIRT, CFG_SYS_PCIE3_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 5, BOOKE_PAGESZ_256M, 1),
 
 
 	/* *I*G* - PCIe 4, 0xc0000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE4_MEM_VIRT, CONFIG_SYS_PCIE4_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE4_MEM_VIRT, CFG_SYS_PCIE4_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 6, BOOKE_PAGESZ_256M, 1),
 
 	/* *I*G* - PCI I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 7, BOOKE_PAGESZ_256K, 1),
 
board/freescale/t208xrdb/tlb.c +5 -5
index da03aadb1733..69e58e7e9732 100644
@@ -66,28 +66,28 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 #ifndef CONFIG_SPL_BUILD
 	/* *I*G* - PCIe 1, 0x80000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 3, BOOKE_PAGESZ_512M, 1),
 
 	/* *I*G* - PCIe 2, 0xa0000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE2_MEM_VIRT, CONFIG_SYS_PCIE2_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE2_MEM_VIRT, CFG_SYS_PCIE2_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_256M, 1),
 
 	/* *I*G* - PCIe 3, 0xb0000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_VIRT, CONFIG_SYS_PCIE3_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE3_MEM_VIRT, CFG_SYS_PCIE3_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 5, BOOKE_PAGESZ_256M, 1),
 
 
 	/* *I*G* - PCIe 4, 0xc0000000 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE4_MEM_VIRT, CONFIG_SYS_PCIE4_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE4_MEM_VIRT, CFG_SYS_PCIE4_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 6, BOOKE_PAGESZ_256M, 1),
 
 	/* *I*G* - PCI I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 7, BOOKE_PAGESZ_256K, 1),
 
board/freescale/t4rdb/tlb.c +6 -6
index 059449af1edf..c57af3046f91 100644
@@ -52,23 +52,23 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
 #ifndef CONFIG_SPL_BUILD
 	/* *I*G* - PCI */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 3, BOOKE_PAGESZ_1G, 1),
 
 	/* *I*G* - PCI */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT + 0x40000000,
-		      CONFIG_SYS_PCIE1_MEM_PHYS + 0x40000000,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT + 0x40000000,
+		      CFG_SYS_PCIE1_MEM_PHYS + 0x40000000,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 4, BOOKE_PAGESZ_256M, 1),
 
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT + 0x50000000,
-		      CONFIG_SYS_PCIE1_MEM_PHYS + 0x50000000,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT + 0x50000000,
+		      CFG_SYS_PCIE1_MEM_PHYS + 0x50000000,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 5, BOOKE_PAGESZ_256M, 1),
 
 	/* *I*G* - PCI I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 6, BOOKE_PAGESZ_256K, 1),
 
board/keymile/kmcent2/tlb.c +2 -2
index 095fc7e96146..0f6dc6063ab1 100644
@@ -46,12 +46,12 @@ struct fsl_e_tlb_entry tlb_table[] = {
 		      0, 2, BOOKE_PAGESZ_128M, 1),
 
 	/* *I*G* - PCI1 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_MEM_VIRT, CONFIG_SYS_PCIE1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_MEM_VIRT, CFG_SYS_PCIE1_MEM_PHYS,
 		      MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
 		      0, 3, BOOKE_PAGESZ_1G, 1),
 
 	/* *I*G* - PCI1 I/O */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCIE1_IO_VIRT, CONFIG_SYS_PCIE1_IO_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCIE1_IO_VIRT, CFG_SYS_PCIE1_IO_PHYS,
 		      MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
 		      0, 4, BOOKE_PAGESZ_256K, 1),
 
board/socrates/tlb.c +2 -2
index de80c3c0e573..1ab403d145e6 100644
@@ -41,7 +41,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * TLB 2:	256M	Non-cacheable, guarded
 	 * 0x80000000	256M	PCI1 MEM First half
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_PCI1_MEM_PHYS, CFG_SYS_PCI1_MEM_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -49,7 +49,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * TLB 3:	256M	Non-cacheable, guarded
 	 * 0x90000000	256M	PCI1 MEM Second half
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
+	SET_TLB_ENTRY(1, CFG_SYS_PCI1_MEM_PHYS + 0x10000000, CFG_SYS_PCI1_MEM_PHYS + 0x10000000,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
 		      0, 3, BOOKE_PAGESZ_256M, 1),
 
common/fdt_support.c +2 -2
index ebebffc78904..dbceec6f2dcc 100644
@@ -739,7 +739,7 @@ int fdt_delete_disabled_nodes(void *blob)
 }
 
 #ifdef CONFIG_PCI
-#define CONFIG_SYS_PCI_NR_INBOUND_WIN 4
+#define CFG_SYS_PCI_NR_INBOUND_WIN 4
 
 #define FDT_PCI_PREFETCH	(0x40000000)
 #define FDT_PCI_MEM32		(0x02000000)
@@ -751,7 +751,7 @@ int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose) {
 	int addrcell, sizecell, len, r;
 	u32 *dma_range;
 	/* sized based on pci addr cells, size-cells, & address-cells */
-	u32 dma_ranges[(3 + 2 + 2) * CONFIG_SYS_PCI_NR_INBOUND_WIN];
+	u32 dma_ranges[(3 + 2 + 2) * CFG_SYS_PCI_NR_INBOUND_WIN];
 
 	addrcell = fdt_getprop_u32_default(blob, "/", "#address-cells", 1);
 	sizecell = fdt_getprop_u32_default(blob, "/", "#size-cells", 1);
drivers/pci/pci_auto.c +4 -4
index c7968926a17f..14fd3bbf679e 100644
@@ -16,9 +16,9 @@
 #include <time.h>
 #include "pci_internal.h"
 
-/* the user can define CONFIG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
-#ifndef CONFIG_SYS_PCI_CACHE_LINE_SIZE
-#define CONFIG_SYS_PCI_CACHE_LINE_SIZE	8
+/* the user can define CFG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
+#ifndef CFG_SYS_PCI_CACHE_LINE_SIZE
+#define CFG_SYS_PCI_CACHE_LINE_SIZE	8
 #endif
 
 static void dm_pciauto_setup_device(struct udevice *dev,
@@ -178,7 +178,7 @@ static void dm_pciauto_setup_device(struct udevice *dev,
 
 	dm_pci_write_config16(dev, PCI_COMMAND, cmdstat);
 	dm_pci_write_config8(dev, PCI_CACHE_LINE_SIZE,
-			     CONFIG_SYS_PCI_CACHE_LINE_SIZE);
+			     CFG_SYS_PCI_CACHE_LINE_SIZE);
 	dm_pci_write_config8(dev, PCI_LATENCY_TIMER, 0x80);
 }
 
drivers/pci/pcie_fsl.c +8 -8
index a8f8c31bef8f..4600652f2b1b 100644
@@ -343,8 +343,8 @@ static int fsl_pcie_setup_outbound_wins(struct fsl_pcie *pcie)
 
 static int fsl_pcie_setup_inbound_wins(struct fsl_pcie *pcie)
 {
-	phys_addr_t phys_start = CONFIG_SYS_PCI_MEMORY_PHYS;
-	pci_addr_t bus_start = CONFIG_SYS_PCI_MEMORY_BUS;
+	phys_addr_t phys_start = CFG_SYS_PCI_MEMORY_PHYS;
+	pci_addr_t bus_start = CFG_SYS_PCI_MEMORY_BUS;
 	u64 sz = min((u64)gd->ram_size, (1ull << 32));
 	pci_size_t pci_sz;
 	int idx;
@@ -367,8 +367,8 @@ static int fsl_pcie_setup_inbound_wins(struct fsl_pcie *pcie)
 		sz = 2ull << __ilog2_u64(sz);
 
 	fsl_pcie_setup_inbound_win(pcie, idx--, true,
-				   CONFIG_SYS_PCI_MEMORY_PHYS,
-				   CONFIG_SYS_PCI_MEMORY_BUS, sz);
+				   CFG_SYS_PCI_MEMORY_PHYS,
+				   CFG_SYS_PCI_MEMORY_BUS, sz);
 #if defined(CONFIG_PHYS_64BIT) && defined(CONFIG_SYS_PCI_64BIT)
 	/*
 	 * On 64-bit capable systems, set up a mapping for all of DRAM
@@ -380,12 +380,12 @@ static int fsl_pcie_setup_inbound_wins(struct fsl_pcie *pcie)
 		pci_sz = 1ull << (__ilog2_u64(gd->ram_size) + 1);
 
 	dev_dbg(pcie->bus, "R64 bus_start: %llx phys_start: %llx size: %llx\n",
-		(u64)CONFIG_SYS_PCI64_MEMORY_BUS,
-		(u64)CONFIG_SYS_PCI_MEMORY_PHYS, (u64)pci_sz);
+		(u64)CFG_SYS_PCI64_MEMORY_BUS,
+		(u64)CFG_SYS_PCI_MEMORY_PHYS, (u64)pci_sz);
 
 	fsl_pcie_setup_inbound_win(pcie, idx--, true,
-				   CONFIG_SYS_PCI_MEMORY_PHYS,
-				   CONFIG_SYS_PCI64_MEMORY_BUS, pci_sz);
+				   CFG_SYS_PCI_MEMORY_PHYS,
+				   CFG_SYS_PCI64_MEMORY_BUS, pci_sz);
 #endif
 
 	return 0;
drivers/pci/pcie_fsl.h +6 -6
index 70c5f4e4cffe..ba84a232b835 100644
@@ -28,16 +28,16 @@
 
 #define DBI_RO_WR_EN			0x8bc
 
-#ifndef CONFIG_SYS_PCI_MEMORY_BUS
-#define CONFIG_SYS_PCI_MEMORY_BUS	0
+#ifndef CFG_SYS_PCI_MEMORY_BUS
+#define CFG_SYS_PCI_MEMORY_BUS	0
 #endif
 
-#ifndef CONFIG_SYS_PCI_MEMORY_PHYS
-#define CONFIG_SYS_PCI_MEMORY_PHYS	0
+#ifndef CFG_SYS_PCI_MEMORY_PHYS
+#define CFG_SYS_PCI_MEMORY_PHYS	0
 #endif
 
-#if defined(CONFIG_SYS_PCI_64BIT) && !defined(CONFIG_SYS_PCI64_MEMORY_BUS)
-#define CONFIG_SYS_PCI64_MEMORY_BUS	(64ull * 1024 * 1024 * 1024)
+#if defined(CONFIG_SYS_PCI_64BIT) && !defined(CFG_SYS_PCI64_MEMORY_BUS)
+#define CFG_SYS_PCI64_MEMORY_BUS	(64ull * 1024 * 1024 * 1024)
 #endif
 
 #define PEX_CSR0_LTSSM_MASK		0xFC
drivers/pci/pcie_layerscape.h +8 -8
index 8cdf516d9fad..a52774179e2f 100644
@@ -13,20 +13,20 @@
 #include <asm/arch-fsl-layerscape/svr.h>
 #include <asm/arch-ls102xa/svr.h>
 
-#ifndef CONFIG_SYS_PCI_MEMORY_BUS
-#define CONFIG_SYS_PCI_MEMORY_BUS CONFIG_SYS_SDRAM_BASE
+#ifndef CFG_SYS_PCI_MEMORY_BUS
+#define CFG_SYS_PCI_MEMORY_BUS CONFIG_SYS_SDRAM_BASE
 #endif
 
-#ifndef CONFIG_SYS_PCI_MEMORY_PHYS
-#define CONFIG_SYS_PCI_MEMORY_PHYS CONFIG_SYS_SDRAM_BASE
+#ifndef CFG_SYS_PCI_MEMORY_PHYS
+#define CFG_SYS_PCI_MEMORY_PHYS CONFIG_SYS_SDRAM_BASE
 #endif
 
-#ifndef CONFIG_SYS_PCI_MEMORY_SIZE
-#define CONFIG_SYS_PCI_MEMORY_SIZE SZ_4G
+#ifndef CFG_SYS_PCI_MEMORY_SIZE
+#define CFG_SYS_PCI_MEMORY_SIZE SZ_4G
 #endif
 
-#ifndef CONFIG_SYS_PCI_EP_MEMORY_BASE
-#define CONFIG_SYS_PCI_EP_MEMORY_BASE CONFIG_SYS_LOAD_ADDR
+#ifndef CFG_SYS_PCI_EP_MEMORY_BASE
+#define CFG_SYS_PCI_EP_MEMORY_BASE CONFIG_SYS_LOAD_ADDR
 #endif
 
 #define PCIE_PHYS_SIZE			0x200000000
drivers/pci/pcie_layerscape_ep.c +3 -3
index f2813aeef67d..ff26a5cd9bee 100644
@@ -72,7 +72,7 @@ static void ls_pcie_ep_setup_atu(struct ls_pcie_ep *pcie_ep, u32 pf)
 	u32 vf_flag = 0;
 	u64 phys = 0;
 
-	phys = CONFIG_SYS_PCI_EP_MEMORY_BASE + pf * SZ_64M;
+	phys = CFG_SYS_PCI_EP_MEMORY_BASE + pf * SZ_64M;
 
 	phys = ALIGN(phys, PCIE_BAR0_SIZE);
 	/* ATU 0 : INBOUND : map BAR0 */
@@ -117,8 +117,8 @@ static void ls_pcie_ep_setup_atu(struct ls_pcie_ep *pcie_ep, u32 pf)
 	/* ATU: OUTBOUND : map MEM */
 	ls_pcie_atu_outbound_set(pcie, pf, PCIE_ATU_TYPE_MEM,
 				 (u64)pcie_ep->addr_res.start +
-				 pf * CONFIG_SYS_PCI_MEMORY_SIZE,
-				 0, CONFIG_SYS_PCI_MEMORY_SIZE);
+				 pf * CFG_SYS_PCI_MEMORY_SIZE,
+				 0, CFG_SYS_PCI_MEMORY_SIZE);
 }
 
 /* BAR0 and BAR1 are 32bit BAR2 and BAR4 are 64bit */
drivers/pci/pcie_layerscape_gen4.c +3 -3
index 6ecdd6af408c..021c975869fd 100644
@@ -333,7 +333,7 @@ static void ls_pcie_g4_ep_setup_wins(struct ls_pcie_g4 *pcie, int pf)
 	if ((!pcie->sriov_support && pf > LS_G4_PF0) || pf > LS_G4_PF1)
 		return;
 
-	phys = CONFIG_SYS_PCI_EP_MEMORY_BASE + PCIE_BAR_SIZE * 4 * pf;
+	phys = CFG_SYS_PCI_EP_MEMORY_BASE + PCIE_BAR_SIZE * 4 * pf;
 	for (bar = 0; bar < PF_BAR_NUM; bar++) {
 		ls_pcie_g4_ep_inbound_win_set(pcie, pf, bar, phys);
 		phys += PCIE_BAR_SIZE;
@@ -342,8 +342,8 @@ static void ls_pcie_g4_ep_setup_wins(struct ls_pcie_g4 *pcie, int pf)
 	/* OUTBOUND: map MEM */
 	ls_pcie_g4_outbound_win_set(pcie, pf, PAB_AXI_TYPE_MEM,
 				    pcie->cfg_res.start +
-				    CONFIG_SYS_PCI_MEMORY_SIZE * pf, 0x0,
-				    CONFIG_SYS_PCI_MEMORY_SIZE);
+				    CFG_SYS_PCI_MEMORY_SIZE * pf, 0x0,
+				    CFG_SYS_PCI_MEMORY_SIZE);
 
 	val = ccsr_readl(pcie, PAB_AXI_AMAP_PCI_HDR_PARAM(pf));
 	val &= ~FUNC_NUM_PCIE_MASK;
drivers/pci/pcie_layerscape_gen4.h +4 -4
index 483eb538b5c5..805c23a7da0c 100644
@@ -11,12 +11,12 @@
 #include <pci.h>
 #include <linux/bitops.h>
 
-#ifndef CONFIG_SYS_PCI_MEMORY_SIZE
-#define CONFIG_SYS_PCI_MEMORY_SIZE		(4 * 1024 * 1024 * 1024ULL)
+#ifndef CFG_SYS_PCI_MEMORY_SIZE
+#define CFG_SYS_PCI_MEMORY_SIZE		(4 * 1024 * 1024 * 1024ULL)
 #endif
 
-#ifndef CONFIG_SYS_PCI_EP_MEMORY_BASE
-#define CONFIG_SYS_PCI_EP_MEMORY_BASE		CONFIG_SYS_LOAD_ADDR
+#ifndef CFG_SYS_PCI_EP_MEMORY_BASE
+#define CFG_SYS_PCI_EP_MEMORY_BASE		CONFIG_SYS_LOAD_ADDR
 #endif
 
 #define PCIE_PF_NUM				2
include/configs/MPC837XERDB.h +9 -9
index 059885ecb54f..0e70b2853b29 100644
@@ -177,15 +177,15 @@
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CONFIG_SYS_PCIE1_CFG_BASE	0xA0000000
-#define CONFIG_SYS_PCIE1_CFG_SIZE	0x08000000
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xA8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xB8000000
-
-#define CONFIG_SYS_PCIE2_CFG_BASE	0xC0000000
-#define CONFIG_SYS_PCIE2_CFG_SIZE	0x08000000
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xC8000000
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xD8000000
+#define CFG_SYS_PCIE1_CFG_BASE	0xA0000000
+#define CFG_SYS_PCIE1_CFG_SIZE	0x08000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0xA8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xB8000000
+
+#define CFG_SYS_PCIE2_CFG_BASE	0xC0000000
+#define CFG_SYS_PCIE2_CFG_SIZE	0x08000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xC8000000
+#define CFG_SYS_PCIE2_IO_PHYS	0xD8000000
 
 /*
  * TSEC
include/configs/MPC8548CDS.h +12 -12
index c29e63c54ed8..c59a37646f49 100644
@@ -254,31 +254,31 @@
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CONFIG_SYS_PCI1_MEM_VIRT	0x80000000
+#define CFG_SYS_PCI1_MEM_VIRT	0x80000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCI1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCI1_MEM_PHYS	0xc00000000ull
 #else
-#define CONFIG_SYS_PCI1_MEM_PHYS	0x80000000
+#define CFG_SYS_PCI1_MEM_PHYS	0x80000000
 #endif
-#define CONFIG_SYS_PCI1_IO_VIRT	0xe2000000
+#define CFG_SYS_PCI1_IO_VIRT	0xe2000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCI1_IO_PHYS 0xfe2000000ull
+#define CFG_SYS_PCI1_IO_PHYS 0xfe2000000ull
 #else
-#define CONFIG_SYS_PCI1_IO_PHYS	0xe2000000
+#define CFG_SYS_PCI1_IO_PHYS	0xe2000000
 #endif
 
 #ifdef CONFIG_PCIE1
-#define CONFIG_SYS_PCIE1_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE1_MEM_VIRT	0xa0000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE1_MEM_PHYS	0xc20000000ull
 #else
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xa0000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0xa0000000
 #endif
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xe3000000
+#define CFG_SYS_PCIE1_IO_VIRT	0xe3000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE1_IO_PHYS        0xfe3000000ull
+#define CFG_SYS_PCIE1_IO_PHYS        0xfe3000000ull
 #else
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xe3000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xe3000000
 #endif
 #endif
 
include/configs/P1010RDB.h +12 -12
index 05c097759f62..f87e7597ad04 100644
@@ -68,31 +68,31 @@
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
 /* controller 1, Slot 1, tgtid 1, Base address a000 */
-#define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define CFG_SYS_PCIE1_MEM_VIRT	0x80000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
 #else
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0x80000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0x80000000
 #endif
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xffc00000
+#define CFG_SYS_PCIE1_IO_VIRT	0xffc00000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xfffc00000ull
+#define CFG_SYS_PCIE1_IO_PHYS	0xfffc00000ull
 #else
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xffc00000
+#define CFG_SYS_PCIE1_IO_PHYS	0xffc00000
 #endif
 
 /* controller 2, Slot 2, tgtid 2, Base address 9000 */
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE2_MEM_VIRT	0xa0000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
 #else
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xa0000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xa0000000
 #endif
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xffc10000
+#define CFG_SYS_PCIE2_IO_VIRT	0xffc10000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xfffc10000ull
+#define CFG_SYS_PCIE2_IO_PHYS	0xfffc10000ull
 #else
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xffc10000
+#define CFG_SYS_PCIE2_IO_PHYS	0xffc10000
 #endif
 #endif
 
include/configs/P2041RDB.h +10 -10
index c83298107869..e996dbaa4de7 100644
@@ -234,20 +234,20 @@
  */
 
 /* controller 1, direct to uli, tgtid 3, Base address 20000 */
-#define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
+#define CFG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_IO_VIRT	0xf8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xff8000000ull
 
 /* controller 2, Slot 2, tgtid 2, Base address 201000 */
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
+#define CFG_SYS_PCIE2_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE2_IO_VIRT	0xf8010000
+#define CFG_SYS_PCIE2_IO_PHYS	0xff8010000ull
 
 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
-#define CONFIG_SYS_PCIE3_MEM_VIRT	0xc0000000
-#define CONFIG_SYS_PCIE3_MEM_PHYS	0xc40000000ull
+#define CFG_SYS_PCIE3_MEM_VIRT	0xc0000000
+#define CFG_SYS_PCIE3_MEM_PHYS	0xc40000000ull
 
 /* Qman/Bman */
 #define CONFIG_SYS_BMAN_NUM_PORTALS	10
include/configs/T102xRDB.h +10 -10
index e21639a6951b..6d6e334bf00f 100644
@@ -331,24 +331,24 @@
 #ifdef CONFIG_PCI
 /* controller 1, direct to uli, tgtid 3, Base address 20000 */
 #ifdef CONFIG_PCIE1
-#define	CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
-#define	CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
+#define	CFG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define	CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_IO_VIRT	0xf8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xff8000000ull
 #endif
 
 /* controller 2, Slot 2, tgtid 2, Base address 201000 */
 #ifdef CONFIG_PCIE2
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0x90000000
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc10000000ull
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
+#define CFG_SYS_PCIE2_MEM_VIRT	0x90000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc10000000ull
+#define CFG_SYS_PCIE2_IO_VIRT	0xf8010000
+#define CFG_SYS_PCIE2_IO_PHYS	0xff8010000ull
 #endif
 
 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
 #ifdef CONFIG_PCIE3
-#define CONFIG_SYS_PCIE3_MEM_VIRT	0xa0000000
-#define CONFIG_SYS_PCIE3_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE3_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE3_MEM_PHYS	0xc20000000ull
 #endif
 #endif	/* CONFIG_PCI */
 
include/configs/T104xRDB.h +12 -12
index a3d04882f0d6..423ba8161702 100644
@@ -307,30 +307,30 @@
 #ifdef CONFIG_PCI
 /* controller 1, direct to uli, tgtid 3, Base address 20000 */
 #ifdef CONFIG_PCIE1
-#define	CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
-#define	CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
+#define	CFG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define	CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_IO_VIRT	0xf8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xff8000000ull
 #endif
 
 /* controller 2, Slot 2, tgtid 2, Base address 201000 */
 #ifdef CONFIG_PCIE2
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0x90000000
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc10000000ull
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
+#define CFG_SYS_PCIE2_MEM_VIRT	0x90000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc10000000ull
+#define CFG_SYS_PCIE2_IO_VIRT	0xf8010000
+#define CFG_SYS_PCIE2_IO_PHYS	0xff8010000ull
 #endif
 
 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
 #ifdef CONFIG_PCIE3
-#define CONFIG_SYS_PCIE3_MEM_VIRT	0xa0000000
-#define CONFIG_SYS_PCIE3_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE3_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE3_MEM_PHYS	0xc20000000ull
 #endif
 
 /* controller 4, Base address 203000 */
 #ifdef CONFIG_PCIE4
-#define CONFIG_SYS_PCIE4_MEM_VIRT	0xb0000000
-#define CONFIG_SYS_PCIE4_MEM_PHYS	0xc30000000ull
+#define CFG_SYS_PCIE4_MEM_VIRT	0xb0000000
+#define CFG_SYS_PCIE4_MEM_PHYS	0xc30000000ull
 #endif
 #endif	/* CONFIG_PCI */
 
include/configs/T208xQDS.h +12 -12
index 72052be78a92..2efc2eb95c47 100644
@@ -345,24 +345,24 @@
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
 /* controller 1, direct to uli, tgtid 3, Base address 20000 */
-#define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
+#define CFG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_IO_VIRT	0xf8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xff8000000ull
 
 /* controller 2, Slot 2, tgtid 2, Base address 201000 */
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
+#define CFG_SYS_PCIE2_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE2_IO_VIRT	0xf8010000
+#define CFG_SYS_PCIE2_IO_PHYS	0xff8010000ull
 
 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
-#define CONFIG_SYS_PCIE3_MEM_VIRT	0xb0000000
-#define CONFIG_SYS_PCIE3_MEM_PHYS	0xc30000000ull
+#define CFG_SYS_PCIE3_MEM_VIRT	0xb0000000
+#define CFG_SYS_PCIE3_MEM_PHYS	0xc30000000ull
 
 /* controller 4, Base address 203000 */
-#define CONFIG_SYS_PCIE4_MEM_VIRT       0xc0000000
-#define CONFIG_SYS_PCIE4_MEM_PHYS	0xc40000000ull
+#define CFG_SYS_PCIE4_MEM_VIRT       0xc0000000
+#define CFG_SYS_PCIE4_MEM_PHYS	0xc40000000ull
 
 /* Qman/Bman */
 #ifndef CONFIG_NOBQFMAN
include/configs/T208xRDB.h +12 -12
index c798e4487a4d..ca8bfac0c69d 100644
@@ -299,24 +299,24 @@
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
 /* controller 1, direct to uli, tgtid 3, Base address 20000 */
-#define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
+#define CFG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_IO_VIRT	0xf8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xff8000000ull
 
 /* controller 2, Slot 2, tgtid 2, Base address 201000 */
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
+#define CFG_SYS_PCIE2_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE2_IO_VIRT	0xf8010000
+#define CFG_SYS_PCIE2_IO_PHYS	0xff8010000ull
 
 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
-#define CONFIG_SYS_PCIE3_MEM_VIRT	0xb0000000
-#define CONFIG_SYS_PCIE3_MEM_PHYS	0xc30000000ull
+#define CFG_SYS_PCIE3_MEM_VIRT	0xb0000000
+#define CFG_SYS_PCIE3_MEM_PHYS	0xc30000000ull
 
 /* controller 4, Base address 203000 */
-#define CONFIG_SYS_PCIE4_MEM_VIRT       0xc0000000
-#define CONFIG_SYS_PCIE4_MEM_PHYS	0xc40000000ull
+#define CFG_SYS_PCIE4_MEM_VIRT       0xc0000000
+#define CFG_SYS_PCIE4_MEM_PHYS	0xc40000000ull
 
 /* Qman/Bman */
 #ifndef CONFIG_NOBQFMAN
include/configs/T4240RDB.h +12 -12
index 5777df8e5076..091920dccfe6 100644
@@ -107,24 +107,24 @@
  */
 
 /* controller 1, direct to uli, tgtid 3, Base address 20000 */
-#define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
+#define CFG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_IO_VIRT	0xf8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xff8000000ull
 
 /* controller 2, Slot 2, tgtid 2, Base address 201000 */
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
+#define CFG_SYS_PCIE2_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE2_IO_VIRT	0xf8010000
+#define CFG_SYS_PCIE2_IO_PHYS	0xff8010000ull
 
 /* controller 3, Slot 1, tgtid 1, Base address 202000 */
-#define CONFIG_SYS_PCIE3_MEM_VIRT	0xc0000000
-#define CONFIG_SYS_PCIE3_MEM_PHYS	0xc40000000ull
+#define CFG_SYS_PCIE3_MEM_VIRT	0xc0000000
+#define CFG_SYS_PCIE3_MEM_PHYS	0xc40000000ull
 
 /* controller 4, Base address 203000 */
-#define CONFIG_SYS_PCIE4_MEM_BUS	0xe0000000
-#define CONFIG_SYS_PCIE4_MEM_PHYS	0xc60000000ull
+#define CFG_SYS_PCIE4_MEM_BUS	0xe0000000
+#define CFG_SYS_PCIE4_MEM_PHYS	0xc60000000ull
 
 /*
  * Miscellaneous configurable options
include/configs/kmcent2.h +4 -4
index 7af65737ff01..1df90def6733 100644
@@ -346,10 +346,10 @@ int get_scl(void);
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
 /* controller 1 */
-#define	CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
-#define	CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
+#define	CFG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define	CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_IO_VIRT	0xf8000000
+#define CFG_SYS_PCIE1_IO_PHYS	0xff8000000ull
 
 #define CONFIG_SYS_BMAN_NUM_PORTALS	10
 #define CONFIG_SYS_BMAN_MEM_BASE	0xf4000000
include/configs/p1_p2_rdb_pc.h +12 -12
index 44e608536fe8..6e8ac1b98df5 100644
@@ -343,31 +343,31 @@
  */
 
 /* controller 2, direct to uli, tgtid 2, Base address 9000 */
-#define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
+#define CFG_SYS_PCIE2_MEM_VIRT	0xa0000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
+#define CFG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
 #else
-#define CONFIG_SYS_PCIE2_MEM_PHYS	0xa0000000
+#define CFG_SYS_PCIE2_MEM_PHYS	0xa0000000
 #endif
-#define CONFIG_SYS_PCIE2_IO_VIRT	0xffc10000
+#define CFG_SYS_PCIE2_IO_VIRT	0xffc10000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xfffc10000ull
+#define CFG_SYS_PCIE2_IO_PHYS	0xfffc10000ull
 #else
-#define CONFIG_SYS_PCIE2_IO_PHYS	0xffc10000
+#define CFG_SYS_PCIE2_IO_PHYS	0xffc10000
 #endif
 
 /* controller 1, Slot 2, tgtid 1, Base address a000 */
-#define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
+#define CFG_SYS_PCIE1_MEM_VIRT	0x80000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
+#define CFG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
 #else
-#define CONFIG_SYS_PCIE1_MEM_PHYS	0x80000000
+#define CFG_SYS_PCIE1_MEM_PHYS	0x80000000
 #endif
-#define CONFIG_SYS_PCIE1_IO_VIRT	0xffc00000
+#define CFG_SYS_PCIE1_IO_VIRT	0xffc00000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xfffc00000ull
+#define CFG_SYS_PCIE1_IO_PHYS	0xfffc00000ull
 #else
-#define CONFIG_SYS_PCIE1_IO_PHYS	0xffc00000
+#define CFG_SYS_PCIE1_IO_PHYS	0xffc00000
 #endif
 #endif /* CONFIG_PCI */
 
include/configs/socrates.h +2 -2
index 9b106fc1c97e..a60ac6d1a3c5 100644
@@ -109,8 +109,8 @@
  * Memory space is mapped 1-1.
  */
 
-#define CONFIG_SYS_PCI1_MEM_PHYS	0x80000000
-#define CONFIG_SYS_PCI1_IO_PHYS	0xE2000000
+#define CFG_SYS_PCI1_MEM_PHYS	0x80000000
+#define CFG_SYS_PCI1_IO_PHYS	0xE2000000
 
 #define CONFIG_TSEC1	1
 #define CONFIG_TSEC1_NAME	"TSEC0"
Signature · 1 line
2.25.1
Reviewed-by on v1 9/17
#21 lore raw

Re: [PATCH 09/17] global: Move remaining CONFIG_SYS_PCI* to CFG_SYS_PCI*

Quoted 43 lines · Tom Rini

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_PCI and CONFIG_SYS_PCIE namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace.

---
 arch/arm/cpu/armv7/ls102xa/cpu.c              | 16 +++----
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c       | 46 +++++++++----------
 .../arm/include/asm/arch-fsl-layerscape/cpu.h | 24 +++++-----
 .../asm/arch-fsl-layerscape/immap_lsch2.h     | 10 ++--
 .../asm/arch-fsl-layerscape/immap_lsch3.h     | 34 +++++++-------
 arch/arm/include/asm/arch-ls102xa/config.h    | 24 +++++-----
 arch/m68k/include/asm/immap.h                 |  8 ++--
 arch/powerpc/cpu/mpc83xx/pcie.c               | 10 ++--
 arch/powerpc/cpu/mpc85xx/liodn.c              |  2 +-
 arch/powerpc/include/asm/fsl_pci.h            | 32 ++++++-------
 arch/powerpc/include/asm/immap_85xx.h         |  4 +-
 board/freescale/common/p_corenet/tlb.c        | 12 ++---
 board/freescale/mpc8548cds/tlb.c              |  6 +--
 board/freescale/p1010rdb/tlb.c                |  4 +-
 board/freescale/p1_p2_rdb_pc/tlb.c            |  4 +-
 board/freescale/t102xrdb/tlb.c                |  4 +-
 board/freescale/t104xrdb/tlb.c                |  4 +-
 board/freescale/t208xqds/tlb.c                | 10 ++--
 board/freescale/t208xrdb/tlb.c                | 10 ++--
 board/freescale/t4rdb/tlb.c                   | 12 ++---
 board/keymile/kmcent2/tlb.c                   |  4 +-
 board/socrates/tlb.c                          |  4 +-
 common/fdt_support.c                          |  4 +-
 drivers/pci/pci_auto.c                        |  8 ++--
 drivers/pci/pcie_fsl.c                        | 16 +++----
 drivers/pci/pcie_fsl.h                        | 12 ++---
 drivers/pci/pcie_layerscape.h                 | 16 +++----
 drivers/pci/pcie_layerscape_ep.c              |  6 +--
 drivers/pci/pcie_layerscape_gen4.c            |  6 +--
 drivers/pci/pcie_layerscape_gen4.h            |  8 ++--
 include/configs/MPC837XERDB.h                 | 18 ++++----
 include/configs/MPC8548CDS.h                  | 24 +++++-----
 include/configs/P1010RDB.h                    | 24 +++++-----
 include/configs/P2041RDB.h                    | 20 ++++----
 include/configs/T102xRDB.h                    | 20 ++++----
Quoted 9 lines
 include/configs/T104xRDB.h                    | 24 +++++-----
 include/configs/T208xQDS.h                    | 24 +++++-----
 include/configs/T208xRDB.h                    | 24 +++++-----
 include/configs/T4240RDB.h                    | 24 +++++-----
 include/configs/kmcent2.h                     |  8 ++--
 include/configs/p1_p2_rdb_pc.h                | 24 +++++-----
 include/configs/socrates.h                    |  4 +-
 42 files changed, 299 insertions(+), 299 deletions(-)
author
#22 lore raw

PATCH 10/17 Convert CONFIG_SYS_PMAN et al to Kconfig

In reply to Tom Rini

This converts the following to Kconfig:
CONFIG_NOBQFMAN
CONFIG_SYS_DPAA_DCE
CONFIG_SYS_DPAA_FMAN
CONFIG_SYS_DPAA_PME
CONFIG_SYS_DPAA_RMAN
CONFIG_SYS_PMAN

---
 arch/Kconfig.nxp                              |  3 ++
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig     |  2 ++
 .../armv8/fsl-layerscape/fsl_lsch2_speed.c    |  8 ++---
 arch/arm/cpu/armv8/fsl-layerscape/icid.c      |  2 +-
 .../arm/cpu/armv8/fsl-layerscape/ls1043_ids.c |  2 +-
 .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c |  2 +-
 arch/powerpc/cpu/mpc85xx/Kconfig              | 35 +++++++++++++++++++
 include/configs/P2041RDB.h                    |  4 ---
 include/configs/T102xRDB.h                    |  2 --
 include/configs/T104xRDB.h                    |  3 --
 include/configs/T208xQDS.h                    |  6 ----
 include/configs/T208xRDB.h                    |  6 ----
 include/configs/T4240RDB.h                    |  6 ----
 include/configs/kmcent2.h                     |  3 --
 include/configs/ls1043a_common.h              |  1 -
 include/configs/ls1046a_common.h              |  1 -
 16 files changed, 45 insertions(+), 41 deletions(-)
arch/Kconfig.nxp +3 -0
index 8c5a6f63a9a5..805fe934a1f5 100644
@@ -251,3 +251,6 @@ config QIXIS_I2C_ACCESS
 config HAS_FSL_DR_USB
 	def_bool y
 	depends on USB_EHCI_HCD && PPC
+
+config SYS_DPAA_FMAN
+	bool
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +2 -0
index ebca11d17419..2862257e1f2c 100644
@@ -69,6 +69,7 @@ config ARCH_LS1043A
 	select GICV2
 	select HAS_FSL_XHCI_USB if USB_HOST
 	select SKIP_LOWLEVEL_INIT
+	select SYS_DPAA_FMAN
 	select SYS_FSL_SRDS_1
 	select SYS_HAS_SERDES
 	select SYS_FSL_DDR
@@ -106,6 +107,7 @@ config ARCH_LS1046A
 	select GICV2
 	select HAS_FSL_XHCI_USB if USB_HOST
 	select SKIP_LOWLEVEL_INIT
+	select SYS_DPAA_FMAN
 	select SYS_FSL_SRDS_1
 	select SYS_HAS_SERDES
 	select SYS_FSL_DDR
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c +2 -6
index 6440ce714fd1..f18407b6d3bb 100644
@@ -24,11 +24,7 @@ void get_sys_info(struct sys_info *sys_info)
 /* rcw_tmp is needed to get FMAN clock, or to get cluster group A
  * mux 2 clock for LS1043A/LS1046A.
  */
-#if defined(CONFIG_SYS_DPAA_FMAN) || \
-	    defined(CONFIG_ARCH_LS1046A) || \
-	    defined(CONFIG_ARCH_LS1043A)
-	u32 rcw_tmp;
-#endif
+	__maybe_unused u32 rcw_tmp;
 	struct ccsr_clk *clk = (void *)(CFG_SYS_FSL_CLK_ADDR);
 	unsigned int cpu;
 	const u8 core_cplx_pll[8] = {
@@ -96,7 +92,7 @@ void get_sys_info(struct sys_info *sys_info)
 
 #define HWA_CGA_M1_CLK_SEL	0xe0000000
 #define HWA_CGA_M1_CLK_SHIFT	29
-#ifdef CONFIG_SYS_DPAA_FMAN
+#if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD)
 	rcw_tmp = in_be32(&gur->rcwsr[7]);
 	switch ((rcw_tmp & HWA_CGA_M1_CLK_SEL) >> HWA_CGA_M1_CLK_SHIFT) {
 	case 2:
arch/arm/cpu/armv8/fsl-layerscape/icid.c +1 -1
index e972603f24f8..ad20d71717b3 100644
@@ -41,7 +41,7 @@ void set_icids(void)
 	/* setup general icid offsets */
 	set_icid(icid_tbl, icid_tbl_sz);
 
-#ifdef CONFIG_SYS_DPAA_FMAN
+#if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD)
 	set_fman_icids(fman_icid_tbl, fman_icid_tbl_sz);
 #endif
 }
arch/arm/cpu/armv8/fsl-layerscape/ls1043_ids.c +1 -1
index 3bd993bebfbc..4880a313ea6a 100644
@@ -59,7 +59,7 @@ struct icid_id_table icid_tbl[] = {
 
 int icid_tbl_sz = ARRAY_SIZE(icid_tbl);
 
-#ifdef CONFIG_SYS_DPAA_FMAN
+#if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD)
 struct fman_icid_id_table fman_icid_tbl[] = {
 	/* port id, icid */
 	SET_FMAN_ICID_ENTRY(0x02, FSL_DPAA1_STREAM_ID_END),
arch/arm/cpu/armv8/fsl-layerscape/ls1046_ids.c +1 -1
index abd847b5be02..e47d3af85e07 100644
@@ -58,7 +58,7 @@ struct icid_id_table icid_tbl[] = {
 
 int icid_tbl_sz = ARRAY_SIZE(icid_tbl);
 
-#ifdef CONFIG_SYS_DPAA_FMAN
+#if defined(CONFIG_SYS_DPAA_FMAN) && !defined(CONFIG_SPL_BUILD)
 struct fman_icid_id_table fman_icid_tbl[] = {
 	/* port id, icid */
 	SET_FMAN_ICID_ENTRY(0x02, FSL_DPAA1_STREAM_ID_END),
arch/powerpc/cpu/mpc85xx/Kconfig +35 -0
index 24d3f1f20c25..f2361560e9ad 100644
@@ -252,6 +252,8 @@ config TARGET_KMCENT2
 	bool "Support kmcent2"
 	select VENDOR_KM
 	select FSL_CORENET
+	select SYS_DPAA_FMAN
+	select SYS_DPAA_PME
 	select SYS_L3_SIZE_256KB
 
 endchoice
@@ -618,6 +620,9 @@ config ARCH_P2041
 	select E500MC
 	select FSL_LAW
 	select SYS_CACHE_SHIFT_6
+	select SYS_DPAA_FMAN
+	select SYS_DPAA_PME
+	select SYS_DPAA_RMAN
 	select SYS_FSL_ERRATUM_A004510
 	select SYS_FSL_ERRATUM_A004849
 	select SYS_FSL_ERRATUM_A005275
@@ -762,6 +767,7 @@ config ARCH_T1024
 	select FSL_CORENET
 	select FSL_LAW
 	select SYS_CACHE_SHIFT_6
+	select SYS_DPAA_FMAN
 	select SYS_FSL_DDR_VER_50
 	select SYS_FSL_ERRATUM_A008378
 	select SYS_FSL_ERRATUM_A008109
@@ -792,6 +798,8 @@ config ARCH_T1040
 	select FSL_CORENET
 	select FSL_LAW
 	select SYS_CACHE_SHIFT_6
+	select SYS_DPAA_FMAN
+	select SYS_DPAA_PME
 	select SYS_FSL_DDR_VER_50
 	select SYS_FSL_ERRATUM_A008044
 	select SYS_FSL_ERRATUM_A008378
@@ -822,6 +830,8 @@ config ARCH_T1042
 	select FSL_CORENET
 	select FSL_LAW
 	select SYS_CACHE_SHIFT_6
+	select SYS_DPAA_FMAN
+	select SYS_DPAA_PME
 	select SYS_FSL_DDR_VER_50
 	select SYS_FSL_ERRATUM_A008044
 	select SYS_FSL_ERRATUM_A008378
@@ -851,6 +861,10 @@ config ARCH_T2080
 	select FSL_CORENET
 	select FSL_LAW
 	select SYS_CACHE_SHIFT_6
+	select SYS_DPAA_DCE if !NOBQFMAN
+	select SYS_DPAA_FMAN if !NOBQFMAN
+	select SYS_DPAA_PME if !NOBQFMAN
+	select SYS_DPAA_RMAN if !NOBQFMAN
 	select SYS_FSL_DDR_VER_47
 	select SYS_FSL_ERRATUM_A006379
 	select SYS_FSL_ERRATUM_A006593
@@ -871,6 +885,7 @@ config ARCH_T2080
 	select SYS_FSL_SRIO_LIODN
 	select SYS_FSL_QMAN_V3 if SYS_DPAA_QBMAN
 	select SYS_FSL_USB_DUAL_PHY_ENABLE
+	select SYS_PMAN if !NOBQFMAN
 	select SYS_PPC64
 	select FSL_IFC
 	imply CMD_SATA
@@ -886,6 +901,10 @@ config ARCH_T4240
 	select FSL_CORENET
 	select FSL_LAW
 	select SYS_CACHE_SHIFT_6
+	select SYS_DPAA_DCE if !NOBQFMAN
+	select SYS_DPAA_FMAN if !NOBQFMAN
+	select SYS_DPAA_PME if !NOBQFMAN
+	select SYS_DPAA_RMAN if !NOBQFMAN
 	select SYS_FSL_DDR_VER_47
 	select SYS_FSL_ERRATUM_A004468
 	select SYS_FSL_ERRATUM_A005871
@@ -907,6 +926,7 @@ config ARCH_T4240
 	select SYS_FSL_SRIO_LIODN
 	select SYS_FSL_QMAN_V3 if SYS_DPAA_QBMAN
 	select SYS_FSL_USB_DUAL_PHY_ENABLE
+	select SYS_PMAN if !NOBQFMAN
 	select SYS_PPC64
 	select FSL_IFC
 	imply CMD_SATA
@@ -947,6 +967,9 @@ config E6500
 	help
 		Enable PowerPC E6500 core
 
+config NOBQFMAN
+	bool
+
 config FSL_LAW
 	bool
 	help
@@ -1019,6 +1042,15 @@ config SYS_CCSRBAR_DEFAULT
 		if changed by pre-boot regime. The value here must match
 		the current value in SoC. If not sure, do not change.
 
+config SYS_DPAA_PME
+	bool
+
+config SYS_DPAA_DCE
+	bool
+
+config SYS_DPAA_RMAN
+	bool
+
 config A003399_NOR_WORKAROUND
 	bool
 	help
@@ -1195,6 +1227,9 @@ config FSL_PCIE_DISABLE_ASPM
 config FSL_PCIE_RESET
 	bool
 
+config SYS_PMAN
+	bool
+
 config SYS_FSL_RAID_ENGINE
 	bool
 
include/configs/P2041RDB.h +0 -4
index e996dbaa4de7..8c7b877bfb92 100644
@@ -36,7 +36,6 @@
 #define CONFIG_SRIO1			/* SRIO port 1 */
 #define CONFIG_SRIO2			/* SRIO port 2 */
 #define CONFIG_SRIO_PCIE_BOOT_MASTER
-#define CONFIG_SYS_DPAA_RMAN		/* RMan */
 
 #ifndef __ASSEMBLY__
 #include <linux/stringify.h>
@@ -281,9 +280,6 @@
 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
 #define CONFIG_SYS_QMAN_SWP_ISDR_REG	0xE08
 
-#define CONFIG_SYS_DPAA_FMAN
-#define CONFIG_SYS_DPAA_PME
-
 #ifdef CONFIG_FMAN_ENET
 #define CONFIG_SYS_FM1_DTSEC1_PHY_ADDR	0x2
 #define CONFIG_SYS_FM1_DTSEC2_PHY_ADDR	0x3
include/configs/T102xRDB.h +0 -2
index 6d6e334bf00f..154b2f174afb 100644
@@ -395,8 +395,6 @@
 					CONFIG_SYS_QMAN_CENA_SIZE)
 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
 #define CONFIG_SYS_QMAN_SWP_ISDR_REG	0xE08
-
-#define CONFIG_SYS_DPAA_FMAN
 #endif /* CONFIG_NOBQFMAN */
 
 #ifdef CONFIG_SYS_DPAA_FMAN
include/configs/T104xRDB.h +0 -3
index 423ba8161702..847cf65b4092 100644
@@ -366,9 +366,6 @@
 					CONFIG_SYS_QMAN_CENA_SIZE)
 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
 #define CONFIG_SYS_QMAN_SWP_ISDR_REG	0xE08
-
-#define CONFIG_SYS_DPAA_FMAN
-#define CONFIG_SYS_DPAA_PME
 #endif /* CONFIG_NOBQFMAN */
 
 #ifdef CONFIG_FMAN_ENET
include/configs/T208xQDS.h +0 -6
index 2efc2eb95c47..b49c26477684 100644
@@ -388,12 +388,6 @@
 					CONFIG_SYS_QMAN_CENA_SIZE)
 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
 #define CONFIG_SYS_QMAN_SWP_ISDR_REG	0xE08
-
-#define CONFIG_SYS_DPAA_FMAN
-#define CONFIG_SYS_DPAA_PME
-#define CONFIG_SYS_PMAN
-#define CONFIG_SYS_DPAA_DCE
-#define CONFIG_SYS_DPAA_RMAN		/* RMan */
 #endif /* CONFIG_NOBQFMAN */
 
 #ifdef CONFIG_SYS_DPAA_FMAN
include/configs/T208xRDB.h +0 -6
index ca8bfac0c69d..aae41a339254 100644
@@ -342,12 +342,6 @@
 					CONFIG_SYS_QMAN_CENA_SIZE)
 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
 #define CONFIG_SYS_QMAN_SWP_ISDR_REG	0xE08
-
-#define CONFIG_SYS_DPAA_FMAN
-#define CONFIG_SYS_DPAA_PME
-#define CONFIG_SYS_PMAN
-#define CONFIG_SYS_DPAA_DCE
-#define CONFIG_SYS_DPAA_RMAN		/* RMan */
 #endif /* CONFIG_NOBQFMAN */
 
 #ifdef CONFIG_SYS_DPAA_FMAN
include/configs/T4240RDB.h +0 -6
index 091920dccfe6..9dc45e397f9b 100644
@@ -340,12 +340,6 @@
 					CONFIG_SYS_QMAN_CENA_SIZE)
 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
 #define CONFIG_SYS_QMAN_SWP_ISDR_REG	0xE08
-
-#define CONFIG_SYS_DPAA_FMAN
-#define CONFIG_SYS_DPAA_PME
-#define CONFIG_SYS_PMAN
-#define CONFIG_SYS_DPAA_DCE
-#define CONFIG_SYS_DPAA_RMAN
 #endif /* CONFIG_NOBQFMAN */
 
 #ifdef CONFIG_SYS_DPAA_FMAN
include/configs/kmcent2.h +0 -3
index 1df90def6733..c8423fdfb0ab 100644
@@ -372,9 +372,6 @@ int get_scl(void);
 #define CONFIG_SYS_QMAN_CINH_SIZE       (CONFIG_SYS_QMAN_MEM_SIZE >> 1)
 #define CONFIG_SYS_QMAN_SWP_ISDR_REG	0xE08
 
-#define CONFIG_SYS_DPAA_FMAN
-#define CONFIG_SYS_DPAA_PME
-
 /* Qman / Bman */
 /* RGMII (FM1@DTESC5) is local managemant interface */
 #define CONFIG_SYS_RGMII2_PHY_ADDR             0x11
include/configs/ls1043a_common.h +0 -1
index 6fc509af232c..df6338298b48 100644
@@ -103,7 +103,6 @@
 
 /* FMan ucode */
 #ifndef SPL_NO_FMAN
-#define CONFIG_SYS_DPAA_FMAN
 #ifdef CONFIG_SYS_DPAA_FMAN
 #define CONFIG_SYS_FM_MURAM_SIZE	0x60000
 #endif
include/configs/ls1046a_common.h +0 -1
index 3934fbbb41d1..b09588f4796d 100644
@@ -67,7 +67,6 @@
 
 /* FMan ucode */
 #ifndef SPL_NO_FMAN
-#define CONFIG_SYS_DPAA_FMAN
 #ifdef CONFIG_SYS_DPAA_FMAN
 #define CONFIG_SYS_FM_MURAM_SIZE	0x60000
 #endif
Signature · 1 line
2.25.1
Reviewed-by on v1 10/17
#23 lore raw

Re: [PATCH 10/17] Convert CONFIG_SYS_PMAN et al to Kconfig

Quoted 20 lines · Tom Rini

This converts the following to Kconfig:
CONFIG_NOBQFMAN
CONFIG_SYS_DPAA_DCE
CONFIG_SYS_DPAA_FMAN
CONFIG_SYS_DPAA_PME
CONFIG_SYS_DPAA_RMAN
CONFIG_SYS_PMAN

---
 arch/Kconfig.nxp                              |  3 ++
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig     |  2 ++
 .../armv8/fsl-layerscape/fsl_lsch2_speed.c    |  8 ++---
 arch/arm/cpu/armv8/fsl-layerscape/icid.c      |  2 +-
 .../arm/cpu/armv8/fsl-layerscape/ls1043_ids.c |  2 +-
 .../arm/cpu/armv8/fsl-layerscape/ls1046_ids.c |  2 +-
 arch/powerpc/cpu/mpc85xx/Kconfig              | 35 +++++++++++++++++++
 include/configs/P2041RDB.h                    |  4 ---
 include/configs/T102xRDB.h                    |  2 --
Quoted 9 lines
 include/configs/T104xRDB.h                    |  3 --
 include/configs/T208xQDS.h                    |  6 ----
 include/configs/T208xRDB.h                    |  6 ----
 include/configs/T4240RDB.h                    |  6 ----
 include/configs/kmcent2.h                     |  3 --
 include/configs/ls1043a_common.h              |  1 -
 include/configs/ls1046a_common.h              |  1 -
 16 files changed, 45 insertions(+), 41 deletions(-)
author
#24 lore raw

PATCH 11/17 spl: Migrate SYS_SATA_FAT_BOOT_PARTITION to Kconfig

In reply to Tom Rini

This moves SYS_SATA_FAT_BOOT_PARTITION to Kconfig and enforces the current default via Kconfig rather than C code.

---
 common/spl/Kconfig         | 5 +++++
 common/spl/spl_sata.c      | 4 ----
 include/configs/imx6_spl.h | 5 -----
 3 files changed, 5 insertions(+), 9 deletions(-)
common/spl/Kconfig +5 -0
index 05181bdba3e1..512c1bc721ac 100644
@@ -1232,6 +1232,11 @@ config SPL_SATA
 	  expense and power consumption. This enables loading from SATA
 	  using a configured device.
 
+config SYS_SATA_FAT_BOOT_PARTITION
+	int "Partition on the SATA disk to load U-Boot from"
+	depends on SPL_SATA && SPL_FS_FAT
+	default 1
+
 config SPL_SATA_RAW_U_BOOT_USE_SECTOR
 	bool "SATA raw mode: by sector"
 	depends on SPL_SATA
common/spl/spl_sata.c +0 -4
index 9ae02730685a..12397f0ae17e 100644
@@ -17,10 +17,6 @@
 #include <fat.h>
 #include <image.h>
 
-#ifndef CONFIG_SYS_SATA_FAT_BOOT_PARTITION
-#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION	1
-#endif
-
 #ifndef CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR
 /* Dummy value to make the compiler happy */
 #define CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR 0x100
include/configs/imx6_spl.h +0 -5
index 3afe418b67dc..f34988fdd74c 100644
@@ -10,11 +10,6 @@
 
 /* MMC support */
 
-/* SATA support */
-#if defined(CONFIG_SPL_SATA)
-#define CONFIG_SYS_SATA_FAT_BOOT_PARTITION	1
-#endif
-
 #endif
 
 #endif
Signature · 1 line
2.25.1
Reviewed-by on v1 11/17
#25 lore raw

Re: [PATCH 11/17] spl: Migrate SYS_SATA_FAT_BOOT_PARTITION to Kconfig

Quoted 10 lines · Tom Rini

This moves SYS_SATA_FAT_BOOT_PARTITION to Kconfig and enforces the current default via Kconfig rather than C code.

---
 common/spl/Kconfig         | 5 +++++
 common/spl/spl_sata.c      | 4 ----
 include/configs/imx6_spl.h | 5 -----
 3 files changed, 5 insertions(+), 9 deletions(-)
author
#26 lore raw

PATCH 12/17 imx6/imx7: Remove now empty imx6_spl.h and imx7_spl.h

In reply to Tom Rini

There are now no flags being set in these files, so remove them.

---
 include/configs/apalis_imx6.h            |  4 ----
 include/configs/brppt2.h                 |  5 -----
 include/configs/cl-som-imx7.h            |  3 ---
 include/configs/cm_fx6.h                 |  3 ---
 include/configs/colibri_imx6.h           |  4 ----
 include/configs/dart_6ul.h               |  3 ---
 include/configs/dh_imx6.h                |  3 ---
 include/configs/display5.h               |  2 --
 include/configs/el6x_common.h            |  4 ----
 include/configs/embestmx6boards.h        |  6 ------
 include/configs/ge_b1x5v2.h              |  2 --
 include/configs/gw_ventana.h             |  1 -
 include/configs/imx6-engicam.h           |  5 -----
 include/configs/imx6_logic.h             |  4 ----
 include/configs/imx6_spl.h               | 15 ---------------
 include/configs/imx6dl-mamoj.h           |  3 ---
 include/configs/imx6q-bosch-acc.h        |  1 -
 include/configs/imx6ulz_smm_m2.h         |  3 ---
 include/configs/imx7-cm.h                |  3 ---
 include/configs/imx7_spl.h               | 19 -------------------
 include/configs/kontron-sl-mx6ul.h       |  3 ---
 include/configs/kp_imx6q_tpc.h           |  3 ---
 include/configs/liteboard.h              |  3 ---
 include/configs/mccmon6.h                |  2 --
 include/configs/mx6cuboxi.h              |  2 --
 include/configs/mx6memcal.h              |  1 -
 include/configs/mx6sabreauto.h           |  4 ----
 include/configs/mx6sabresd.h             |  4 ----
 include/configs/mx6slevk.h               |  4 ----
 include/configs/mx6sxsabresd.h           |  4 ----
 include/configs/mx6ul_14x14_evk.h        |  3 ---
 include/configs/mys_6ulx.h               |  3 ---
 include/configs/novena.h                 |  3 ---
 include/configs/npi_imx6ull.h            |  3 ---
 include/configs/opos6uldev.h             |  4 ----
 include/configs/pcl063.h                 |  3 ---
 include/configs/pcl063_ull.h             |  3 ---
 include/configs/pcm058.h                 |  4 ----
 include/configs/pico-imx6.h              |  8 --------
 include/configs/pico-imx6ul.h            |  7 -------
 include/configs/pico-imx7d.h             |  8 --------
 include/configs/somlabs_visionsom_6ull.h |  4 ----
 include/configs/tqma6.h                  |  7 -------
 include/configs/udoo.h                   |  2 --
 include/configs/udoo_neo.h               |  2 --
 include/configs/vining_2000.h            |  4 ----
 include/configs/wandboard.h              |  2 --
 include/configs/xpress.h                 |  3 ---
 48 files changed, 196 deletions(-)
 delete mode 100644 include/configs/imx6_spl.h
 delete mode 100644 include/configs/imx7_spl.h
include/configs/apalis_imx6.h +0 -4
index 192c9cf0c30c..30d32d27e3dc 100644
@@ -15,10 +15,6 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/mach-imx/gpio.h>
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
 /* MMC Configs */
include/configs/brppt2.h +0 -5
index 0c7fe5f3abba..bdedf7ea2d78 100644
@@ -86,9 +86,4 @@ BUR_COMMON_ENV \
 /* USB Configs */
 #define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
 
-/* SPL */
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-
-#endif	/* CONFIG_SPL */
 #endif	/* __CONFIG_BRPP2_IMX6_H */
include/configs/cl-som-imx7.h +0 -3
index cbf85341a64d..fc45e597f6d1 100644
@@ -101,7 +101,4 @@
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
 #define CONFIG_MXC_USB_FLAGS   0
 
-/* SPL */
-#include "imx7_spl.h"
-
 #endif	/* __CONFIG_H */
include/configs/cm_fx6.h +0 -3
index 2cb09fa30da2..25443629e208 100644
@@ -143,9 +143,6 @@
 
 /* misc */
 
-/* SPL */
-#include "imx6_spl.h"
-
 /* Display */
 #define CONFIG_IMX_HDMI
 
include/configs/colibri_imx6.h +0 -4
index 14fdf5b50e66..68d923c1ae19 100644
@@ -15,10 +15,6 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/mach-imx/gpio.h>
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
 /* MMC Configs */
include/configs/dart_6ul.h +0 -3
index 6079596caec0..b944d50663ce 100644
@@ -10,9 +10,6 @@
 #include <linux/stringify.h>
 #include "mx6_common.h"
 
-/* SPL options */
-#include "imx6_spl.h"
-
 /* NAND pin conflicts with usdhc2 */
 #ifdef CONFIG_CMD_NAND
 #define CFG_SYS_FSL_USDHC_NUM        1
include/configs/dh_imx6.h +0 -3
index 54b2192b4a83..e694dd7551ae 100644
@@ -21,9 +21,6 @@
  * 0x12_0000-0x1f_ffff ... UNUSED
  */
 
-/* SPL */
-#include "imx6_spl.h"			/* common IMX6 SPL configuration */
-
 /* Miscellaneous configurable options */
 
 /* MMC Configs */
include/configs/display5.h +0 -2
index eb65f17cbe48..0e5ecab9feb2 100644
@@ -34,8 +34,6 @@
 #define CONFIG_SYS_SPI_ARGS_OFFS        0x140000
 #define CONFIG_SYS_SPI_ARGS_SIZE        0x10000
 
-#include "imx6_spl.h"
-
 #define CONFIG_MXC_UART_BASE		UART5_BASE
 
 /* I2C Configs */
include/configs/el6x_common.h +0 -4
index affe20a10198..16d2648e11f3 100644
@@ -12,10 +12,6 @@
 
 #include "mx6_common.h"
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 /* MMC Configs */
 #define CFG_SYS_FSL_ESDHC_ADDR	0
 #define CFG_SYS_FSL_USDHC_NUM	2
include/configs/embestmx6boards.h +0 -6
index 555239b8e813..a4891ddbc4ff 100644
@@ -49,12 +49,6 @@
 
 #include "mx6_common.h"
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-/* RiOTboard */
-
-#endif
-
 /* 256M RAM (minimum), 32M uncompressed kernel, 16M compressed kernel, 1M fdt,
  * 1M script, 1M pxe and the ramdisk at the end */
 #define MEM_LAYOUT_ENV_SETTINGS \
include/configs/ge_b1x5v2.h +0 -2
index 176f80bb09b7..c862f15ee2b4 100644
@@ -12,8 +12,6 @@
 
 #include "mx6_common.h"
 
-#include "imx6_spl.h"
-
 /* PWM */
 #define CONFIG_IMX6_PWM_PER_CLK		66000000
 
include/configs/gw_ventana.h +0 -1
index a9ef35ebeb6c..645ca162a35a 100644
@@ -13,7 +13,6 @@
 
 /* Falcon Mode - MMC support: args@1MB kernel@2MB */
 
-#include "imx6_spl.h"                  /* common IMX6 SPL configuration */
 #include "mx6_common.h"
 
 /* Serial */
include/configs/imx6-engicam.h +0 -5
index e430efad42e3..b8eb5c82cf7e 100644
@@ -142,9 +142,4 @@
 # define CONFIG_IMX_VIDEO_SKIP
 #endif
 
-/* SPL */
-#ifdef CONFIG_SPL
-# include "imx6_spl.h"
-#endif
-
 #endif /* __IMX6_ENGICAM_CONFIG_H */
include/configs/imx6_logic.h +0 -4
index 7760c8c418a1..6b822e725058 100644
@@ -11,10 +11,6 @@
 #define CONFIG_MXC_UART_BASE   UART1_BASE
 #define CONSOLE_DEV            "ttymxc0"
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #include "mx6_common.h"
 
 /* MMC Configs */
include/configs/imx6_spl.h deleted +0 -15
deleted file mode 100644
index f34988fdd74c..000000000000
@@ -1,15 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2014 Gateworks Corporation
- * Author: Tim Harvey <[email protected]>
- */
-#ifndef __IMX6_SPL_CONFIG_H
-#define __IMX6_SPL_CONFIG_H
-
-#ifdef CONFIG_SPL
-
-/* MMC support */
-
-#endif
-
-#endif
include/configs/imx6dl-mamoj.h +0 -3
index 909453cd66f4..f7f8f33ed898 100644
@@ -59,7 +59,4 @@
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE	IRAM_SIZE
 
-/* SPL */
-#include "imx6_spl.h"
-
 #endif /* __IMX6DL_MAMOJ_CONFIG_H */
include/configs/imx6q-bosch-acc.h +0 -1
index 5025ad9d9f2e..15171d7ad67b 100644
@@ -91,7 +91,6 @@
 
 /* SPL */
 #ifdef CONFIG_SPL
-#include "imx6_spl.h"
 
 #ifdef CONFIG_SPL_BUILD
 #define CFG_SYS_FSL_USDHC_NUM 2
include/configs/imx6ulz_smm_m2.h +0 -3
index d42eb750d01b..70b4b84215d3 100644
@@ -12,9 +12,6 @@
 #include <linux/sizes.h>
 #include <linux/stringify.h>
 
-/* SPL options */
-#include "imx6_spl.h"
-
 #define CONFIG_MXC_UART_BASE		UART4_BASE
 
 #ifndef CONFIG_SPL_BUILD
include/configs/imx7-cm.h +0 -3
index caa6a11d4077..c6db5e943eea 100644
@@ -83,7 +83,4 @@
 
 #define CONFIG_USBD_HS
 
-/* SPL */
-#include "imx7_spl.h"
-
 #endif	/* __CONFIG_H */
include/configs/imx7_spl.h deleted +0 -19
deleted file mode 100644
index 362b98075f05..000000000000
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * SPL definitions for the i.MX7 SPL
- *
- * (C) Copyright 2017 CompuLab, Ltd. http://www.compulab.com
- *
- * Author: Uri Mashiach <[email protected]>
- */
-
-#ifndef __IMX7_SPL_CONFIG_H
-#define __IMX7_SPL_CONFIG_H
-
-#ifdef CONFIG_SPL
-
-/* MMC support */
-
-#endif /* CONFIG_SPL */
-
-#endif /* __IMX7_SPL_CONFIG_H */
include/configs/kontron-sl-mx6ul.h +0 -3
index d3447a80ca56..b3e1fc2a864e 100644
@@ -11,9 +11,6 @@
 #include <linux/sizes.h>
 
 #include "mx6_common.h"
-#ifdef CONFIG_SPL_BUILD
-#include "imx6_spl.h"
-#endif
 
 /* RAM */
 #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
include/configs/kp_imx6q_tpc.h +0 -3
index 1823a7939882..b0e49ad6df07 100644
@@ -12,9 +12,6 @@
 
 #include "mx6_common.h"
 
-/* SPL */
-#include "imx6_spl.h"			/* common IMX6 SPL configuration */
-
 /* Miscellaneous configurable options */
 
 /* FEC ethernet */
include/configs/liteboard.h +0 -3
index a784002158b0..1d51b87b68b3 100644
@@ -13,9 +13,6 @@
 #include <linux/stringify.h>
 #include "mx6_common.h"
 
-/* SPL options */
-#include "imx6_spl.h"
-
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
 /* MMC Configs */
include/configs/mccmon6.h +0 -2
index 69ca7c527534..f9f0825f6f81 100644
@@ -9,8 +9,6 @@
 
 #include "mx6_common.h"
 
-#include "imx6_spl.h"
-
 #define CONFIG_SYS_UBOOT_BASE (CONFIG_SYS_FLASH_BASE + 0x80000)
 
 /*
include/configs/mx6cuboxi.h +0 -2
index bc90b9563ade..1db4d6c01b17 100644
@@ -11,8 +11,6 @@
 
 #include "mx6_common.h"
 
-#include "imx6_spl.h"
-
 /* MMC Configs */
 #define CFG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
 
include/configs/mx6memcal.h +0 -1
index ad53f17d6716..a6cefab5508a 100644
@@ -11,7 +11,6 @@
 /* SPL */
 
 #include "mx6_common.h"
-#include "imx6_spl.h"
 
 #ifdef CONFIG_SERIAL_CONSOLE_UART1
 #if defined(CONFIG_MX6SL)
include/configs/mx6sabreauto.h +0 -4
index 8176566f3f61..3fdf829e9686 100644
@@ -8,10 +8,6 @@
 #ifndef __MX6SABREAUTO_CONFIG_H
 #define __MX6SABREAUTO_CONFIG_H
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #define CONFIG_MXC_UART_BASE	UART4_BASE
 #define CONSOLE_DEV		"ttymxc3"
 
include/configs/mx6sabresd.h +0 -4
index 49cd1512dc58..0d06b6dc4671 100644
@@ -8,10 +8,6 @@
 #ifndef __MX6SABRESD_CONFIG_H
 #define __MX6SABRESD_CONFIG_H
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #define CONFIG_MXC_UART_BASE	UART1_BASE
 #define CONSOLE_DEV		"ttymxc0"
 
include/configs/mx6slevk.h +0 -4
index 26b97bd3f2e4..ca1d077437b7 100644
@@ -10,10 +10,6 @@
 
 #include "mx6_common.h"
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #define CONFIG_MXC_UART_BASE		UART1_IPS_BASE_ADDR
 
 /* MMC Configs */
include/configs/mx6sxsabresd.h +0 -4
index 83779f09bfc6..c655671ee1bd 100644
@@ -12,10 +12,6 @@
 
 #include "mx6_common.h"
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
 #ifdef CONFIG_IMX_BOOTAUX
include/configs/mx6ul_14x14_evk.h +0 -3
index d0e3d3f02849..65f0a5c99662 100644
@@ -15,9 +15,6 @@
 
 #define is_mx6ul_9x9_evk()	CONFIG_IS_ENABLED(TARGET_MX6UL_9X9_EVK)
 
-/* SPL options */
-#include "imx6_spl.h"
-
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
 /* MMC Configs */
include/configs/mys_6ulx.h +0 -3
index e18d16cc99c7..273f938554de 100644
@@ -10,9 +10,6 @@
 #include <linux/sizes.h>
 #include "mx6_common.h"
 
-/* SPL options */
-#include "imx6_spl.h"
-
 #define CFG_SYS_FSL_USDHC_NUM	1
 
 /* Console configs */
include/configs/novena.h +0 -3
index f2a04ca61854..9dc05d80ec2c 100644
@@ -34,9 +34,6 @@
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE	IRAM_SIZE
 
-/* SPL */
-#include "imx6_spl.h"			/* common IMX6 SPL configuration */
-
 /* I2C */
 #define CONFIG_I2C_MULTI_BUS
 
include/configs/npi_imx6ull.h +0 -3
index 2a5288508299..ea407c9f6f1a 100644
@@ -10,9 +10,6 @@
 #include <linux/sizes.h>
 #include "mx6_common.h"
 
-/* SPL options */
-#include "imx6_spl.h"
-
 #define CFG_SYS_FSL_USDHC_NUM	1
 
 /* Console configs */
include/configs/opos6uldev.h +0 -4
index 3e551e13aa67..b3cdd2f1ebe3 100644
@@ -10,10 +10,6 @@
 
 #include "mx6_common.h"
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 /* Miscellaneous configurable options */
 #define CONFIG_STANDALONE_LOAD_ADDR	CONFIG_SYS_LOAD_ADDR
 
include/configs/pcl063.h +0 -3
index bc04c5082188..6267dc729ab6 100644
@@ -11,9 +11,6 @@
 #include <linux/sizes.h>
 #include "mx6_common.h"
 
-/* SPL options */
-#include "imx6_spl.h"
-
 /*
  * There is a bug in some i.MX6UL processors that results in the initial
  * portion of OCRAM being unavailable when booting from (at least) an SD
include/configs/pcl063_ull.h +0 -3
index 817fabfb97ce..e13b5df0fabd 100644
@@ -13,9 +13,6 @@
 #include <linux/stringify.h>
 #include "mx6_common.h"
 
-/* SPL options */
-#include "imx6_spl.h"
-
 #define CFG_SYS_FSL_USDHC_NUM	2
 
 /* Environment settings */
include/configs/pcm058.h +0 -4
index 01190904cf6f..14cbfde28bfe 100644
@@ -6,10 +6,6 @@
 #ifndef __PCM058_CONFIG_H
 #define __PCM058_CONFIG_H
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #include "mx6_common.h"
 
 #define PHYS_SDRAM_SIZE		(1u * 1024 * 1024 * 1024)
include/configs/pico-imx6.h +0 -8
index 687133b9bdda..f95beeb214a9 100644
@@ -10,14 +10,6 @@
 
 #include "mx6_common.h"
 
-#include "imx6_spl.h"
-
-#ifdef CONFIG_SPL_OS_BOOT
-/* Falcon Mode */
-
-/* Falcon Mode - MMC support: args@1MB kernel@2MB */
-#endif
-
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
 /* MMC Configuration */
include/configs/pico-imx6ul.h +0 -7
index d4f58b6a7b04..85772ba6e838 100644
@@ -12,13 +12,6 @@
 #include <linux/sizes.h>
 #include "mx6_common.h"
 #include <asm/mach-imx/gpio.h>
-#include "imx6_spl.h"
-
-#ifdef CONFIG_SPL_OS_BOOT
-/* Falcon Mode */
-
-/* Falcon Mode - MMC support: args@1MB kernel@2MB */
-#endif
 
 /* Network support */
 
include/configs/pico-imx7d.h +0 -8
index 159bf4c68ca5..b3a38d8a940a 100644
@@ -10,14 +10,6 @@
 
 #include "mx7_common.h"
 
-#include "imx7_spl.h"
-
-#ifdef CONFIG_SPL_OS_BOOT
-/* Falcon Mode */
-
-/* Falcon Mode - MMC support: args@1MB kernel@2MB */
-#endif
-
 #define CONFIG_MXC_UART_BASE		UART5_IPS_BASE_ADDR
 
 /* MMC Config */
include/configs/somlabs_visionsom_6ull.h +0 -4
index 49672dfe7c3f..dcb88a3a730a 100644
@@ -13,10 +13,6 @@
 #include "mx6_common.h"
 #include <asm/mach-imx/gpio.h>
 
-/* SPL options */
-#include "imx6_spl.h"
-
-
 /* MMC Configs */
 #ifdef CONFIG_FSL_USDHC
 #define CFG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
include/configs/tqma6.h +0 -7
index 2c5891589525..a65ebfb4deab 100644
@@ -11,13 +11,6 @@
 #include <linux/kconfig.h>
 #include <linux/stringify.h>
 
-/* SPL */
-/* #if defined(CONFIG_SPL_BUILD) */
-/* common IMX6 SPL configuration */
-#include "imx6_spl.h"
-
-/* #endif */
-
 /* place code in last 4 MiB of RAM */
 
 #include "mx6_common.h"
include/configs/udoo.h +0 -2
index 8af5151c503d..268c737e7eb7 100644
@@ -10,8 +10,6 @@
 
 #include "mx6_common.h"
 
-#include "imx6_spl.h"
-
 #define CONFIG_MXC_UART_BASE		UART2_BASE
 
 /* MMC Configuration */
include/configs/udoo_neo.h +0 -2
index 093e2e8dae7c..147224806fcc 100644
@@ -12,8 +12,6 @@
 
 #include "mx6_common.h"
 
-#include "imx6_spl.h"
-
 /* MMC Configuration */
 #define CFG_SYS_FSL_ESDHC_ADDR	USDHC2_BASE_ADDR
 
include/configs/vining_2000.h +0 -4
index a4484fd3f8ca..a0846b3f7c96 100644
@@ -10,10 +10,6 @@
 
 #include "mx6_common.h"
 
-#ifdef CONFIG_SPL
-#include "imx6_spl.h"
-#endif
-
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(MMC, mmc, 1) \
include/configs/wandboard.h +0 -2
index 91c1f4b3b514..b4c757fd9217 100644
@@ -10,8 +10,6 @@
 
 #include "mx6_common.h"
 
-#include "imx6_spl.h"
-
 #define CONFIG_MXC_UART_BASE		UART1_BASE
 
 /* MMC Configuration */
include/configs/xpress.h +0 -3
index fc8ec3204b1b..7d0402feead5 100644
@@ -10,9 +10,6 @@
 #include "mx6_common.h"
 #include <asm/mach-imx/gpio.h>
 
-/* SPL options */
-#include "imx6_spl.h"
-
 #define CONFIG_MXC_UART_BASE		MX6UL_UART7_BASE_ADDR
 
 /* MMC Configs */
Signature · 1 line
2.25.1
Reviewed-by on v1 12/17
#27 lore raw

Re: [PATCH 12/17] imx6/imx7: Remove now empty imx6_spl.h and imx7_spl.h

Quoted 48 lines · Tom Rini

There are now no flags being set in these files, so remove them.

---
 include/configs/apalis_imx6.h            |  4 ----
 include/configs/brppt2.h                 |  5 -----
 include/configs/cl-som-imx7.h            |  3 ---
 include/configs/cm_fx6.h                 |  3 ---
 include/configs/colibri_imx6.h           |  4 ----
 include/configs/dart_6ul.h               |  3 ---
 include/configs/dh_imx6.h                |  3 ---
 include/configs/display5.h               |  2 --
 include/configs/el6x_common.h            |  4 ----
 include/configs/embestmx6boards.h        |  6 ------
 include/configs/ge_b1x5v2.h              |  2 --
 include/configs/gw_ventana.h             |  1 -
 include/configs/imx6-engicam.h           |  5 -----
 include/configs/imx6_logic.h             |  4 ----
 include/configs/imx6_spl.h               | 15 ---------------
 include/configs/imx6dl-mamoj.h           |  3 ---
 include/configs/imx6q-bosch-acc.h        |  1 -
 include/configs/imx6ulz_smm_m2.h         |  3 ---
 include/configs/imx7-cm.h                |  3 ---
 include/configs/imx7_spl.h               | 19 -------------------
 include/configs/kontron-sl-mx6ul.h       |  3 ---
 include/configs/kp_imx6q_tpc.h           |  3 ---
 include/configs/liteboard.h              |  3 ---
 include/configs/mccmon6.h                |  2 --
 include/configs/mx6cuboxi.h              |  2 --
 include/configs/mx6memcal.h              |  1 -
 include/configs/mx6sabreauto.h           |  4 ----
 include/configs/mx6sabresd.h             |  4 ----
 include/configs/mx6slevk.h               |  4 ----
 include/configs/mx6sxsabresd.h           |  4 ----
 include/configs/mx6ul_14x14_evk.h        |  3 ---
 include/configs/mys_6ulx.h               |  3 ---
 include/configs/novena.h                 |  3 ---
 include/configs/npi_imx6ull.h            |  3 ---
 include/configs/opos6uldev.h             |  4 ----
 include/configs/pcl063.h                 |  3 ---
 include/configs/pcl063_ull.h             |  3 ---
 include/configs/pcm058.h                 |  4 ----
 include/configs/pico-imx6.h              |  8 --------
 include/configs/pico-imx6ul.h            |  7 -------
 include/configs/pico-imx7d.h             |  8 --------
 include/configs/somlabs_visionsom_6ull.h |  4 ----
 include/configs/tqma6.h                  |  7 -------
Quoted 9 lines
 include/configs/udoo.h                   |  2 --
 include/configs/udoo_neo.h               |  2 --
 include/configs/vining_2000.h            |  4 ----
 include/configs/wandboard.h              |  2 --
 include/configs/xpress.h                 |  3 ---
 48 files changed, 196 deletions(-)
 delete mode 100644 include/configs/imx6_spl.h
 delete mode 100644 include/configs/imx7_spl.h
author
#28 lore raw

PATCH 13/17 global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*

In reply to Tom Rini

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_SDRAM namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace.

---
 README                                        |  2 +-
 arch/arc/lib/cache.c                          |  4 +-
 arch/arc/lib/cpu.c                            |  2 +-
 arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c     |  2 +-
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c       |  6 +--
 arch/arm/dts/rockchip-optee.dtsi              |  4 +-
 arch/arm/include/asm/emif.h                   |  2 +-
 arch/arm/include/asm/iproc-common/configs.h   |  2 +-
 arch/arm/mach-aspeed/ast2500/board_common.c   |  2 +-
 arch/arm/mach-aspeed/ast2600/board_common.c   |  2 +-
 arch/arm/mach-at91/arm920t/lowlevel_init.S    | 48 +++++++++----------
 arch/arm/mach-at91/arm926ejs/lowlevel_init.S  | 48 +++++++++----------
 arch/arm/mach-davinci/misc.c                  |  4 +-
 arch/arm/mach-exynos/dmc_init_ddr3.c          |  2 +-
 arch/arm/mach-imx/imx8m/soc.c                 |  2 +-
 arch/arm/mach-imx/imx8ulp/soc.c               |  2 +-
 arch/arm/mach-imx/mx6/litesom.c               |  2 +-
 arch/arm/mach-imx/mx6/opos6ul.c               |  2 +-
 arch/arm/mach-imx/spl.c                       |  2 +-
 arch/arm/mach-k3/common.c                     |  2 +-
 arch/arm/mach-k3/r5_mpu.c                     |  2 +-
 arch/arm/mach-keystone/ddr3.c                 |  2 +-
 arch/arm/mach-mediatek/mt7623/init.c          |  4 +-
 arch/arm/mach-mediatek/mt7981/init.c          |  2 +-
 arch/arm/mach-mediatek/mt7986/init.c          |  2 +-
 arch/arm/mach-mvebu/alleycat5/cpu.c           |  6 +--
 arch/arm/mach-mvebu/arm64-common.c            |  2 +-
 arch/arm/mach-mvebu/armada8k/dram.c           |  2 +-
 arch/arm/mach-omap2/am33xx/board.c            |  6 +--
 arch/arm/mach-omap2/emif-common.c             |  8 ++--
 arch/arm/mach-omap2/sec-common.c              |  4 +-
 arch/arm/mach-owl/soc.c                       |  2 +-
 arch/arm/mach-rockchip/sdram.c                | 16 +++----
 arch/arm/mach-socfpga/board.c                 |  2 +-
 arch/arm/mach-sunxi/dram_helpers.c            |  8 ++--
 arch/arm/mach-sunxi/dram_suniv.c              | 20 ++++----
 arch/arm/mach-sunxi/dram_sunxi_dw.c           |  6 +--
 arch/arm/mach-tegra/board2.c                  |  4 +-
 arch/arm/mach-zynq/cpu.c                      |  2 +-
 arch/m68k/cpu/mcf532x/speed.c                 |  2 +-
 arch/m68k/include/asm/immap.h                 |  4 +-
 arch/m68k/lib/traps.c                         |  2 +-
 arch/mips/lib/traps.c                         |  2 +-
 arch/mips/mach-jz47xx/jz4780/jz4780.c         |  2 +-
 arch/mips/mach-mscc/cpu.c                     |  8 ++--
 arch/mips/mach-mscc/dram.c                    |  2 +-
 arch/mips/mach-mscc/include/mach/ddr.h        |  2 +-
 arch/mips/mach-mtmips/mt7621/spl/start.S      |  2 +-
 arch/mips/mach-octeon/dram.c                  |  2 +-
 arch/nios2/cpu/cpu.c                          |  2 +-
 arch/powerpc/cpu/mpc83xx/spd_sdram.c          |  2 +-
 arch/powerpc/cpu/mpc85xx/cpu.c                |  2 +-
 arch/powerpc/cpu/mpc85xx/mp.c                 |  2 +-
 arch/powerpc/cpu/mpc8xxx/pamu_table.c         |  2 +-
 arch/powerpc/lib/bootm.c                      |  2 +-
 arch/sandbox/cpu/state.c                      |  2 +-
 arch/sandbox/dts/sandbox.dts                  |  2 +-
 arch/sandbox/dts/sandbox64.dts                |  2 +-
 arch/sh/cpu/u-boot.lds                        |  2 +-
 arch/sh/lib/board.c                           |  4 +-
 arch/sh/lib/bootm.c                           |  2 +-
 arch/xtensa/cpu/cpu.c                         |  2 +-
 board/BuR/brppt1/board.c                      |  2 +-
 board/BuS/eb_cpu5282/eb_cpu5282.c             | 20 ++++----
 board/CZ.NIC/turris_mox/turris_mox.c          |  2 +-
 board/Marvell/mvebu_alleycat-5/board.c        |  2 +-
 board/Marvell/mvebu_armada-37xx/board.c       |  2 +-
 board/Marvell/mvebu_armada-8k/board.c         |  2 +-
 board/Marvell/octeontx/board.c                |  2 +-
 board/Marvell/octeontx2/board.c               |  2 +-
 board/Marvell/octeontx2_cn913x/board.c        |  2 +-
 board/armltd/integrator/integrator.c          |  6 +--
 board/armltd/vexpress/vexpress_common.c       |  2 +-
 board/astro/mcf5373l/mcf5373l.c               | 12 ++---
 board/atmel/at91sam9260ek/at91sam9260ek.c     |  6 +--
 board/atmel/at91sam9261ek/at91sam9261ek.c     |  6 +--
 board/atmel/at91sam9263ek/at91sam9263ek.c     |  6 +--
 .../atmel/at91sam9m10g45ek/at91sam9m10g45ek.c |  6 +--
 board/atmel/at91sam9n12ek/at91sam9n12ek.c     |  6 +--
 board/atmel/at91sam9rlek/at91sam9rlek.c       |  6 +--
 board/atmel/at91sam9x5ek/at91sam9x5ek.c       |  6 +--
 board/atmel/sam9x60ek/sam9x60ek.c             |  6 +--
 .../sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c   |  6 +--
 board/atmel/sama5d2_icp/sama5d2_icp.c         |  6 +--
 board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c   |  6 +--
 .../atmel/sama5d3_xplained/sama5d3_xplained.c |  6 +--
 board/atmel/sama5d3xek/sama5d3xek.c           |  6 +--
 .../atmel/sama5d4_xplained/sama5d4_xplained.c |  6 +--
 board/atmel/sama5d4ek/sama5d4ek.c             |  6 +--
 board/atmel/sama7g5ek/sama7g5ek.c             |  6 +--
 board/bluewater/gurnard/gurnard.c             |  6 +--
 board/bosch/guardian/board.c                  |  2 +-
 board/bosch/shc/board.c                       |  2 +-
 board/broadcom/bcm_ep/board.c                 |  8 ++--
 board/calao/usb_a9263/usb_a9263.c             |  6 +--
 board/cobra5272/cobra5272.c                   |  2 +-
 board/compulab/cm_t43/cm_t43.c                |  2 +-
 board/compulab/cm_t43/spl.c                   |  4 +-
 board/cssi/MCR3000/MCR3000.c                  |  2 +-
 .../ea-lpc3250devkitv2/ea-lpc3250devkitv2.c   |  4 +-
 board/eets/pdu001/board.c                     |  2 +-
 board/egnite/ethernut5/ethernut5.c            |  6 +--
 board/emulation/qemu-arm/qemu-arm.c           |  2 +-
 board/esd/meesc/meesc.c                       |  2 +-
 board/freescale/common/arm_sleep.c            |  2 +-
 board/freescale/common/mpc85xx_sleep.c        |  2 +-
 board/freescale/ls1012afrdm/ls1012afrdm.c     |  4 +-
 board/freescale/ls1012aqds/ls1012aqds.c       |  4 +-
 board/freescale/ls1012ardb/ls1012ardb.c       |  4 +-
 board/freescale/ls1021aqds/ddr.c              |  2 +-
 board/freescale/ls1021atsn/ls1021atsn.c       |  2 +-
 board/freescale/ls1021atwr/ls1021atwr.c       |  2 +-
 board/freescale/m5208evbe/m5208evbe.c         | 26 +++++-----
 board/freescale/m5235evb/m5235evb.c           |  8 ++--
 board/freescale/m5249evb/m5249evb.c           |  2 +-
 board/freescale/m5253demo/m5253demo.c         |  6 +--
 board/freescale/m5272c3/m5272c3.c             |  2 +-
 board/freescale/m5275evb/m5275evb.c           | 18 +++----
 board/freescale/m5282evb/m5282evb.c           |  8 ++--
 board/freescale/m53017evb/README              |  2 +-
 board/freescale/m53017evb/m53017evb.c         | 26 +++++-----
 board/freescale/m5329evb/m5329evb.c           | 24 +++++-----
 board/freescale/m5373evb/README               |  2 +-
 board/freescale/m5373evb/m5373evb.c           | 24 +++++-----
 board/freescale/mpc837xerdb/mpc837xerdb.c     |  6 +--
 board/freescale/mx51evk/mx51evk.c             |  2 +-
 board/freescale/p1_p2_rdb_pc/ddr.c            |  2 +-
 board/friendlyarm/nanopi2/board.c             |  8 ++--
 board/gardena/smart-gateway-at91sam/board.c   |  6 +--
 board/gdsys/mpc8308/sdram.c                   |  6 +--
 board/grinn/chiliboard/board.c                |  2 +-
 board/imgtec/boston/ddr.c                     |  2 +-
 board/imgtec/malta/lowlevel_init.S            |  4 +-
 board/imgtec/malta/malta.c                    |  2 +-
 board/imgtec/xilfpga/xilfpga.c                |  2 +-
 board/inversepath/usbarmory/usbarmory.c       |  2 +-
 board/isee/igep003x/board.c                   |  2 +-
 board/keymile/common/common.c                 |  4 +-
 board/keymile/km83xx/km83xx.c                 |  6 +--
 board/keymile/pg-wcom-ls102xa/ddr.c           |  2 +-
 .../keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c |  2 +-
 board/l+g/vinco/vinco.c                       |  6 +--
 board/mediatek/mt7622/mt7622_rfb.c            |  2 +-
 board/mediatek/mt7623/mt7623_rfb.c            |  2 +-
 board/mediatek/mt7629/mt7629_rfb.c            |  2 +-
 board/mediatek/mt8518/mt8518_ap1.c            |  2 +-
 board/mscc/jr2/jr2.c                          |  2 +-
 board/mscc/luton/luton.c                      |  2 +-
 board/mscc/ocelot/ocelot.c                    |  2 +-
 board/mscc/serval/serval.c                    |  2 +-
 board/mscc/servalt/servalt.c                  |  2 +-
 board/phytec/phycore_am335x_r2/board.c        |  4 +-
 board/phytium/pomelo/pomelo.c                 |  2 +-
 board/renesas/alt/alt.c                       |  2 +-
 board/renesas/blanche/blanche.c               |  2 +-
 board/renesas/gose/gose.c                     |  2 +-
 board/renesas/grpeach/grpeach.c               |  2 +-
 board/renesas/koelsch/koelsch.c               |  2 +-
 board/renesas/lager/lager.c                   |  2 +-
 board/renesas/porter/porter.c                 |  2 +-
 board/renesas/silk/silk.c                     |  2 +-
 board/renesas/stout/stout.c                   |  2 +-
 board/ronetix/pm9g45/pm9g45.c                 | 10 ++--
 board/samsung/arndale/arndale.c               |  4 +-
 board/samsung/common/board.c                  |  4 +-
 board/sandbox/sandbox.c                       |  4 +-
 board/siemens/common/board.c                  |  2 +-
 board/siemens/corvus/board.c                  |  6 +--
 board/siemens/iot2050/board.c                 |  2 +-
 board/siemens/smartweb/smartweb.c             |  6 +--
 board/siemens/taurus/taurus.c                 | 10 ++--
 board/sipeed/maix/maix.c                      |  2 +-
 board/socrates/sdram.c                        |  4 +-
 board/softing/vining_fpga/socfpga.c           |  2 +-
 board/solidrun/mx6cuboxi/mx6cuboxi.c          |  4 +-
 board/sysam/amcore/amcore.c                   |  6 +--
 board/sysam/stmark2/stmark2.c                 |  2 +-
 board/tbs/tbs2910/tbs2910.c                   |  2 +-
 board/tcl/sl50/board.c                        |  2 +-
 board/ti/am335x/board.c                       |  2 +-
 board/ti/am43xx/board.c                       |  2 +-
 board/ti/am57xx/board.c                       |  2 +-
 board/ti/am65x/evm.c                          |  4 +-
 board/ti/dra7xx/evm.c                         |  2 +-
 board/ti/j721e/evm.c                          |  4 +-
 board/ti/j721s2/evm.c                         |  4 +-
 board/ti/ks2_evm/board.c                      | 12 ++---
 board/ti/ti816x/evm.c                         |  2 +-
 board/timll/devkit3250/devkit3250.c           |  6 +--
 board/toradex/apalis_imx6/apalis_imx6.c       |  2 +-
 board/toradex/colibri_imx6/colibri_imx6.c     |  2 +-
 board/vscom/baltos/board.c                    |  2 +-
 board/work-microwave/work_92105/work_92105.c  |  6 +--
 board/xilinx/zynq/board.c                     |  6 +--
 board/xilinx/zynqmp/zynqmp.c                  |  8 ++--
 boot/image-board.c                            |  4 +-
 cmd/ti/ddr3.c                                 | 18 +++----
 common/board_f.c                              |  8 ++--
 doc/arch/m68k.rst                             | 16 +++----
 doc/arch/nios2.rst                            |  4 +-
 drivers/ddr/fsl/arm_ddr_gen3.c                |  2 +-
 drivers/ddr/fsl/fsl_ddr_gen4.c                |  2 +-
 drivers/ddr/fsl/main.c                        |  2 +-
 drivers/ddr/fsl/mpc85xx_ddr_gen3.c            |  2 +-
 drivers/ddr/marvell/axp/ddr3_axp.h            |  4 +-
 drivers/pci/Kconfig                           |  2 +-
 drivers/pci/pci-rcar-gen2.c                   |  4 +-
 drivers/pci/pci_sh7751.c                      |  6 +--
 drivers/pci/pcie_dw_mvebu.c                   |  4 +-
 drivers/pci/pcie_layerscape.h                 |  4 +-
 drivers/ram/aspeed/sdram_ast2500.c            |  4 +-
 drivers/ram/aspeed/sdram_ast2600.c            |  6 +--
 drivers/ram/mediatek/ddr3-mt7629.c            | 12 ++---
 drivers/ram/octeon/octeon_ddr.c               |  2 +-
 drivers/ram/rockchip/dmc-rk3368.c             | 12 ++---
 drivers/ram/rockchip/sdram_common.c           | 34 ++++++-------
 drivers/ram/rockchip/sdram_px30.c             |  2 +-
 drivers/ram/rockchip/sdram_rk3066.c           | 14 +++---
 drivers/ram/rockchip/sdram_rk3128.c           |  2 +-
 drivers/ram/rockchip/sdram_rk3188.c           | 14 +++---
 drivers/ram/rockchip/sdram_rk322x.c           | 24 +++++-----
 drivers/ram/rockchip/sdram_rk3288.c           | 14 +++---
 drivers/ram/rockchip/sdram_rk3308.c           |  2 +-
 drivers/ram/rockchip/sdram_rk3328.c           |  2 +-
 drivers/ram/rockchip/sdram_rk3399.c           |  2 +-
 drivers/ram/rockchip/sdram_rk3568.c           |  2 +-
 drivers/usb/host/ehci-rmobile.c               |  4 +-
 drivers/video/sunxi/sunxi_display.c           |  4 +-
 include/configs/10m50_devboard.h              |  4 +-
 include/configs/3c120_devboard.h              |  4 +-
 include/configs/M5208EVBE.h                   | 22 ++++-----
 include/configs/M5235EVB.h                    | 12 ++---
 include/configs/M5249EVB.h                    | 12 ++---
 include/configs/M5253DEMO.h                   | 12 ++---
 include/configs/M5272C3.h                     | 12 ++---
 include/configs/M5275EVB.h                    | 12 ++---
 include/configs/M5282EVB.h                    | 12 ++---
 include/configs/M53017EVB.h                   | 22 ++++-----
 include/configs/M5329EVB.h                    | 22 ++++-----
 include/configs/M5373EVB.h                    | 22 ++++-----
 include/configs/MCR3000.h                     |  4 +-
 include/configs/MPC837XERDB.h                 |  4 +-
 include/configs/MPC8548CDS.h                  |  2 +-
 include/configs/P1010RDB.h                    |  4 +-
 include/configs/P2041RDB.h                    |  4 +-
 include/configs/SBx81LIFKW.h                  |  2 +-
 include/configs/SBx81LIFXCAT.h                |  2 +-
 include/configs/T102xRDB.h                    |  6 +--
 include/configs/T104xRDB.h                    |  4 +-
 include/configs/T208xQDS.h                    |  4 +-
 include/configs/T208xRDB.h                    |  4 +-
 include/configs/T4240RDB.h                    |  4 +-
 include/configs/am62x_evm.h                   |  2 +-
 include/configs/am64x_evm.h                   |  2 +-
 include/configs/am65x_evm.h                   |  2 +-
 include/configs/amcore.h                      |  4 +-
 include/configs/ap121.h                       |  2 +-
 include/configs/ap143.h                       |  2 +-
 include/configs/ap152.h                       |  2 +-
 include/configs/apalis-imx8.h                 |  2 +-
 include/configs/apalis_imx6.h                 |  2 +-
 include/configs/arbel.h                       |  4 +-
 include/configs/aristainetos2.h               |  2 +-
 include/configs/aspeed-common.h               |  2 +-
 include/configs/astro_mcf5373l.h              | 12 ++---
 include/configs/at91sam9260ek.h               |  4 +-
 include/configs/at91sam9261ek.h               |  4 +-
 include/configs/at91sam9263ek.h               | 28 +++++------
 include/configs/at91sam9m10g45ek.h            |  4 +-
 include/configs/at91sam9n12ek.h               |  4 +-
 include/configs/at91sam9rlek.h                |  4 +-
 include/configs/at91sam9x5ek.h                |  4 +-
 include/configs/ax25-ae350.h                  |  2 +-
 include/configs/axs10x.h                      |  4 +-
 include/configs/bcm947622.h                   |  2 +-
 include/configs/bcm94908.h                    |  2 +-
 include/configs/bcm94912.h                    |  2 +-
 include/configs/bcm963138.h                   |  2 +-
 include/configs/bcm963146.h                   |  2 +-
 include/configs/bcm963148.h                   |  2 +-
 include/configs/bcm963158.h                   |  2 +-
 include/configs/bcm963178.h                   |  2 +-
 include/configs/bcm96756.h                    |  2 +-
 include/configs/bcm96813.h                    |  2 +-
 include/configs/bcm96846.h                    |  2 +-
 include/configs/bcm96855.h                    |  2 +-
 include/configs/bcm96856.h                    |  2 +-
 include/configs/bcm96858.h                    |  2 +-
 include/configs/bcm96878.h                    |  2 +-
 include/configs/bcm_ns3.h                     |  2 +-
 include/configs/bcmstb.h                      |  2 +-
 include/configs/bitmain_antminer_s9.h         |  4 +-
 include/configs/bk4r1.h                       |  2 +-
 include/configs/bmips_bcm3380.h               |  2 +-
 include/configs/bmips_bcm6318.h               |  2 +-
 include/configs/bmips_bcm63268.h              |  2 +-
 include/configs/bmips_bcm6328.h               |  2 +-
 include/configs/bmips_bcm6338.h               |  2 +-
 include/configs/bmips_bcm6348.h               |  2 +-
 include/configs/bmips_bcm6358.h               |  2 +-
 include/configs/bmips_bcm6362.h               |  2 +-
 include/configs/bmips_bcm6368.h               |  2 +-
 include/configs/bmips_bcm6838.h               |  2 +-
 include/configs/boston.h                      |  4 +-
 include/configs/brppt2.h                      |  2 +-
 include/configs/bur_am335x_common.h           |  2 +-
 include/configs/capricorn-common.h            |  2 +-
 include/configs/cgtqmx8.h                     |  2 +-
 include/configs/ci20.h                        |  2 +-
 include/configs/cl-som-imx7.h                 |  2 +-
 include/configs/cm_fx6.h                      |  2 +-
 include/configs/cobra5272.h                   | 12 ++---
 include/configs/colibri-imx6ull.h             |  2 +-
 include/configs/colibri-imx8x.h               |  2 +-
 include/configs/colibri_imx6.h                |  2 +-
 include/configs/colibri_imx7.h                |  2 +-
 include/configs/colibri_vf.h                  |  2 +-
 include/configs/corstone1000.h                |  2 +-
 include/configs/corvus.h                      |  4 +-
 include/configs/da850evm.h                    |  2 +-
 include/configs/dart_6ul.h                    |  2 +-
 include/configs/devkit3250.h                  |  4 +-
 include/configs/dh_imx6.h                     |  2 +-
 include/configs/display5.h                    |  2 +-
 include/configs/dragonboard410c.h             |  2 +-
 include/configs/dragonboard820c.h             |  2 +-
 include/configs/durian.h                      |  2 +-
 include/configs/ea-lpc3250devkitv2.h          |  2 +-
 include/configs/eb_cpu5282.h                  | 14 +++---
 include/configs/el6x_common.h                 |  2 +-
 include/configs/embestmx6boards.h             |  2 +-
 include/configs/emsdp.h                       |  4 +-
 include/configs/espresso7420.h                |  2 +-
 include/configs/ethernut5.h                   |  4 +-
 include/configs/exynos5-common.h              | 16 +++----
 include/configs/exynos5250-common.h           |  2 +-
 include/configs/exynos7420-common.h           | 16 +++----
 include/configs/exynos78x0-common.h           | 26 +++++-----
 .../configs/gardena-smart-gateway-at91sam.h   |  4 +-
 .../configs/gardena-smart-gateway-mt7688.h    |  2 +-
 include/configs/gazerbeam.h                   |  6 +--
 include/configs/ge_b1x5v2.h                   |  2 +-
 include/configs/ge_bx50v3.h                   |  2 +-
 include/configs/grpeach.h                     |  4 +-
 include/configs/gw_ventana.h                  |  2 +-
 include/configs/gxp.h                         |  2 +-
 include/configs/highbank.h                    |  2 +-
 include/configs/hikey.h                       |  2 +-
 include/configs/hikey960.h                    |  2 +-
 include/configs/hsdk-4xd.h                    |  4 +-
 include/configs/hsdk.h                        |  4 +-
 include/configs/imgtec_xilfpga.h              |  4 +-
 include/configs/imx27lite-common.h            |  2 +-
 include/configs/imx6-engicam.h                |  2 +-
 include/configs/imx6_logic.h                  |  2 +-
 include/configs/imx6dl-mamoj.h                |  2 +-
 include/configs/imx6q-bosch-acc.h             |  2 +-
 include/configs/imx6ulz_smm_m2.h              |  2 +-
 include/configs/imx7-cm.h                     |  2 +-
 include/configs/imx8mm-cl-iot-gate.h          |  2 +-
 include/configs/imx8mm_beacon.h               |  2 +-
 include/configs/imx8mm_data_modul_edm_sbc.h   |  2 +-
 include/configs/imx8mm_evk.h                  |  2 +-
 include/configs/imx8mm_icore_mx8mm.h          |  2 +-
 include/configs/imx8mm_venice.h               |  2 +-
 include/configs/imx8mn_beacon.h               |  2 +-
 include/configs/imx8mn_bsh_smm_s2_common.h    |  2 +-
 include/configs/imx8mn_evk.h                  |  2 +-
 include/configs/imx8mn_var_som.h              |  2 +-
 include/configs/imx8mn_venice.h               |  2 +-
 include/configs/imx8mp_dhcom_pdk2.h           |  2 +-
 include/configs/imx8mp_evk.h                  |  2 +-
 include/configs/imx8mp_icore_mx8mp.h          |  2 +-
 include/configs/imx8mp_rsb3720.h              |  2 +-
 include/configs/imx8mp_venice.h               |  2 +-
 include/configs/imx8mq_cm.h                   |  2 +-
 include/configs/imx8mq_evk.h                  |  2 +-
 include/configs/imx8mq_phanbell.h             |  2 +-
 include/configs/imx8qm_mek.h                  |  2 +-
 include/configs/imx8qm_rom7720.h              |  2 +-
 include/configs/imx8qxp_mek.h                 |  2 +-
 include/configs/imx8ulp_evk.h                 |  2 +-
 include/configs/imx93_evk.h                   |  2 +-
 include/configs/integrator-common.h           |  2 +-
 include/configs/iot_devkit.h                  | 14 +++---
 include/configs/j721e_evm.h                   |  2 +-
 include/configs/j721s2_evm.h                  |  2 +-
 include/configs/km/km-mpc83xx.h               |  4 +-
 include/configs/km/pg-wcom-ls102xa.h          |  2 +-
 include/configs/kmcent2.h                     |  4 +-
 include/configs/kontron-sl-mx6ul.h            |  2 +-
 include/configs/kontron-sl-mx8mm.h            |  2 +-
 include/configs/kontron_pitx_imx8m.h          |  2 +-
 include/configs/kontron_sl28.h                |  2 +-
 include/configs/kp_imx53.h                    |  2 +-
 include/configs/kp_imx6q_tpc.h                |  2 +-
 include/configs/legoev3.h                     |  2 +-
 include/configs/librem5.h                     |  2 +-
 include/configs/linkit-smart-7688.h           |  2 +-
 include/configs/liteboard.h                   |  2 +-
 include/configs/ls1012a2g5rdb.h               |  2 +-
 include/configs/ls1012a_common.h              |  2 +-
 include/configs/ls1012afrdm.h                 |  2 +-
 include/configs/ls1012aqds.h                  |  2 +-
 include/configs/ls1012ardb.h                  |  2 +-
 include/configs/ls1021aiot.h                  |  2 +-
 include/configs/ls1021aqds.h                  |  2 +-
 include/configs/ls1021atsn.h                  |  2 +-
 include/configs/ls1021atwr.h                  |  2 +-
 include/configs/ls1028a_common.h              |  2 +-
 include/configs/ls1043a_common.h              |  2 +-
 include/configs/ls1046a_common.h              |  2 +-
 include/configs/ls1088a_common.h              |  2 +-
 include/configs/ls2080a_common.h              |  2 +-
 include/configs/lx2160a_common.h              |  4 +-
 include/configs/m53menlo.h                    |  2 +-
 include/configs/malta.h                       |  6 +--
 include/configs/maxbcm.h                      |  2 +-
 include/configs/mccmon6.h                     |  2 +-
 include/configs/meerkat96.h                   |  2 +-
 include/configs/meesc.h                       |  4 +-
 include/configs/meson64.h                     |  2 +-
 include/configs/microchip_mpfs_icicle.h       |  2 +-
 include/configs/msc_sm2s_imx8mp.h             |  2 +-
 include/configs/mt7620.h                      |  2 +-
 include/configs/mt7621.h                      |  2 +-
 include/configs/mt7622.h                      |  2 +-
 include/configs/mt7623.h                      |  2 +-
 include/configs/mt7628.h                      |  2 +-
 include/configs/mt7629.h                      |  2 +-
 include/configs/mt7981.h                      |  2 +-
 include/configs/mt7986.h                      |  2 +-
 include/configs/mt8518.h                      |  4 +-
 include/configs/mv-common.h                   |  2 +-
 include/configs/mvebu_alleycat-5.h            |  2 +-
 include/configs/mvebu_armada-37xx.h           |  2 +-
 include/configs/mvebu_armada-8k.h             |  2 +-
 include/configs/mx23_olinuxino.h              |  2 +-
 include/configs/mx23evk.h                     |  2 +-
 include/configs/mx28evk.h                     |  2 +-
 include/configs/mx51evk.h                     |  2 +-
 include/configs/mx53cx9020.h                  |  2 +-
 include/configs/mx53loco.h                    |  2 +-
 include/configs/mx53ppd.h                     |  2 +-
 include/configs/mx6cuboxi.h                   |  2 +-
 include/configs/mx6memcal.h                   |  2 +-
 include/configs/mx6sabre_common.h             |  2 +-
 include/configs/mx6slevk.h                    |  2 +-
 include/configs/mx6sllevk.h                   |  2 +-
 include/configs/mx6sxsabreauto.h              |  2 +-
 include/configs/mx6sxsabresd.h                |  2 +-
 include/configs/mx6ul_14x14_evk.h             |  2 +-
 include/configs/mx6ullevk.h                   |  2 +-
 include/configs/mx7dsabresd.h                 |  2 +-
 include/configs/mx7ulp_com.h                  |  2 +-
 include/configs/mx7ulp_evk.h                  |  2 +-
 include/configs/mys_6ulx.h                    |  2 +-
 include/configs/nitrogen6x.h                  |  2 +-
 include/configs/nokia_rx51.h                  |  4 +-
 include/configs/novena.h                      |  2 +-
 include/configs/npi_imx6ull.h                 |  2 +-
 include/configs/nsim.h                        |  4 +-
 include/configs/o4-imx6ull-nano.h             |  2 +-
 include/configs/octeon_common.h               |  2 +-
 include/configs/octeontx2_common.h            |  2 +-
 include/configs/octeontx_common.h             |  2 +-
 include/configs/odroid.h                      |  4 +-
 include/configs/odroid_xu3.h                  |  2 +-
 include/configs/omapl138_lcdk.h               |  2 +-
 include/configs/openpiton-riscv64.h           |  2 +-
 include/configs/opos6uldev.h                  |  2 +-
 include/configs/origen.h                      |  4 +-
 include/configs/owl-common.h                  |  2 +-
 include/configs/p1_p2_rdb_pc.h                |  8 ++--
 include/configs/pcl063.h                      |  2 +-
 include/configs/pcl063_ull.h                  |  2 +-
 include/configs/pcm052.h                      |  2 +-
 include/configs/pcm058.h                      |  2 +-
 include/configs/peach-pi.h                    |  2 +-
 include/configs/peach-pit.h                   |  2 +-
 include/configs/phycore_imx8mm.h              |  2 +-
 include/configs/phycore_imx8mp.h              |  2 +-
 include/configs/pic32mzdask.h                 |  2 +-
 include/configs/pico-imx6.h                   |  2 +-
 include/configs/pico-imx6ul.h                 |  2 +-
 include/configs/pico-imx7d.h                  |  2 +-
 include/configs/pico-imx8mq.h                 |  2 +-
 include/configs/pm9261.h                      | 26 +++++-----
 include/configs/pm9263.h                      | 26 +++++-----
 include/configs/pm9g45.h                      |  4 +-
 include/configs/poleg.h                       |  2 +-
 include/configs/pomelo.h                      |  2 +-
 include/configs/presidio_asic.h               |  2 +-
 include/configs/px30_common.h                 |  2 +-
 include/configs/qemu-arm.h                    |  2 +-
 include/configs/qemu-ppce500.h                |  2 +-
 include/configs/qemu-riscv.h                  |  2 +-
 include/configs/r2dplus.h                     |  4 +-
 include/configs/rcar-gen2-common.h            |  4 +-
 include/configs/rcar-gen3-common.h            |  4 +-
 include/configs/rk3036_common.h               |  2 +-
 include/configs/rk3066_common.h               |  2 +-
 include/configs/rk3128_common.h               |  2 +-
 include/configs/rk3188_common.h               |  2 +-
 include/configs/rk322x_common.h               |  2 +-
 include/configs/rk3288_common.h               |  2 +-
 include/configs/rk3308_common.h               |  2 +-
 include/configs/rk3328_common.h               |  2 +-
 include/configs/rk3368_common.h               |  2 +-
 include/configs/rk3399_common.h               |  2 +-
 include/configs/rk3568_common.h               |  2 +-
 include/configs/rpi.h                         |  4 +-
 include/configs/rv1108_common.h               |  2 +-
 include/configs/s5p4418_nanopi2.h             |  4 +-
 include/configs/s5p_goni.h                    |  4 +-
 include/configs/s5pc210_universal.h           |  4 +-
 include/configs/sam9x60_curiosity.h           |  4 +-
 include/configs/sam9x60ek.h                   |  4 +-
 include/configs/sama5d27_wlsom1_ek.h          |  4 +-
 include/configs/sama5d2_icp.h                 |  4 +-
 include/configs/sama5d2_ptc_ek.h              |  4 +-
 include/configs/sama5d3_xplained.h            |  4 +-
 include/configs/sama5d3xek.h                  |  4 +-
 include/configs/sama5d4_xplained.h            |  4 +-
 include/configs/sama5d4ek.h                   |  4 +-
 include/configs/sama7g5ek.h                   |  4 +-
 include/configs/sandbox.h                     |  4 +-
 include/configs/siemens-am33x-common.h        |  2 +-
 include/configs/sifive-unleashed.h            |  2 +-
 include/configs/sifive-unmatched.h            |  2 +-
 include/configs/sipeed-maix.h                 |  4 +-
 include/configs/smartweb.h                    |  4 +-
 include/configs/smdk5420.h                    |  2 +-
 include/configs/smdkc100.h                    |  4 +-
 include/configs/smdkv310.h                    | 10 ++--
 include/configs/smegw01.h                     |  2 +-
 include/configs/snapper9g45.h                 |  4 +-
 include/configs/sniper.h                      |  2 +-
 include/configs/socfpga_common.h              |  2 +-
 include/configs/socfpga_soc64_common.h        |  2 +-
 include/configs/socrates.h                    |  4 +-
 include/configs/somlabs_visionsom_6ull.h      |  2 +-
 include/configs/stih410-b2260.h               |  2 +-
 include/configs/stm32mp13_common.h            |  2 +-
 include/configs/stm32mp15_common.h            |  2 +-
 include/configs/stmark2.h                     | 14 +++---
 include/configs/stv0991.h                     |  2 +-
 include/configs/sunxi-common.h                |  8 ++--
 include/configs/synquacer.h                   |  2 +-
 include/configs/taurus.h                      |  4 +-
 include/configs/tb100.h                       |  4 +-
 include/configs/tbs2910.h                     |  2 +-
 include/configs/tegra-common.h                |  2 +-
 include/configs/theadorable.h                 |  2 +-
 include/configs/thunderx_88xx.h               |  4 +-
 include/configs/ti814x_evm.h                  |  2 +-
 include/configs/ti816x_evm.h                  |  2 +-
 include/configs/ti_armv7_common.h             |  2 +-
 include/configs/total_compute.h               |  2 +-
 include/configs/tplink_wdr4300.h              |  2 +-
 include/configs/tqma6.h                       |  2 +-
 include/configs/trats.h                       |  4 +-
 include/configs/trats2.h                      |  4 +-
 include/configs/turris_mox.h                  |  2 +-
 include/configs/udoo.h                        |  2 +-
 include/configs/udoo_neo.h                    |  2 +-
 include/configs/usb_a9263.h                   |  4 +-
 include/configs/usbarmory.h                   |  2 +-
 include/configs/vcoreiii.h                    |  8 ++--
 include/configs/verdin-imx8mm.h               |  2 +-
 include/configs/verdin-imx8mp.h               |  2 +-
 include/configs/vexpress_aemv8.h              |  2 +-
 include/configs/vexpress_common.h             |  2 +-
 include/configs/vf610twr.h                    |  2 +-
 include/configs/vinco.h                       |  4 +-
 include/configs/vining_2000.h                 |  2 +-
 include/configs/vocore2.h                     |  2 +-
 include/configs/wandboard.h                   |  2 +-
 include/configs/warp7.h                       |  2 +-
 include/configs/work_92105.h                  |  4 +-
 include/configs/xea.h                         |  2 +-
 include/configs/xenguest_arm64.h              |  2 +-
 include/configs/xilinx_zynqmp_mini_nand.h     |  4 +-
 include/configs/xpress.h                      |  2 +-
 include/configs/xtfpga.h                      | 10 ++--
 include/init.h                                |  4 +-
 include/system-constants.h                    |  2 +-
 post/drivers/memory.c                         |  2 +-
 test/dm/remoteproc.c                          |  6 +--
 589 files changed, 1197 insertions(+), 1197 deletions(-)
README +1 -1
index 5ab042a2defb..b095937121b7 100644
@@ -1441,7 +1441,7 @@ Configuration Settings:
 		the RAM base is not zero, or RAM is divided into banks,
 		this variable needs to be recalcuated to get the address.
 
-- CONFIG_SYS_SDRAM_BASE:
+- CFG_SYS_SDRAM_BASE:
 		Physical start address of SDRAM. _Must_ be 0 here.
 
 - CONFIG_SYS_FLASH_BASE:
arch/arc/lib/cache.c +2 -2
index 4c696cb53a48..d97a5787424e 100644
@@ -476,9 +476,9 @@ static void __slc_rgn_op(unsigned long paddr, unsigned long sz, const int op)
 static void arc_ioc_setup(void)
 {
 	/* IOC Aperture start is equal to DDR start */
-	unsigned int ap_base = CONFIG_SYS_SDRAM_BASE;
+	unsigned int ap_base = CFG_SYS_SDRAM_BASE;
 	/* IOC Aperture size is equal to DDR size */
-	long ap_size = CONFIG_SYS_SDRAM_SIZE;
+	long ap_size = CFG_SYS_SDRAM_SIZE;
 
 	/* Unsupported configuration. See [ NOTE 2 ] for more details. */
 	if (!slc_exists())
arch/arc/lib/cpu.c +1 -1
index 6b215206a272..156785796183 100644
@@ -20,7 +20,7 @@ int arch_cpu_init(void)
 	timer_init();
 
 	gd->cpu_clk = get_board_sys_clk();
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
 	cache_init();
 
arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c +1 -1
index b4d113dc1e08..954fa5f8b450 100644
@@ -29,7 +29,7 @@
  */
 static void __secure ls1_save_ddr_head(void)
 {
-	const char *src = (const char *)CONFIG_SYS_SDRAM_BASE;
+	const char *src = (const char *)CFG_SYS_SDRAM_BASE;
 	char *dest = (char *)(OCRAM_BASE_S_ADDR + OCRAM_S_SIZE - DDR_RESV_LEN);
 	struct ccsr_scfg __iomem *scfg = (void *)CFG_SYS_FSL_SCFG_ADDR;
 	int i;
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +3 -3
index ef71e2cf2bca..bbaa91f0e108 100644
@@ -1441,7 +1441,7 @@ int dram_init_banksize(void)
 	}
 #endif
 
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	if (gd->ram_size > CONFIG_SYS_DDR_BLOCK1_SIZE) {
 		gd->bd->bi_dram[0].size = CONFIG_SYS_DDR_BLOCK1_SIZE;
 		gd->bd->bi_dram[1].start = CONFIG_SYS_DDR_BLOCK2_BASE;
@@ -1571,7 +1571,7 @@ void update_early_mmu_table(void)
 
 	if (gd->ram_size <= CONFIG_SYS_FSL_DRAM_SIZE1) {
 		mmu_change_region_attr(
-					CONFIG_SYS_SDRAM_BASE,
+					CFG_SYS_SDRAM_BASE,
 					gd->ram_size,
 					PTE_BLOCK_MEMTYPE(MT_NORMAL)	|
 					PTE_BLOCK_OUTER_SHARE		|
@@ -1579,7 +1579,7 @@ void update_early_mmu_table(void)
 					PTE_TYPE_VALID);
 	} else {
 		mmu_change_region_attr(
-					CONFIG_SYS_SDRAM_BASE,
+					CFG_SYS_SDRAM_BASE,
 					CONFIG_SYS_DDR_BLOCK1_SIZE,
 					PTE_BLOCK_MEMTYPE(MT_NORMAL)	|
 					PTE_BLOCK_OUTER_SHARE		|
arch/arm/dts/rockchip-optee.dtsi +2 -2
index 328ba9084504..d84c10cf4363 100644
@@ -32,8 +32,8 @@
 					arch = "arm";
 					os = "tee";
 					compression = "none";
-					load = <(CONFIG_SYS_SDRAM_BASE + 0x8400000)>;
-					entry = <(CONFIG_SYS_SDRAM_BASE + 0x8400000)>;
+					load = <(CFG_SYS_SDRAM_BASE + 0x8400000)>;
+					entry = <(CFG_SYS_SDRAM_BASE + 0x8400000)>;
 
 					blob-ext {
 						filename = "tee.bin";
arch/arm/include/asm/emif.h +1 -1
index 35424345bf02..2141a4581c7c 100644
@@ -583,7 +583,7 @@
 	(DMM_SDRC_MAP_EMIF1_AND_EMIF2 << EMIF_SDRC_MAP_SHIFT) |\
 	(DMM_SDRC_ADDR_SPC_SDRAM << EMIF_SDRC_ADDRSPC_SHIFT) |\
 	(DMM_SDRC_INTL_128B << EMIF_SDRC_INTL_SHIFT) |\
-	(CONFIG_SYS_SDRAM_BASE << EMIF_SYS_ADDR_SHIFT))
+	(CFG_SYS_SDRAM_BASE << EMIF_SYS_ADDR_SHIFT))
 
 #define DMM_LISA_MAP_EMIF1_ONLY_BASE_VAL	(\
 	(DMM_SDRC_MAP_EMIF1_ONLY << EMIF_SDRC_MAP_SHIFT)|\
arch/arm/include/asm/iproc-common/configs.h +1 -1
index 4733c0793c36..c63c27dac7e1 100644
@@ -12,6 +12,6 @@
 #define CONFIG_IPROC
 
 /* Memory Info */
-#define CONFIG_SYS_SDRAM_BASE		0x61000000
+#define CFG_SYS_SDRAM_BASE		0x61000000
 
 #endif /* __IPROC_COMMON_CONFIGS_H */
arch/arm/mach-aspeed/ast2500/board_common.c +1 -1
index aca200223129..bae10271844a 100644
@@ -31,7 +31,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
arch/arm/mach-aspeed/ast2600/board_common.c +1 -1
index 82ff21908f26..dc6cdc35d15c 100644
@@ -54,7 +54,7 @@ int board_init(void)
 	int i = 0, rc;
 	struct udevice *dev;
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	while (1) {
 		rc = uclass_get_device(UCLASS_MISC, i++, &dev);
arch/arm/mach-at91/arm920t/lowlevel_init.S +24 -24

62 lines not on this page · raw message

arch/arm/mach-at91/arm926ejs/lowlevel_init.S +24 -24

62 lines not on this page · raw message

arch/arm/mach-davinci/misc.c +2 -2
index 73fdd1f24329..42078b39f8ab 100644
@@ -26,14 +26,14 @@ int dram_init(void)
 {
 	/* dram_init must store complete ramsize in gd->ram_size */
 	gd->ram_size = get_ram_size(
-			(void *)CONFIG_SYS_SDRAM_BASE,
+			(void *)CFG_SYS_SDRAM_BASE,
 			CONFIG_MAX_RAM_BANK_SIZE);
 	return 0;
 }
 
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	return 0;
arch/arm/mach-exynos/dmc_init_ddr3.c +1 -1
index fa867f27f30e..cad8ccc5315f 100644
@@ -236,7 +236,7 @@ int ddr3_mem_ctrl_init(struct mem_timings *mem, int reset)
  * better have similar timings, since there's only a single adjustment that is
  * shared by both chips).
  */
-const unsigned int test_addr = CONFIG_SYS_SDRAM_BASE;
+const unsigned int test_addr = CFG_SYS_SDRAM_BASE;
 
 /* Test pattern with which RAM will be tested */
 static const unsigned int test_pattern[] = {
arch/arm/mach-imx/imx8m/soc.c +1 -1
index a4863281e360..8050406613d7 100644
@@ -178,7 +178,7 @@ static unsigned int imx8m_find_dram_entry_in_mem_map(void)
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(imx8m_mem_map); i++)
-		if (imx8m_mem_map[i].phys == CONFIG_SYS_SDRAM_BASE)
+		if (imx8m_mem_map[i].phys == CFG_SYS_SDRAM_BASE)
 			return i;
 
 	hang();	/* Entry not found, this must never happen. */
arch/arm/mach-imx/imx8ulp/soc.c +1 -1
index 802cb0e2ba83..5d95fb89a61c 100644
@@ -373,7 +373,7 @@ static unsigned int imx8ulp_find_dram_entry_in_mem_map(void)
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(imx8ulp_arm64_mem_map); i++)
-		if (imx8ulp_arm64_mem_map[i].phys == CONFIG_SYS_SDRAM_BASE)
+		if (imx8ulp_arm64_mem_map[i].phys == CFG_SYS_SDRAM_BASE)
 			return i;
 
 	hang();	/* Entry not found, this must never happen. */
arch/arm/mach-imx/mx6/litesom.c +1 -1
index 699a3dc317f0..2ba3245e226c 100644
@@ -172,7 +172,7 @@ static void spl_dram_init(void)
 	 * Get actual RAM size, so we can adjust DDR row size for <512M
 	 * memories
 	 */
-	ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_512M);
+	ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_512M);
 	if (ram_size < SZ_512M) {
 		mem_ddr.rowaddr = 14;
 		mx6_dram_cfg(&ddr_sysinfo, &mx6_mmcd_calib, &mem_ddr);
arch/arm/mach-imx/mx6/opos6ul.c +1 -1
index e9d78740a157..38ead8ace20c 100644
@@ -44,7 +44,7 @@ static int setup_fec(void)
 int board_init(void)
 {
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_FEC_MXC
 	setup_fec();
arch/arm/mach-imx/spl.c +1 -1
index 6b8f4115c4ea..cb9801b7a13c 100644
@@ -349,7 +349,7 @@ void *board_spl_fit_buffer_addr(ulong fit_size, int sectors, int bl_len)
 #if defined(CONFIG_MX6) && defined(CONFIG_SPL_OS_BOOT)
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = imx_ddr_size();
 
 	return 0;
arch/arm/mach-k3/common.c +1 -1
index 227706e8dca0..d5e1f8e2e780 100644
@@ -561,7 +561,7 @@ void remove_fwl_configs(struct fwl_data *fwl_data, size_t fwl_data_size)
 void spl_enable_dcache(void)
 {
 #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
-	phys_addr_t ram_top = CONFIG_SYS_SDRAM_BASE;
+	phys_addr_t ram_top = CFG_SYS_SDRAM_BASE;
 
 	dram_init();
 
arch/arm/mach-k3/r5_mpu.c +1 -1
index 3d2ff6775a3f..2aec96277e6f 100644
@@ -24,7 +24,7 @@ struct mpu_region_config k3_mpu_regions[16] = {
 	 O_I_WB_RD_WR_ALLOC, REGION_8MB},
 
 	/* U-Boot's code area marking it as WB and Write allocate */
-	{CONFIG_SYS_SDRAM_BASE, REGION_2, XN_DIS, PRIV_RW_USR_RW,
+	{CFG_SYS_SDRAM_BASE, REGION_2, XN_DIS, PRIV_RW_USR_RW,
 	 O_I_WB_RD_WR_ALLOC, REGION_2GB},
 	/* mcu_r5fss0_core0 BTCM area marking it as WB and Write allocate. */
 	{0x41010000, 3, XN_DIS, PRIV_RW_USR_RW, O_I_WB_RD_WR_ALLOC,
arch/arm/mach-keystone/ddr3.c +1 -1
index 53117c2695cf..ea7d0b903cf6 100644
@@ -318,7 +318,7 @@ void ddr3_init_ecc(u32 base, u32 ddr3_size)
 	}
 
 	ddr3_ecc_init_range(base);
-	ddr3_reset_data(CONFIG_SYS_SDRAM_BASE, ddr3_size);
+	ddr3_reset_data(CFG_SYS_SDRAM_BASE, ddr3_size);
 
 	/* mapping DDR3 ECC system interrupt from CIC2 to GIC */
 #if defined(CONFIG_SOC_K2HK) || defined(CONFIG_SOC_K2L)
arch/arm/mach-mediatek/mt7623/init.c +2 -2
index 5d837e059719..988b057e5984 100644
@@ -25,7 +25,7 @@ int dram_init(void)
 {
 	u32 i;
 
-	if (((size_t)preloader_param >= CONFIG_SYS_SDRAM_BASE) &&
+	if (((size_t)preloader_param >= CFG_SYS_SDRAM_BASE) &&
 	    ((size_t)preloader_param % sizeof(size_t) == 0) &&
 	    preloader_param->magic == BOOT_ARGUMENT_MAGIC &&
 	    preloader_param->dram_rank_num <=
@@ -35,7 +35,7 @@ int dram_init(void)
 		for (i = 0; i < preloader_param->dram_rank_num; i++)
 			gd->ram_size += preloader_param->dram_rank_size[i];
 	} else {
-		gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+		gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
 					    SZ_2G);
 	}
 
arch/arm/mach-mediatek/mt7981/init.c +1 -1
index a8955064e031..d8b10f035808 100644
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_2G);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_2G);
 
 	return 0;
 }
arch/arm/mach-mediatek/mt7986/init.c +1 -1
index cf89e63e80ad..fb74b2f34d7b 100644
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_2G);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_2G);
 
 	return 0;
 }
arch/arm/mach-mvebu/alleycat5/cpu.c +3 -3
index cc7f9794c547..8204d9627515 100644
@@ -21,8 +21,8 @@ DECLARE_GLOBAL_DATA_PTR;
 static struct mm_region ac5_mem_map[] = {
 	{
 		/* RAM */
-		.phys = CONFIG_SYS_SDRAM_BASE,
-		.virt = CONFIG_SYS_SDRAM_BASE,
+		.phys = CFG_SYS_SDRAM_BASE,
+		.virt = CFG_SYS_SDRAM_BASE,
 		.attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
 			 PTE_BLOCK_INNER_SHARE
 	},
@@ -102,7 +102,7 @@ int alleycat5_dram_init_banksize(void)
 	/*
 	 * Config single DRAM bank
 	 */
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	return 0;
arch/arm/mach-mvebu/arm64-common.c +1 -1
index e3098a7ca878..2c94f899f373 100644
@@ -32,7 +32,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-	unsigned long top = CONFIG_SYS_SDRAM_BASE + min(gd->ram_size, USABLE_RAM_SIZE);
+	unsigned long top = CFG_SYS_SDRAM_BASE + min(gd->ram_size, USABLE_RAM_SIZE);
 
 	return (gd->ram_top > top) ? top : gd->ram_top;
 }
arch/arm/mach-mvebu/armada8k/dram.c +1 -1
index bab375e18acc..6c801bfa1db7 100644
@@ -38,7 +38,7 @@ int a8k_dram_init_banksize(void)
 	 */
 	phys_size_t max_bank0_size = SZ_4G - SZ_1G;
 
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	if (gd->ram_size <= max_bank0_size) {
 		gd->bd->bi_dram[0].size = gd->ram_size;
 		return 0;
arch/arm/mach-omap2/am33xx/board.c +3 -3
index 44d5214a3df1..86755d6d9543 100644
@@ -72,14 +72,14 @@ int dram_init(void)
 
 	/* dram_init must store complete ramsize in gd->ram_size */
 	gd->ram_size = get_ram_size(
-			(void *)CONFIG_SYS_SDRAM_BASE,
+			(void *)CFG_SYS_SDRAM_BASE,
 			CONFIG_MAX_RAM_BANK_SIZE);
 	return 0;
 }
 
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	return 0;
@@ -520,7 +520,7 @@ void board_init_f(ulong dummy)
 	sdram_init();
 	/* dram_init must store complete ramsize in gd->ram_size */
 	gd->ram_size = get_ram_size(
-			(void *)CONFIG_SYS_SDRAM_BASE,
+			(void *)CFG_SYS_SDRAM_BASE,
 			CONFIG_MAX_RAM_BANK_SIZE);
 }
 #endif
arch/arm/mach-omap2/emif-common.c +4 -4
index 312f868fbc71..a6a97af37d7b 100644
@@ -389,7 +389,7 @@ static void dra7_enable_ecc(u32 base, const struct emif_regs *regs)
 		/* Set region1 memory with 0 */
 		rgn_start = (regs->emif_ecc_address_range_1 &
 			     EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16;
-		rgn = rgn_start + CONFIG_SYS_SDRAM_BASE;
+		rgn = rgn_start + CFG_SYS_SDRAM_BASE;
 		size = (regs->emif_ecc_address_range_1 &
 			EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0x10000 - rgn_start;
 
@@ -400,7 +400,7 @@ static void dra7_enable_ecc(u32 base, const struct emif_regs *regs)
 		/* Set region2 memory with 0 */
 		rgn_start = (regs->emif_ecc_address_range_2 &
 			     EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16;
-		rgn = rgn_start + CONFIG_SYS_SDRAM_BASE;
+		rgn = rgn_start + CFG_SYS_SDRAM_BASE;
 		size = (regs->emif_ecc_address_range_2 &
 			EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0x10000 - rgn_start;
 
@@ -1340,7 +1340,7 @@ void dmm_init(u32 base)
 
 	mapped_size = 0;
 	section_cnt = 3;
-	sys_addr = CONFIG_SYS_SDRAM_BASE;
+	sys_addr = CFG_SYS_SDRAM_BASE;
 	emif1_size = get_emif_mem_size(EMIF1_BASE);
 	emif2_size = get_emif_mem_size(EMIF2_BASE);
 	debug("emif1_size 0x%x emif2_size 0x%x\n", emif1_size, emif2_size);
@@ -1568,7 +1568,7 @@ void sdram_init(void)
 		size_prog = log_2_n_round_down(size_prog);
 		size_prog = (1 << size_prog);
 
-		size_detect = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+		size_detect = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
 						size_prog);
 		/* Compare with the size programmed */
 		if (size_detect != size_prog) {
arch/arm/mach-omap2/sec-common.c +2 -2
index 0551bc125e8f..0f9b915ea3dd 100644
@@ -198,11 +198,11 @@ u32 get_sec_mem_start(void)
 	 */
 	if (sec_mem_start == 0)
 		sec_mem_start =
-			(CONFIG_SYS_SDRAM_BASE + (
+			(CFG_SYS_SDRAM_BASE + (
 #if defined(CONFIG_OMAP54XX)
 			omap_sdram_size()
 #else
-			get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+			get_ram_size((void *)CFG_SYS_SDRAM_BASE,
 				     CONFIG_MAX_RAM_BANK_SIZE)
 #endif
 			- sec_mem_size));
arch/arm/mach-owl/soc.c +1 -1
index 4baef2eed3e4..f0f46f2dcb74 100644
@@ -50,7 +50,7 @@ int dram_init(void)
 /* This is called after dram_init() so use get_ram_size result */
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	return 0;
arch/arm/mach-rockchip/sdram.c +8 -8
index 12f1d7ee5637..e086c47f3c00 100644
@@ -37,7 +37,7 @@ struct tos_parameter_t {
 
 int dram_init_banksize(void)
 {
-	size_t top = min((unsigned long)(gd->ram_size + CONFIG_SYS_SDRAM_BASE),
+	size_t top = min((unsigned long)(gd->ram_size + CFG_SYS_SDRAM_BASE),
 			 (unsigned long)(gd->ram_top));
 
 #ifdef CONFIG_ARM64
@@ -48,26 +48,26 @@ int dram_init_banksize(void)
 #ifdef CONFIG_SPL_OPTEE_IMAGE
 	struct tos_parameter_t *tos_parameter;
 
-	tos_parameter = (struct tos_parameter_t *)(CONFIG_SYS_SDRAM_BASE +
+	tos_parameter = (struct tos_parameter_t *)(CFG_SYS_SDRAM_BASE +
 			TRUST_PARAMETER_OFFSET);
 
 	if (tos_parameter->tee_mem.flags == 1) {
-		gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+		gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 		gd->bd->bi_dram[0].size = tos_parameter->tee_mem.phy_addr
-					- CONFIG_SYS_SDRAM_BASE;
+					- CFG_SYS_SDRAM_BASE;
 		gd->bd->bi_dram[1].start = tos_parameter->tee_mem.phy_addr +
 					tos_parameter->tee_mem.size;
 		gd->bd->bi_dram[1].size = top - gd->bd->bi_dram[1].start;
 	} else {
-		gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+		gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 		gd->bd->bi_dram[0].size = 0x8400000;
 		/* Reserve 32M for OPTEE with TA */
-		gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE
+		gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE
 					+ gd->bd->bi_dram[0].size + 0x2000000;
 		gd->bd->bi_dram[1].size = top - gd->bd->bi_dram[1].start;
 	}
 #else
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = top - gd->bd->bi_dram[0].start;
 #endif
 #endif
@@ -207,7 +207,7 @@ int dram_init(void)
 
 phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-	unsigned long top = CONFIG_SYS_SDRAM_BASE + SDRAM_MAX_SIZE;
+	unsigned long top = CFG_SYS_SDRAM_BASE + SDRAM_MAX_SIZE;
 
 	return (gd->ram_top > top) ? top : gd->ram_top;
 }
arch/arm/mach-socfpga/board.c +1 -1
index b49006c6c8a6..09e09192fba2 100644
@@ -46,7 +46,7 @@ void s_init(void) {
 int board_init(void)
 {
 	/* Address of boot parameters for ATAG (if ATAG is used) */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
arch/arm/mach-sunxi/dram_helpers.c +4 -4
index 2c873192e608..cdf2750f1c52 100644
@@ -33,11 +33,11 @@ void mctl_await_completion(u32 *reg, u32 mask, u32 val)
 bool mctl_mem_matches(u32 offset)
 {
 	/* Try to write different values to RAM at two addresses */
-	writel(0, CONFIG_SYS_SDRAM_BASE);
-	writel(0xaa55aa55, (ulong)CONFIG_SYS_SDRAM_BASE + offset);
+	writel(0, CFG_SYS_SDRAM_BASE);
+	writel(0xaa55aa55, (ulong)CFG_SYS_SDRAM_BASE + offset);
 	dsb();
 	/* Check if the same value is actually observed when reading back */
-	return readl(CONFIG_SYS_SDRAM_BASE) ==
-	       readl((ulong)CONFIG_SYS_SDRAM_BASE + offset);
+	return readl(CFG_SYS_SDRAM_BASE) ==
+	       readl((ulong)CFG_SYS_SDRAM_BASE + offset);
 }
 #endif
arch/arm/mach-sunxi/dram_suniv.c +10 -10
index 56c2d557ff13..3aa3ce76272c 100644
@@ -175,9 +175,9 @@ static int sdr_readpipe_scan(void)
 	u32 k = 0;
 
 	for (k = 0; k < 32; k++)
-		writel(k, CONFIG_SYS_SDRAM_BASE + 4 * k);
+		writel(k, CFG_SYS_SDRAM_BASE + 4 * k);
 	for (k = 0; k < 32; k++) {
-		if (readl(CONFIG_SYS_SDRAM_BASE + 4 * k) != k)
+		if (readl(CFG_SYS_SDRAM_BASE + 4 * k) != k)
 			return 0;
 	}
 	return 1;
@@ -266,11 +266,11 @@ static u32 dram_get_dram_size(struct dram_para *para)
 	dram_para_setup(para);
 	dram_scan_readpipe(para);
 	for (i = 0; i < 32; i++) {
-		*((u8 *)(CONFIG_SYS_SDRAM_BASE + 0x200 + i)) = 0x11;
-		*((u8 *)(CONFIG_SYS_SDRAM_BASE + 0x600 + i)) = 0x22;
+		*((u8 *)(CFG_SYS_SDRAM_BASE + 0x200 + i)) = 0x11;
+		*((u8 *)(CFG_SYS_SDRAM_BASE + 0x600 + i)) = 0x22;
 	}
 	for (i = 0; i < 32; i++) {
-		val1 = *((u8 *)(CONFIG_SYS_SDRAM_BASE + 0x200 + i));
+		val1 = *((u8 *)(CFG_SYS_SDRAM_BASE + 0x200 + i));
 		if (val1 == 0x22)
 			count++;
 	}
@@ -283,11 +283,11 @@ static u32 dram_get_dram_size(struct dram_para *para)
 	para->row_width = rowflag;
 	dram_para_setup(para);
 	if (colflag == 10) {
-		addr1 = CONFIG_SYS_SDRAM_BASE + 0x400000;
-		addr2 = CONFIG_SYS_SDRAM_BASE + 0xc00000;
+		addr1 = CFG_SYS_SDRAM_BASE + 0x400000;
+		addr2 = CFG_SYS_SDRAM_BASE + 0xc00000;
 	} else {
-		addr1 = CONFIG_SYS_SDRAM_BASE + 0x200000;
-		addr2 = CONFIG_SYS_SDRAM_BASE + 0x600000;
+		addr1 = CFG_SYS_SDRAM_BASE + 0x200000;
+		addr2 = CFG_SYS_SDRAM_BASE + 0x600000;
 	}
 	for (i = 0; i < 32; i++) {
 		*((u8 *)(addr1 + i)) = 0x33;
@@ -319,7 +319,7 @@ static u32 dram_get_dram_size(struct dram_para *para)
 
 static void simple_dram_check(void)
 {
-	volatile u32 *dram = (u32 *)CONFIG_SYS_SDRAM_BASE;
+	volatile u32 *dram = (u32 *)CFG_SYS_SDRAM_BASE;
 	int i;
 
 	for (i = 0; i < 0x40; i++)
arch/arm/mach-sunxi/dram_sunxi_dw.c +3 -3
index 9107b114df5e..4af5922f334d 100644
@@ -711,7 +711,7 @@ static unsigned long mctl_calc_rank_size(struct rank_para *rank)
  */
 static void mctl_r40_detect_rank_count(struct dram_para *para)
 {
-	ulong rank1_base = (ulong) CONFIG_SYS_SDRAM_BASE +
+	ulong rank1_base = (ulong) CFG_SYS_SDRAM_BASE +
 			   mctl_calc_rank_size(&para->ranks[0]);
 	struct sunxi_mctl_ctl_reg * const mctl_ctl =
 			(struct sunxi_mctl_ctl_reg *)SUNXI_DRAM_CTL0_BASE;
@@ -744,10 +744,10 @@ static void mctl_r40_detect_rank_count(struct dram_para *para)
 
 static void mctl_auto_detect_dram_size(uint16_t socid, struct dram_para *para)
 {
-	mctl_auto_detect_dram_size_rank(socid, para, (ulong)CONFIG_SYS_SDRAM_BASE, &para->ranks[0]);
+	mctl_auto_detect_dram_size_rank(socid, para, (ulong)CFG_SYS_SDRAM_BASE, &para->ranks[0]);
 
 	if ((socid == SOCID_A64 || socid == SOCID_R40) && para->dual_rank) {
-		mctl_auto_detect_dram_size_rank(socid, para, (ulong)CONFIG_SYS_SDRAM_BASE + mctl_calc_rank_size(&para->ranks[0]), &para->ranks[1]);
+		mctl_auto_detect_dram_size_rank(socid, para, (ulong)CFG_SYS_SDRAM_BASE + mctl_calc_rank_size(&para->ranks[0]), &para->ranks[1]);
 	}
 }
 
arch/arm/mach-tegra/board2.c +2 -2
index 82d3d3350284..54bbd8a776e9 100644
@@ -370,7 +370,7 @@ int dram_init_banksize(void)
 
 	/* fall back to default DRAM bank size computation */
 
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = usable_ram_size_below_4g();
 
 #ifdef CONFIG_PCI
@@ -412,5 +412,5 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 
 	/* fall back to default usable RAM computation */
 
-	return CONFIG_SYS_SDRAM_BASE + usable_ram_size_below_4g();
+	return CFG_SYS_SDRAM_BASE + usable_ram_size_below_4g();
 }
arch/arm/mach-zynq/cpu.c +1 -1
index ac595ee0a271..3b6518c71c90 100644
@@ -54,7 +54,7 @@ int arch_cpu_init(void)
 	writel(0x757BDF0D, &devcfg_base->unlock);
 	writel(0xFFFFFFFF, &devcfg_base->rom_shadow);
 
-#if (CONFIG_SYS_SDRAM_BASE == 0)
+#if (CFG_SYS_SDRAM_BASE == 0)
 	/* remap DDR to zero, FILTERSTART */
 	writel(0, &scu_base->filter_start);
 
arch/m68k/cpu/mcf532x/speed.c +1 -1
index e2985792d96f..dac2229f72e1 100644
@@ -239,7 +239,7 @@ int clock_pll(int fsys, int flags)
 	 * software workaround for SDRAM opeartion after exiting LIMP
 	 * mode errata
 	 */
-	out_be32(sdram_workaround, CONFIG_SYS_SDRAM_BASE);
+	out_be32(sdram_workaround, CFG_SYS_SDRAM_BASE);
 #endif
 
 	/* wait for DQS logic to relock */
arch/m68k/include/asm/immap.h +2 -2
index f2eb6fcb463b..672aa0bb14ea 100644
@@ -338,9 +338,9 @@
 
 #ifdef CONFIG_PCI
 #define CFG_SYS_PCI_BAR0		(0x40000000)
-#define CFG_SYS_PCI_BAR1		(CONFIG_SYS_SDRAM_BASE)
+#define CFG_SYS_PCI_BAR1		(CFG_SYS_SDRAM_BASE)
 #define CFG_SYS_PCI_TBATR0		(CONFIG_SYS_MBAR)
-#define CFG_SYS_PCI_TBATR1		(CONFIG_SYS_SDRAM_BASE)
+#define CFG_SYS_PCI_TBATR1		(CFG_SYS_SDRAM_BASE)
 #endif
 #endif				/* CONFIG_M547x */
 
arch/m68k/lib/traps.c +1 -1
index 0c2c1a996552..28fe803928ea 100644
@@ -62,7 +62,7 @@ static void trap_init(ulong value) {
 
 int arch_initr_trap(void)
 {
-	trap_init(CONFIG_SYS_SDRAM_BASE);
+	trap_init(CFG_SYS_SDRAM_BASE);
 
 	return 0;
 }
arch/mips/lib/traps.c +1 -1
index 7577fdd25d79..7a682f256a65 100644
@@ -135,7 +135,7 @@ void trap_restore(void)
 
 int arch_initr_trap(void)
 {
-	trap_init(CONFIG_SYS_SDRAM_BASE);
+	trap_init(CFG_SYS_SDRAM_BASE);
 
 	return 0;
 }
arch/mips/mach-jz47xx/jz4780/jz4780.c +1 -1
index cff98b0a7707..15d1eff2ba7a 100644
@@ -78,7 +78,7 @@ void board_init_f(ulong dummy)
 
 phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-	return CONFIG_SYS_SDRAM_BASE + (256 * 1024 * 1024);
+	return CFG_SYS_SDRAM_BASE + (256 * 1024 * 1024);
 }
 
 int print_cpuinfo(void)
arch/mips/mach-mscc/cpu.c +4 -4
index 5bc31006aa15..d484eb92c419 100644
@@ -17,16 +17,16 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if CONFIG_SYS_SDRAM_SIZE <= SZ_64M
+#if CFG_SYS_SDRAM_SIZE <= SZ_64M
 #define MSCC_RAM_TLB_SIZE   SZ_64M
 #define MSCC_ATTRIB2   MMU_REGIO_INVAL
-#elif CONFIG_SYS_SDRAM_SIZE <= SZ_128M
+#elif CFG_SYS_SDRAM_SIZE <= SZ_128M
 #define MSCC_RAM_TLB_SIZE   SZ_64M
 #define MSCC_ATTRIB2   MMU_REGIO_RW
-#elif CONFIG_SYS_SDRAM_SIZE <= SZ_256M
+#elif CFG_SYS_SDRAM_SIZE <= SZ_256M
 #define MSCC_RAM_TLB_SIZE   SZ_256M
 #define MSCC_ATTRIB2   MMU_REGIO_INVAL
-#elif CONFIG_SYS_SDRAM_SIZE <= SZ_512M
+#elif CFG_SYS_SDRAM_SIZE <= SZ_512M
 #define MSCC_RAM_TLB_SIZE   SZ_256M
 #define MSCC_ATTRIB2   MMU_REGIO_RW
 #else
arch/mips/mach-mscc/dram.c +1 -1
index c53a4202e0d9..f7fbd33cc4b9 100644
@@ -67,6 +67,6 @@ int print_cpuinfo(void)
 
 int dram_init(void)
 {
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 	return 0;
 }
arch/mips/mach-mscc/include/mach/ddr.h +1 -1
index d52eabbd2b1f..75fb3ca00d2c 100644
@@ -13,7 +13,7 @@
 #include <mach/common.h>
 
 #define MIPS_VCOREIII_MEMORY_DDR3
-#define MIPS_VCOREIII_DDR_SIZE CONFIG_SYS_SDRAM_SIZE
+#define MIPS_VCOREIII_DDR_SIZE CFG_SYS_SDRAM_SIZE
 
 #if defined(CONFIG_DDRTYPE_H5TQ1G63BFA)	/* Serval1 Refboard */
 
arch/mips/mach-mtmips/mt7621/spl/start.S +1 -1
index 3cad3567e72a..6b9f253952a1 100644
@@ -18,7 +18,7 @@
 #include "dram.h"
 
 #ifndef CONFIG_SYS_INIT_SP_ADDR
-#define CONFIG_SYS_INIT_SP_ADDR	(CONFIG_SYS_SDRAM_BASE + \
+#define CONFIG_SYS_INIT_SP_ADDR	(CFG_SYS_SDRAM_BASE + \
 				CONFIG_SYS_INIT_SP_OFFSET)
 #endif
 
arch/mips/mach-octeon/dram.c +1 -1
index 9c5789b1c8eb..85cb084c13ff 100644
@@ -81,7 +81,7 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
 	if (IS_ENABLED(CONFIG_RAM_OCTEON)) {
 		/* Map a maximum of 256MiB - return not size but address */
-		return CONFIG_SYS_SDRAM_BASE + min(gd->ram_size,
+		return CFG_SYS_SDRAM_BASE + min(gd->ram_size,
 						   UBOOT_RAM_SIZE_MAX);
 	} else {
 		return gd->ram_top;
arch/nios2/cpu/cpu.c +1 -1
index 4dd9c10faa5a..85544503a5ee 100644
@@ -73,7 +73,7 @@ static int nios_cpu_setup(void *ctx, struct event *event)
 	if (ret)
 		return ret;
 
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #ifndef CONFIG_ROM_STUBS
 	copy_exception_trampoline();
 #endif
arch/powerpc/cpu/mpc83xx/spd_sdram.c +1 -1
index e12043b26093..6d1c6b055c6b 100644
@@ -288,7 +288,7 @@ long int spd_sdram()
 	/*
 	 * Set up LAWBAR for all of DDR.
 	 */
-	ecm->bar = CONFIG_SYS_SDRAM_BASE & 0xfffff000;
+	ecm->bar = CFG_SYS_SDRAM_BASE & 0xfffff000;
 	ecm->ar  = (LAWAR_EN | LAWAR_TRGT_IF_DDR | (LAWAR_SIZE & law_size));
 	debug("DDR:bar=0x%08x\n", ecm->bar);
 	debug("DDR:ar=0x%08x\n", ecm->ar);
arch/powerpc/cpu/mpc85xx/cpu.c +1 -1
index b0363c9c1028..6acd31d28479 100644
@@ -424,7 +424,7 @@ int dram_init(void)
 	defined(CONFIG_ARCH_QEMU_E500)
 	gd->ram_size = fsl_ddr_sdram_size();
 #else
-	gd->ram_size = (phys_size_t)CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+	gd->ram_size = (phys_size_t)CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 #endif
 
 	return 0;
arch/powerpc/cpu/mpc85xx/mp.c +1 -1
index f109ecb9ff76..44f8ed8a19a3 100644
@@ -195,7 +195,7 @@ u32 determine_mp_bootpg(unsigned int *pagesize)
 	/* use last 4K of mapped memory */
 	bootpg = ((gd->ram_size > CONFIG_MAX_MEM_MAPPED) ?
 		CONFIG_MAX_MEM_MAPPED : gd->ram_size) +
-		CONFIG_SYS_SDRAM_BASE - 4096;
+		CFG_SYS_SDRAM_BASE - 4096;
 	if (pagesize)
 		*pagesize = 4096;
 
arch/powerpc/cpu/mpc8xxx/pamu_table.c +1 -1
index d917e9dfb62f..71496ab294d2 100644
@@ -16,7 +16,7 @@ void construct_pamu_addr_table(struct pamu_addr_tbl *tbl, int *num_entries)
 	int j;
 
 	tbl->start_addr[i] =
-			(uint64_t)virt_to_phys((void *)CONFIG_SYS_SDRAM_BASE);
+			(uint64_t)virt_to_phys((void *)CFG_SYS_SDRAM_BASE);
 	tbl->size[i] = (phys_size_t)(min(gd->ram_size, CONFIG_MAX_MEM_MAPPED));
 	tbl->end_addr[i] = tbl->start_addr[i] +  tbl->size[i] - 1;
 
arch/powerpc/lib/bootm.c +1 -1
index 8ae8d8a3e7d6..1df0822e9d73 100644
@@ -126,7 +126,7 @@ void arch_lmb_reserve(struct lmb *lmb)
 
 #ifdef DEBUG
 	if (((u64)bootmap_base + bootm_size) >
-	    (CONFIG_SYS_SDRAM_BASE + (u64)gd->ram_size))
+	    (CFG_SYS_SDRAM_BASE + (u64)gd->ram_size))
 		puts("WARNING: bootm_low + bootm_size exceed total memory\n");
 	if ((bootmap_base + bootm_size) > get_effective_memsize())
 		puts("WARNING: bootm_low + bootm_size exceed eff. memory\n");
arch/sandbox/cpu/state.c +1 -1
index a681e472ab65..dd7978cfced3 100644
@@ -448,7 +448,7 @@ int state_init(void)
 {
 	state = &main_state;
 
-	state->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	state->ram_size = CFG_SYS_SDRAM_SIZE;
 	state->ram_buf = os_malloc(state->ram_size);
 	if (!state->ram_buf) {
 		printf("Out of memory\n");
arch/sandbox/dts/sandbox.dts +1 -1
index 2051207f0ba9..88b57bfb7e5f 100644
@@ -25,7 +25,7 @@
 	};
 
 	memory {
-		reg = <0 CONFIG_SYS_SDRAM_SIZE>;
+		reg = <0 CFG_SYS_SDRAM_SIZE>;
 	};
 
 	reserved-memory {
arch/sandbox/dts/sandbox64.dts +1 -1
index 3eb045708914..a9cd7908f83e 100644
@@ -21,7 +21,7 @@
 	};
 
 	memory {
-		reg = /bits/ 64 <0 CONFIG_SYS_SDRAM_SIZE>;
+		reg = /bits/ 64 <0 CFG_SYS_SDRAM_SIZE>;
 	};
 
 	reserved-memory {
arch/sh/cpu/u-boot.lds +1 -1
index 85ee547b4aae..d360eea7eba3 100644
@@ -18,7 +18,7 @@ OUTPUT_ARCH(sh)
 
 MEMORY
 {
-	ram	: ORIGIN = CONFIG_SYS_SDRAM_BASE, LENGTH = CONFIG_SYS_SDRAM_SIZE
+	ram	: ORIGIN = CFG_SYS_SDRAM_BASE, LENGTH = CFG_SYS_SDRAM_SIZE
 }
 
 ENTRY(_start)
arch/sh/lib/board.c +2 -2
index 3fa093a02ea3..b31fa6d70311 100644
@@ -11,8 +11,8 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
arch/sh/lib/bootm.c +1 -1
index a5fad6c46c7e..b205e5e3db1b 100644
@@ -88,7 +88,7 @@ int do_bootm_linux(int flag, int argc, char *const argv[],
 		set_sh_linux_param((unsigned long)param + ORIG_ROOT_DEV, 0x0200);
 		set_sh_linux_param((unsigned long)param + LOADER_TYPE, 0x0001);
 		set_sh_linux_param((unsigned long)param + INITRD_START,
-			GET_INITRD_START(images->rd_start, CONFIG_SYS_SDRAM_BASE));
+			GET_INITRD_START(images->rd_start, CFG_SYS_SDRAM_BASE));
 		set_sh_linux_param((unsigned long)param + INITRD_SIZE,
 			images->rd_end - images->rd_start);
 	}
arch/xtensa/cpu/cpu.c +1 -1
index a09e103fc1d6..98d9753b7e34 100644
@@ -45,7 +45,7 @@ int print_cpuinfo(void)
 
 int arch_cpu_init(void)
 {
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 	return 0;
 }
 
board/BuR/brppt1/board.c +1 -1
index c8dc186cddf2..36945bbdccf5 100644
@@ -150,7 +150,7 @@ int board_init(void)
 #if defined(CONFIG_HW_WATCHDOG)
 	hw_watchdog_init();
 #endif
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/BuS/eb_cpu5282/eb_cpu5282.c +10 -10
index 2b08930af6f6..f9a37e7215c9 100644
@@ -40,8 +40,8 @@ int dram_init(void)
 	MCFSDRAMC_DCR = MCFSDRAMC_DCR_RTIM_6 |
 			MCFSDRAMC_DCR_RC((15 * CONFIG_SYS_CLK / 1000000) >> 4);
 	asm (" nop");
-#ifdef CONFIG_SYS_SDRAM_BASE0
-	MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE(CONFIG_SYS_SDRAM_BASE0)|
+#ifdef CFG_SYS_SDRAM_BASE0
+	MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE(CFG_SYS_SDRAM_BASE0)|
 		MCFSDRAMC_DACR_CASL(1) | MCFSDRAMC_DACR_CBM(3) |
 		MCFSDRAMC_DACR_PS_32;
 	asm (" nop");
@@ -54,7 +54,7 @@ int dram_init(void)
 	for (i = 0; i < 10; i++)
 		asm (" nop");
 
-	*(unsigned long *)(CONFIG_SYS_SDRAM_BASE0) = 0xA5A5A5A5;
+	*(unsigned long *)(CFG_SYS_SDRAM_BASE0) = 0xA5A5A5A5;
 	asm (" nop");
 	MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_RE;
 	asm (" nop");
@@ -65,12 +65,12 @@ int dram_init(void)
 	MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_IMRS;
 	asm (" nop");
 	/* write SDRAM mode register */
-	*(unsigned long *)(CONFIG_SYS_SDRAM_BASE0 + 0x80440) = 0xA5A5A5A5;
+	*(unsigned long *)(CFG_SYS_SDRAM_BASE0 + 0x80440) = 0xA5A5A5A5;
 	asm (" nop");
-	size += CONFIG_SYS_SDRAM_SIZE0 * 1024 * 1024;
+	size += CFG_SYS_SDRAM_SIZE0 * 1024 * 1024;
 #endif
-#ifdef CONFIG_SYS_SDRAM_BASE1xx
-	MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE (CONFIG_SYS_SDRAM_BASE1)
+#ifdef CFG_SYS_SDRAM_BASE1xx
+	MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE (CFG_SYS_SDRAM_BASE1)
 			| MCFSDRAMC_DACR_CASL (1)
 			| MCFSDRAMC_DACR_CBM (3)
 			| MCFSDRAMC_DACR_PS_16;
@@ -79,15 +79,15 @@ int dram_init(void)
 
 	MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IP;
 
-	*(unsigned short *) (CONFIG_SYS_SDRAM_BASE1) = 0xA5A5;
+	*(unsigned short *) (CFG_SYS_SDRAM_BASE1) = 0xA5A5;
 	MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_RE;
 
 	for (i = 0; i < 2000; i++)
 		asm (" nop");
 
 	MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IMRS;
-	*(unsigned int *) (CONFIG_SYS_SDRAM_BASE1 + 0x220) = 0xA5A5;
-	size += CONFIG_SYS_SDRAM_SIZE1 * 1024 * 1024;
+	*(unsigned int *) (CFG_SYS_SDRAM_BASE1 + 0x220) = 0xA5A5;
+	size += CFG_SYS_SDRAM_SIZE1 * 1024 * 1024;
 #endif
 	gd->ram_size = size;
 
board/CZ.NIC/turris_mox/turris_mox.c +1 -1
index ff1c4cb17073..a52a032e4d5d 100644
@@ -139,7 +139,7 @@ int board_fix_fdt(void *blob)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/Marvell/mvebu_alleycat-5/board.c +1 -1
index 619cd6c6cd35..0c4f8e03b859 100644
@@ -7,7 +7,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/Marvell/mvebu_armada-37xx/board.c +1 -1
index c6ecc323bb99..45fe3e5f0bdf 100644
@@ -80,7 +80,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/Marvell/mvebu_armada-8k/board.c +1 -1
index 77c7dd7ab0e8..a8899af6e5af 100644
@@ -150,7 +150,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/Marvell/octeontx/board.c +1 -1
index 059ebf8f1727..224653519b95 100644
@@ -63,7 +63,7 @@ int timer_init(void)
 int dram_init(void)
 {
 	gd->ram_size = smc_dram_size(0);
-	gd->ram_size -= CONFIG_SYS_SDRAM_BASE;
+	gd->ram_size -= CFG_SYS_SDRAM_BASE;
 	mem_map_fill();
 
 	return 0;
board/Marvell/octeontx2/board.c +1 -1
index 63aa2d613496..e7899f49f0c2 100644
@@ -105,7 +105,7 @@ int timer_init(void)
 int dram_init(void)
 {
 	gd->ram_size = smc_dram_size(0);
-	gd->ram_size -= CONFIG_SYS_SDRAM_BASE;
+	gd->ram_size -= CFG_SYS_SDRAM_BASE;
 
 	mem_map_fill();
 
board/Marvell/octeontx2_cn913x/board.c +1 -1
index 953e9db9c8e8..3d20cfb2fabe 100644
@@ -34,7 +34,7 @@ int board_early_init_r(void)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/armltd/integrator/integrator.c +3 -3
index 4959a7fd6dcf..ad02cf16da5e 100644
@@ -137,7 +137,7 @@ int misc_init_r (void)
 
 int dram_init (void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 #ifdef CONFIG_CM_SPD_DETECT
 	{
 extern void dram_query(void);
@@ -160,12 +160,12 @@ extern void dram_query(void);
 	 *
 	 */
 	sdram_shift = ((cm_reg_sdram & 0x0000001C)/4)%4;
-	gd->ram_size = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE +
+	gd->ram_size = get_ram_size((long *) CFG_SYS_SDRAM_BASE +
 				    REMAPPED_FLASH_SZ,
 				    0x01000000 << sdram_shift);
 	}
 #else
-	gd->ram_size = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE +
+	gd->ram_size = get_ram_size((long *) CFG_SYS_SDRAM_BASE +
 				    REMAPPED_FLASH_SZ,
 				    PHYS_SDRAM_1_SIZE);
 #endif /* CM_SPD_DETECT */
board/armltd/vexpress/vexpress_common.c +1 -1
index 1c8301926531..763131c217e5 100644
@@ -73,7 +73,7 @@ static void flash__init(void)
 int dram_init(void)
 {
 	gd->ram_size =
-		get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
+		get_ram_size((long *)CFG_SYS_SDRAM_BASE, PHYS_SDRAM_1_SIZE);
 	return 0;
 }
 
board/astro/mcf5373l/mcf5373l.c +6 -6
index 3e2f79a1cf4c..43563c412793 100644
@@ -39,12 +39,12 @@ int dram_init(void)
 	 * GPIO configuration for bus should be set correctly from reset,
 	 * so we do not care! First, set up address space: at this point,
 	 * we should be running from internal SRAM;
-	 * so use CONFIG_SYS_SDRAM_BASE as the base address for SDRAM,
+	 * so use CFG_SYS_SDRAM_BASE as the base address for SDRAM,
 	 * and do not care where it is
 	 */
-	__raw_writel((CONFIG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000018,
+	__raw_writel((CFG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000018,
 			&sdp->cs0);
-	__raw_writel((CONFIG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000000,
+	__raw_writel((CFG_SYS_SDRAM_BASE & 0xFFF00000) | 0x00000000,
 			&sdp->cs1);
 	/*
 	 * I am not sure from the data sheet, but it seems burst length
@@ -72,7 +72,7 @@ int dram_init(void)
 	 */
 	__raw_writel(0x71462C00, &sdp->ctrl);
 	/* Dummy write to start SDRAM */
-	writel(0, CONFIG_SYS_SDRAM_BASE);
+	writel(0, CFG_SYS_SDRAM_BASE);
 #endif
 
 	/*
@@ -82,8 +82,8 @@ int dram_init(void)
 	 * (Do not rely on the SDCS register(s) being set to 0x00000000
 	 * during reset as stated in the data sheet.)
 	 */
-	gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
-				0x80000000 - CONFIG_SYS_SDRAM_BASE);
+	gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
+				0x80000000 - CFG_SYS_SDRAM_BASE);
 
 	return 0;
 }
board/atmel/at91sam9260ek/at91sam9260ek.c +3 -3
index d2c6ada66838..b8e02f459031 100644
@@ -81,7 +81,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	at91sam9260ek_nand_hw_init();
@@ -92,8 +92,8 @@ int board_init(void)
 int dram_init(void)
 {
 	gd->ram_size = get_ram_size(
-		(void *)CONFIG_SYS_SDRAM_BASE,
-		CONFIG_SYS_SDRAM_SIZE);
+		(void *)CFG_SYS_SDRAM_BASE,
+		CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/at91sam9261ek/at91sam9261ek.c +3 -3
index 2992353199fe..eab3a1308195 100644
@@ -156,7 +156,7 @@ int board_init(void)
 	gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9261EK;
 #endif
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	at91sam9261ek_nand_hw_init();
@@ -176,8 +176,8 @@ int board_eth_init(struct bd_info *bis)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-		CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+		CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
board/atmel/at91sam9263ek/at91sam9263ek.c +3 -3
index b2b709308050..15f20b62f672 100644
@@ -95,7 +95,7 @@ int board_init(void)
 	/* arch number of AT91SAM9263EK-Board */
 	gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9263EK;
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	at91sam9263ek_nand_hw_init();
@@ -108,8 +108,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-		CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+		CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c +3 -3
index 2f3a772b81fa..f53c1cf612d5 100644
@@ -168,7 +168,7 @@ int board_init(void)
 	gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9M10G45EK;
 
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	at91sam9m10g45ek_nand_hw_init();
@@ -181,8 +181,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *) CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/at91sam9n12ek/at91sam9n12ek.c +3 -3
index 546851953a11..a3e294c88fc8 100644
@@ -99,7 +99,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
 	at91sam9n12ek_nand_hw_init();
@@ -114,8 +114,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-					CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+					CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/at91sam9rlek/at91sam9rlek.c +3 -3
index bca7c8d9af52..11725f778b7d 100644
@@ -93,7 +93,7 @@ int board_init(void)
 	/* arch number of AT91SAM9RLEK-Board */
 	gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9RLEK;
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	at91sam9rlek_nand_hw_init();
@@ -104,7 +104,7 @@ int board_init(void)
 int dram_init(void)
 {
 	gd->ram_size = get_ram_size(
-		(void *)CONFIG_SYS_SDRAM_BASE,
-		CONFIG_SYS_SDRAM_SIZE);
+		(void *)CFG_SYS_SDRAM_BASE,
+		CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
board/atmel/at91sam9x5ek/at91sam9x5ek.c +3 -3
index 817aa2fef707..ab666b6be34f 100644
@@ -115,7 +115,7 @@ int board_init(void)
 	gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9X5EK;
 
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	at91sam9x5ek_nand_hw_init();
@@ -129,8 +129,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE,
-					CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *) CFG_SYS_SDRAM_BASE,
+					CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/sam9x60ek/sam9x60ek.c +3 -3
index 786de18f8c64..a3e35f306663 100644
@@ -120,7 +120,7 @@ int misc_init_r(void)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	sam9x60ek_nand_hw_init();
@@ -130,7 +130,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
board/atmel/sama5d27_wlsom1_ek/sama5d27_wlsom1_ek.c +3 -3
index 6524867708af..6e41017af17c 100644
@@ -65,7 +65,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	rgb_leds_init();
 
@@ -84,8 +84,8 @@ int misc_init_r(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/sama5d2_icp/sama5d2_icp.c +3 -3
index 020777002823..fabe492715ab 100644
@@ -54,7 +54,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	rgb_leds_init();
 
@@ -63,8 +63,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c +3 -3
index 16e9183f5414..854715ea2269 100644
@@ -115,7 +115,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	rgb_leds_init();
 
@@ -130,8 +130,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/sama5d3_xplained/sama5d3_xplained.c +3 -3
index a778f2694df1..ce73a801e501 100644
@@ -94,7 +94,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
 	sama5d3_xplained_nand_hw_init();
@@ -110,8 +110,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
board/atmel/sama5d3xek/sama5d3xek.c +3 -3
index 008f1db6b0e2..660a6b9d5835 100644
@@ -147,7 +147,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
 	sama5d3xek_nand_hw_init();
@@ -166,8 +166,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/sama5d4_xplained/sama5d4_xplained.c +3 -3
index 4058594e4dec..780aba15ab1d 100644
@@ -121,7 +121,7 @@ int misc_init_r(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
 	sama5d4_xplained_nand_hw_init();
@@ -135,8 +135,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/sama5d4ek/sama5d4ek.c +3 -3
index ef5a8a0d5cc6..2226906a3b3d 100644
@@ -107,7 +107,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_NAND_ATMEL
 	sama5d4ek_nand_hw_init();
@@ -121,8 +121,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/atmel/sama7g5ek/sama7g5ek.c +3 -3
index 7d83e76f9ac0..295fd079dcf7 100644
@@ -67,7 +67,7 @@ int misc_init_r(void)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	board_leds_init();
 
@@ -76,7 +76,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
board/bluewater/gurnard/gurnard.c +3 -3
index 35c74ba9dd28..9b42299b080f 100644
@@ -307,7 +307,7 @@ int board_init(void)
 	gd->bd->bi_arch_number = MACH_TYPE_SNAPPER_9260;
 
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	ret = gurnard_nand_hw_init();
@@ -407,8 +407,8 @@ int board_eth_init(struct bd_info *bis)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/bosch/guardian/board.c +1 -1
index bdf8d06add8a..c31e2c86a2d5 100644
@@ -182,7 +182,7 @@ int board_init(void)
 	hw_watchdog_init();
 #endif
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_MTD_RAW_NAND
 	gpmc_init();
board/bosch/shc/board.c +1 -1
index a7a9775fdf4e..e3a9c00e8098 100644
@@ -449,7 +449,7 @@ int board_init(void)
 	if (read_eeprom() < 0)
 		puts("EEPROM Content Invalid.\n");
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND)
 	gpmc_init();
 #endif
board/broadcom/bcm_ep/board.c +4 -4
index 6064eb43db11..e91fa40e640c 100644
@@ -26,7 +26,7 @@ int board_init(void)
 	 * Address of boot parameters passed to kernel
 	 * Use default offset 0x100
 	 */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
@@ -36,14 +36,14 @@ int board_init(void)
  */
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	return 0;
board/calao/usb_a9263/usb_a9263.c +3 -3
index c89ad0bfe3d4..3d31776d4841 100644
@@ -95,7 +95,7 @@ static void usb_a9263_macb_hw_init(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	usb_a9263_nand_hw_init();
@@ -111,8 +111,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/cobra5272/cobra5272.c +1 -1
index 3e2418866c73..69a9df942311 100644
@@ -28,7 +28,7 @@ int dram_init(void)
 	/* Dummy write to start SDRAM */
 	*((volatile unsigned long *) 0) = 0;
 
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
 	return 0;
 };
board/compulab/cm_t43/cm_t43.c +1 -1
index bcfe1bfaf670..5df378a62e3c 100644
@@ -45,7 +45,7 @@ int power_init_board(void)
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	gpmc_init();
 	set_i2c_pin_mux();
 	i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
board/compulab/cm_t43/spl.c +2 -2
index e67bf81ee3a8..a6223a477fef 100644
@@ -119,7 +119,7 @@ void sdram_init(void)
 	unsigned long ram_size;
 
 	config_ddr(0, &ioregs_ddr3, NULL, NULL, &ddr3_emif_regs, 0);
-	ram_size = get_ram_size((long int *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
+	ram_size = get_ram_size((long int *)CFG_SYS_SDRAM_BASE, 0x80000000);
 	if (ram_size == 0x80000000 ||
 	    ram_size == 0x40000000 ||
 	    ram_size == 0x20000000)
@@ -127,7 +127,7 @@ void sdram_init(void)
 
 	ddr3_emif_regs.sdram_config = 0x638453B2;
 	config_ddr(0, &ioregs_ddr3, NULL, NULL, &ddr3_emif_regs, 0);
-	ram_size = get_ram_size((long int *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
+	ram_size = get_ram_size((long int *)CFG_SYS_SDRAM_BASE, 0x80000000);
 	if (ram_size == 0x08000000)
 		return;
 
board/cssi/MCR3000/MCR3000.c +1 -1
index c20e87149493..e95e04a30a6b 100644
@@ -114,7 +114,7 @@ int dram_init(void)
 	out_be32(&memctl->memc_mcr, 0x80002038);
 	udelay(200);
 
-	gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+	gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
 				    SDRAM_MAX_SIZE);
 
 	return 0;
board/ea/ea-lpc3250devkitv2/ea-lpc3250devkitv2.c +2 -2
index 72cf46c749ff..2b03e4891d92 100644
@@ -29,13 +29,13 @@ board_early_init_f(void)
 int
 board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x2000;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x2000;
 	return 0;
 }
 
 int
 dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_64M);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, SZ_64M);
 	return 0;
 }
board/eets/pdu001/board.c +1 -1
index 1054837d434d..648d77fd21e3 100644
@@ -286,7 +286,7 @@ int board_init(void)
 	hw_watchdog_init();
 #endif
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	return 0;
 }
 
board/egnite/ethernut5/ethernut5.c +3 -3
index a5d79d8e3e1a..913c2ea16640 100644
@@ -85,8 +85,8 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
 	gd->ram_size = get_ram_size(
-			(void *)CONFIG_SYS_SDRAM_BASE,
-			CONFIG_SYS_SDRAM_SIZE);
+			(void *)CFG_SYS_SDRAM_BASE,
+			CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
@@ -135,7 +135,7 @@ int board_init(void)
 	at91_periph_clk_enable(ATMEL_ID_PIOC);
 
 	/* Set adress of boot parameters. */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	/* Initialize UARTs and power management. */
 	ethernut5_power_init();
 #ifdef CONFIG_CMD_NAND
board/emulation/qemu-arm/qemu-arm.c +1 -1
index 16237e29e467..3df3e41c0b2c 100644
@@ -126,7 +126,7 @@ void *board_fdt_blob_setup(int *err)
 {
 	*err = 0;
 	/* QEMU loads a generated DTB for us at the start of RAM. */
-	return (void *)CONFIG_SYS_SDRAM_BASE;
+	return (void *)CFG_SYS_SDRAM_BASE;
 }
 
 void enable_caches(void)
board/esd/meesc/meesc.c +1 -1
index 98043b020c52..2304e9e8ec3d 100644
@@ -264,7 +264,7 @@ int board_init(void)
 	meesc_ethercat_hw_init();
 
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	meesc_nand_hw_init();
board/freescale/common/arm_sleep.c +1 -1
index f5bed6c35bb3..46ffd817b44b 100644
@@ -61,7 +61,7 @@ static void dp_ddr_restore(void)
 
 	/* get the address of ddr date from SPARECR3 */
 	src = (u64 *)in_le32(&scfg->sparecr[2]);
-	dst = (u64 *)CONFIG_SYS_SDRAM_BASE;
+	dst = (u64 *)CFG_SYS_SDRAM_BASE;
 
 	for (i = 0; i < DDR_BUFF_LEN / 8; i++)
 		*dst++ = *src++;
board/freescale/common/mpc85xx_sleep.c +1 -1
index 71922aab4ef4..d3323b9ec1e5 100644
@@ -50,7 +50,7 @@ static void dp_ddr_restore(void)
 
 	/* get the address of ddr date from SPARECR3 */
 	src = (u64 *)(in_be32(&scfg->sparecr[2]) + DDR_BUFF_LEN - 8);
-	dst = (u64 *)(CONFIG_SYS_SDRAM_BASE + DDR_BUFF_LEN - 8);
+	dst = (u64 *)(CFG_SYS_SDRAM_BASE + DDR_BUFF_LEN - 8);
 
 	for (i = 0; i < DDR_BUFF_LEN / 8; i++)
 		*dst-- = *src--;
board/freescale/ls1012afrdm/ls1012afrdm.c +2 -2
index bc37c553a5b4..f2b8750a3f38 100644
@@ -102,7 +102,7 @@ int dram_init(void)
 		else
 			gd->ram_size = SYS_SDRAM_SIZE_512;
 #else
-		gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+		gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #endif
 	}
 	return 0;
@@ -139,7 +139,7 @@ int dram_init(void)
 		gd->ram_size = SYS_SDRAM_SIZE_512;
 	}
 #else
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #endif
 	mmdc_init(&mparam);
 
board/freescale/ls1012aqds/ls1012aqds.c +2 -2
index 3f70fbc35659..f17a6c186d3b 100644
@@ -66,7 +66,7 @@ int dram_init(void)
 {
 	gd->ram_size = tfa_get_dram_size();
 	if (!gd->ram_size)
-		gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+		gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
 	return 0;
 }
@@ -90,7 +90,7 @@ int dram_init(void)
 	};
 
 	mmdc_init(&mparam);
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD)
 	/* This will break-before-make MMU for DDR */
 	update_early_mmu_table();
board/freescale/ls1012ardb/ls1012ardb.c +2 -2
index 456609d99324..62c935e4d3ec 100644
@@ -113,7 +113,7 @@ int dram_init(void)
 {
 	gd->ram_size = tfa_get_dram_size();
 	if (!gd->ram_size)
-		gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+		gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
 	return 0;
 }
@@ -140,7 +140,7 @@ int dram_init(void)
 	mmdc_init(&mparam);
 #endif
 
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 #if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD)
 	/* This will break-before-make MMU for DDR */
 	update_early_mmu_table();
board/freescale/ls1021aqds/ddr.c +1 -1
index 66fe1519cc6d..4e70acc5a0cc 100644
@@ -192,7 +192,7 @@ int fsl_initdram(void)
 
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	return 0;
board/freescale/ls1021atsn/ls1021atsn.c +1 -1
index 4325439be95c..d144f25c623c 100644
@@ -47,7 +47,7 @@ static void ddrmc_init(void)
 	if (is_warm_boot()) {
 		out_be32(&ddr->sdram_cfg_2,
 			 DDR_SDRAM_CFG_2 & ~SDRAM_CFG2_D_INIT);
-		out_be32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+		out_be32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
 		out_be32(&ddr->init_ext_addr, (1 << 31));
 
 		/* DRAM VRef will not be trained */
board/freescale/ls1021atwr/ls1021atwr.c +1 -1
index 33027ad05750..8b74d458237d 100644
@@ -162,7 +162,7 @@ void ddrmc_init(void)
 	if (is_warm_boot()) {
 		out_be32(&ddr->sdram_cfg_2,
 			 DDR_SDRAM_CFG_2 & ~SDRAM_CFG2_D_INIT);
-		out_be32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+		out_be32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
 		out_be32(&ddr->init_ext_addr, (1 << 31));
 
 		/* DRAM VRef will not be trained */
board/freescale/m5208evbe/m5208evbe.c +13 -13
index 7bfb4557dd5b..6125c9e13aa3 100644
@@ -29,7 +29,7 @@ int dram_init(void)
 	sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
 	u32 dramsize, i;
 
-	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+	dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
 	for (i = 0x13; i < 0x20; i++) {
 		if (dramsize == (1 << i))
@@ -37,35 +37,35 @@ int dram_init(void)
 	}
 	i--;
 
-	out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-#ifdef CONFIG_SYS_SDRAM_BASE1
-	out_be32(&sdram->cs1, CONFIG_SYS_SDRAM_BASE | i);
+	out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+#ifdef CFG_SYS_SDRAM_BASE1
+	out_be32(&sdram->cs1, CFG_SYS_SDRAM_BASE | i);
 #endif
-	out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-	out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+	out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+	out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
 	udelay(500);
 
 	/* Issue PALL */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 	asm("nop");
 
 	/* Perform two refresh cycles */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
 	asm("nop");
 
 	/* Issue LEMR */
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
 	asm("nop");
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
 	asm("nop");
 
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 	asm("nop");
 
 	out_be32(&sdram->ctrl,
-		(CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00);
+		(CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00);
 	asm("nop");
 
 	udelay(100);
board/freescale/m5235evb/m5235evb.c +4 -4
index e7c7a94036b5..44161a0b0a1c 100644
@@ -44,7 +44,7 @@ int dram_init(void)
 		GPIO_PAR_SDRAM_SRAS | GPIO_PAR_SDRAM_SCKE |
 		GPIO_PAR_SDRAM_SDCS(3));
 
-	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+	dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 	for (i = 0x13; i < 0x20; i++) {
 		if (dramsize == (1 << i))
 			break;
@@ -61,7 +61,7 @@ int dram_init(void)
 
 		/* Initialize DACR0 */
 		out_be32(&sdram->dacr0,
-			SDRAMC_DARCn_BA(CONFIG_SYS_SDRAM_BASE) |
+			SDRAMC_DARCn_BA(CFG_SYS_SDRAM_BASE) |
 			SDRAMC_DARCn_CASL_C1 | SDRAMC_DARCn_CBM_CMD20 |
 			SDRAMC_DARCn_PS_32);
 		asm("nop");
@@ -80,7 +80,7 @@ int dram_init(void)
 		}
 
 		/* Write to this block to initiate precharge */
-		*(u32 *) (CONFIG_SYS_SDRAM_BASE) = 0xA5A59696;
+		*(u32 *) (CFG_SYS_SDRAM_BASE) = 0xA5A59696;
 
 		/*  Set RE (bit 15) in DACR */
 		setbits_be32(&sdram->dacr0, SDRAMC_DARCn_RE);
@@ -95,7 +95,7 @@ int dram_init(void)
 		asm("nop");
 
 		/* Write to the SDRAM Mode Register */
-		*(u32 *) (CONFIG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
+		*(u32 *) (CFG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
 	}
 
 	gd->ram_size = dramsize;
board/freescale/m5249evb/m5249evb.c +1 -1
index 48c00791114d..efff05514096 100644
@@ -86,7 +86,7 @@ int dram_init(void)
 	mbar_writeLong(MCFSIM_DACR0, 0x0000b364);  /* Enable DACR0[IMRS] (bit 6); RE remains enabled */
 	*((volatile unsigned long *) 0x800) = junk; /* Access RAM to initialize the mode register */
 
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
 	return 0;
 };
board/freescale/m5253demo/m5253demo.c +3 -3
index 85f5f0c03409..179a2a242a8d 100644
@@ -47,7 +47,7 @@ int dram_init(void)
 		__asm__("nop");
 
 		/* Initialize DMR0 */
-		dramsize = (CONFIG_SYS_SDRAM_SIZE << 20);
+		dramsize = (CFG_SYS_SDRAM_SIZE << 20);
 		temp = (dramsize - 1) & 0xFFFC0000;
 		mbar_writeLong(MCFSIM_DMR0, temp | 1);
 		__asm__("nop");
@@ -57,7 +57,7 @@ int dram_init(void)
 		__asm__("nop");
 
 		/* Write to this block to initiate precharge */
-		*(u32 *) (CONFIG_SYS_SDRAM_BASE) = 0xa5a5a5a5;
+		*(u32 *) (CFG_SYS_SDRAM_BASE) = 0xa5a5a5a5;
 		mb();
 		__asm__("nop");
 
@@ -74,7 +74,7 @@ int dram_init(void)
 			       mbar_readLong(MCFSIM_DACR0) | 0x0040);
 		__asm__("nop");
 
-		*(u32 *) (CONFIG_SYS_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
+		*(u32 *) (CFG_SYS_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
 		mb();
 	}
 
board/freescale/m5272c3/m5272c3.c +1 -1
index 9580cf2a0390..3c20a23385c5 100644
@@ -30,7 +30,7 @@ int dram_init(void)
 	/* Dummy write to start SDRAM */
 	*((volatile unsigned long *)0) = 0;
 
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
 	return 0;
 	};
board/freescale/m5275evb/m5275evb.c +9 -9
index 1c4fb7232afb..00fa35ca5f71 100644
@@ -35,7 +35,7 @@ int dram_init(void)
 	out_be16(&gpio_reg->par_sdram, 0x3FF);
 
 	/* Set up chip select */
-	out_be32(&sdp->sdbar0, CONFIG_SYS_SDRAM_BASE);
+	out_be32(&sdp->sdbar0, CFG_SYS_SDRAM_BASE);
 	out_be32(&sdp->sdbmr0, MCF_SDRAMC_SDMRn_BAM_32M | MCF_SDRAMC_SDMRn_V);
 
 	/* Set up timing */
@@ -49,34 +49,34 @@ int dram_init(void)
 	setbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IPALL);
 
 	/* Dummy write to start SDRAM */
-	*((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+	*((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
 	/* Send LEMR */
 	setbits_be32(&sdp->sdmr,
 		MCF_SDRAMC_SDMR_BNKAD_LEMR | MCF_SDRAMC_SDMR_AD(0x0) |
 		MCF_SDRAMC_SDMR_CMD);
-	*((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+	*((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
 	/* Send LMR */
 	out_be32(&sdp->sdmr, 0x058d0000);
-	*((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+	*((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
 	/* Stop sending commands */
 	clrbits_be32(&sdp->sdmr, MCF_SDRAMC_SDMR_CMD);
 
 	/* Set precharge */
 	setbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IPALL);
-	*((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+	*((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
 	/* Stop manual precharge, send 2 IREF */
 	clrbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IPALL);
 	setbits_be32(&sdp->sdcr, MCF_SDRAMC_SDCR_IREF);
-	*((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
-	*((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+	*((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
+	*((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
 
 	out_be32(&sdp->sdmr, 0x018d0000);
-	*((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+	*((volatile unsigned long *)CFG_SYS_SDRAM_BASE) = 0xa5a59696;
 
 	/* Stop sending commands */
 	clrbits_be32(&sdp->sdmr, MCF_SDRAMC_SDMR_CMD);
@@ -91,7 +91,7 @@ int dram_init(void)
 		| MCF_SDRAMC_SDCR_RCNT((SDRAM_TREFI/(PERIOD*64)) - 1 + 1)
 		| MCF_SDRAMC_SDCR_DQS_OE(0x3));
 
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
 	return 0;
 };
board/freescale/m5282evb/m5282evb.c +4 -4
index e1ea9b3a58f8..53e0f202101c 100644
@@ -21,7 +21,7 @@ int dram_init(void)
 {
 	u32 dramsize, i, dramclk;
 
-	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+	dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 	for (i = 0x13; i < 0x20; i++) {
 		if (dramsize == (1 << i))
 			break;
@@ -40,7 +40,7 @@ int dram_init(void)
 
 		/* Initialize DACR0 */
 		MCFSDRAMC_DACR0 = (0
-			| MCFSDRAMC_DACR_BASE(CONFIG_SYS_SDRAM_BASE)
+			| MCFSDRAMC_DACR_BASE(CFG_SYS_SDRAM_BASE)
 			| MCFSDRAMC_DACR_CASL(1)
 			| MCFSDRAMC_DACR_CBM(3)
 			| MCFSDRAMC_DACR_PS_32);
@@ -62,7 +62,7 @@ int dram_init(void)
 		}
 
 		/* Write to this block to initiate precharge */
-		*(u32 *)(CONFIG_SYS_SDRAM_BASE) = 0xA5A59696;
+		*(u32 *)(CFG_SYS_SDRAM_BASE) = 0xA5A59696;
 		asm("nop");
 
 		/* Set RE (bit 15) in DACR */
@@ -79,7 +79,7 @@ int dram_init(void)
 		asm("nop");
 
 		/* Write to the SDRAM Mode Register */
-		*(u32 *)(CONFIG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
+		*(u32 *)(CFG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
 	}
 	gd->ram_size = dramsize;
 
board/freescale/m53017evb/README +1 -1
index 8a7d8cadf02e..0de36a7f747b 100644
@@ -106,7 +106,7 @@ CONFIG_SYS_CSn_BASE		-- defines the Chip Select Base register
 CONFIG_SYS_CSn_MASK		-- defines the Chip Select Mask register
 CONFIG_SYS_CSn_CTRL		-- defines the Chip Select Control register
 
-CONFIG_SYS_SDRAM_BASE		-- defines the DRAM Base
+CFG_SYS_SDRAM_BASE		-- defines the DRAM Base
 
 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
 ===========================================
board/freescale/m53017evb/m53017evb.c +13 -13
index c9f89353ce4b..76ebc0ab8dcd 100644
@@ -29,7 +29,7 @@ int dram_init(void)
 	sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
 	u32 dramsize, i;
 
-	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+	dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
 	for (i = 0x13; i < 0x20; i++) {
 		if (dramsize == (1 << i))
@@ -37,35 +37,35 @@ int dram_init(void)
 	}
 	i--;
 
-	out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-#ifdef CONFIG_SYS_SDRAM_BASE1
-	out_be32(&sdram->cs1, CONFIG_SYS_SDRAM_BASE | i);
+	out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+#ifdef CFG_SYS_SDRAM_BASE1
+	out_be32(&sdram->cs1, CFG_SYS_SDRAM_BASE | i);
 #endif
-	out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-	out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+	out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+	out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
 	udelay(500);
 
 	/* Issue PALL */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 	asm("nop");
 
 	/* Perform two refresh cycles */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
 	asm("nop");
 
 	/* Issue LEMR */
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
 	asm("nop");
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
 	asm("nop");
 
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 	asm("nop");
 
 	out_be32(&sdram->ctrl,
-		(CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
+		(CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
 	asm("nop");
 
 	udelay(100);
board/freescale/m5329evb/m5329evb.c +12 -12
index 7a75b04dd0d2..b278dbfb4852 100644
@@ -29,7 +29,7 @@ int dram_init(void)
 	sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
 	u32 dramsize, i;
 
-	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+	dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
 	for (i = 0x13; i < 0x20; i++) {
 		if (dramsize == (1 << i))
@@ -37,30 +37,30 @@ int dram_init(void)
 	}
 	i--;
 
-	out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-	out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-	out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+	out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+	out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+	out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
 	/* Issue PALL */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
 	/* Issue LEMR */
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE | 0x04000000);
 
 	udelay(500);
 
 	/* Issue PALL */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
 	/* Perform two refresh cycles */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
 
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
 
 	out_be32(&sdram->ctrl,
-		(CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
+		(CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
 
 	udelay(100);
 
board/freescale/m5373evb/README +1 -1
index bba54202155b..bfbcd5dc81db 100644
@@ -105,7 +105,7 @@ CONFIG_SYS_CSn_BASE	-- defines the Chip Select Base register
 CONFIG_SYS_CSn_MASK	-- defines the Chip Select Mask register
 CONFIG_SYS_CSn_CTRL	-- defines the Chip Select Control register
 
-CONFIG_SYS_SDRAM_BASE	-- defines the DRAM Base
+CFG_SYS_SDRAM_BASE	-- defines the DRAM Base
 
 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
 ===========================================
board/freescale/m5373evb/m5373evb.c +12 -12
index cfa5ca4a477c..0e9eec316c2f 100644
@@ -29,7 +29,7 @@ int dram_init(void)
 	sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
 	u32 dramsize, i;
 
-	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+	dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
 	for (i = 0x13; i < 0x20; i++) {
 		if (dramsize == (1 << i))
@@ -37,30 +37,30 @@ int dram_init(void)
 	}
 	i--;
 
-	out_be32(&sdram->cs0, CONFIG_SYS_SDRAM_BASE | i);
-	out_be32(&sdram->cfg1, CONFIG_SYS_SDRAM_CFG1);
-	out_be32(&sdram->cfg2, CONFIG_SYS_SDRAM_CFG2);
+	out_be32(&sdram->cs0, CFG_SYS_SDRAM_BASE | i);
+	out_be32(&sdram->cfg1, CFG_SYS_SDRAM_CFG1);
+	out_be32(&sdram->cfg2, CFG_SYS_SDRAM_CFG2);
 
 	/* Issue PALL */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
 	/* Issue LEMR */
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_EMOD);
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE | 0x04000000);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_EMOD);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE | 0x04000000);
 
 	udelay(500);
 
 	/* Issue PALL */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 2);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 2);
 
 	/* Perform two refresh cycles */
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
-	out_be32(&sdram->ctrl, CONFIG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
+	out_be32(&sdram->ctrl, CFG_SYS_SDRAM_CTRL | 4);
 
-	out_be32(&sdram->mode, CONFIG_SYS_SDRAM_MODE);
+	out_be32(&sdram->mode, CFG_SYS_SDRAM_MODE);
 
 	out_be32(&sdram->ctrl,
-		(CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
+		(CFG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00);
 
 	udelay(100);
 
board/freescale/mpc837xerdb/mpc837xerdb.c +3 -3
index 2650d300e384..85d43cccd1a0 100644
@@ -97,10 +97,10 @@ int dram_init(void)
 int fixed_sdram(void)
 {
 	immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
-	u32 msize = CONFIG_SYS_SDRAM_SIZE;
+	u32 msize = CFG_SYS_SDRAM_SIZE;
 	u32 msize_log2 = __ilog2(msize);
 
-	im->sysconf.ddrlaw[0].bar = CONFIG_SYS_SDRAM_BASE & 0xfffff000;
+	im->sysconf.ddrlaw[0].bar = CFG_SYS_SDRAM_BASE & 0xfffff000;
 	im->sysconf.ddrlaw[0].ar = LBLAWAR_EN | (msize_log2 - 1);
 
 	im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE;
@@ -127,7 +127,7 @@ int fixed_sdram(void)
 
 	im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
 	udelay(2000);
-	return CONFIG_SYS_SDRAM_SIZE >> 20;
+	return CFG_SYS_SDRAM_SIZE >> 20;
 }
 #endif	/*!CONFIG_SYS_SPD_EEPROM */
 
board/freescale/mx51evk/mx51evk.c +1 -1
index 46095acedfdd..86364acf8ca0 100644
@@ -30,7 +30,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
 	/* dram_init must store complete ramsize in gd->ram_size */
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
 				PHYS_SDRAM_1_SIZE);
 	return 0;
 }
board/freescale/p1_p2_rdb_pc/ddr.c +1 -1
index 038e6736acec..f896fd7ccce5 100644
@@ -244,7 +244,7 @@ phys_size_t fixed_sdram(void)
 	printf("Configuring DDR for %s MT/s data rate\n",
 			strmhz(buf, sysinfo.freq_ddrbus));
 
-	ddr_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+	ddr_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024;
 
 	fsl_ddr_set_memctl_regs(&ddr_cfg_regs, 0, 0);
 
board/friendlyarm/nanopi2/board.c +4 -4
index 70e4dfcfa456..954197282e6b 100644
@@ -507,7 +507,7 @@ int splash_screen_prepare(void)
 /* u-boot dram initialize */
 int dram_init(void)
 {
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 	return 0;
 }
 
@@ -518,10 +518,10 @@ int dram_init_banksize(void)
 	unsigned int reg_val = readl(SCR_USER_SIG6_READ);
 
 	/* set global data memory */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x00000100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x00000100;
 
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-	gd->bd->bi_dram[0].size  = CONFIG_SYS_SDRAM_SIZE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].size  = CFG_SYS_SDRAM_SIZE;
 
 	/* Number of Row: 14 bits */
 	if ((reg_val >> 28) == 14)
board/gardena/smart-gateway-at91sam/board.c +3 -3
index c6eb11e93263..d9dfb256b32a 100644
@@ -45,15 +45,15 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
board/gdsys/mpc8308/sdram.c +3 -3
index 47b880435210..4889a6a4f3b9 100644
@@ -34,11 +34,11 @@ DECLARE_GLOBAL_DATA_PTR;
 static long fixed_sdram(void)
 {
 	immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
-	u32 msize = CONFIG_SYS_SDRAM_SIZE;
+	u32 msize = CFG_SYS_SDRAM_SIZE;
 	u32 msize_log2 = __ilog2(msize);
 
 	out_be32(&im->sysconf.ddrlaw[0].bar,
-		 CONFIG_SYS_SDRAM_BASE  & 0xfffff000);
+		 CFG_SYS_SDRAM_BASE  & 0xfffff000);
 	out_be32(&im->sysconf.ddrlaw[0].ar, LBLAWAR_EN | (msize_log2 - 1));
 	out_be32(&im->sysconf.ddrcdr, CONFIG_SYS_DDRCDR_VALUE);
 
@@ -66,7 +66,7 @@ static long fixed_sdram(void)
 	setbits_be32(&im->ddr.sdram_cfg, SDRAM_CFG_MEM_EN);
 	sync();
 
-	return get_ram_size(CONFIG_SYS_SDRAM_BASE, msize);
+	return get_ram_size(CFG_SYS_SDRAM_BASE, msize);
 }
 
 int dram_init(void)
board/grinn/chiliboard/board.c +1 -1
index 6423c1efb24b..b472ca5b94a6 100644
@@ -95,7 +95,7 @@ int board_init(void)
 	hw_watchdog_init();
 #endif
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	gpmc_init();
 
 	return 0;
board/imgtec/boston/ddr.c +1 -1
index 5b245cb44734..8532225dc0db 100644
@@ -27,7 +27,7 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
 	DECLARE_GLOBAL_DATA_PTR;
 
-	if (gd->ram_top < CONFIG_SYS_SDRAM_BASE) {
+	if (gd->ram_top < CFG_SYS_SDRAM_BASE) {
 		/* 2GB wrapped around to 0 */
 		return CKSEG0ADDR(256 << 20);
 	}
board/imgtec/malta/lowlevel_init.S +2 -2
index bed24972f7a8..aa910bf1ce1b 100644
@@ -118,7 +118,7 @@ _msc01:
 	/* setup basic address decode */
 	PTR_LI	t0, CKSEG1ADDR(MALTA_MSC01_BIU_BASE)
 	li	t1, 0x0
-	li	t2, -CONFIG_SYS_SDRAM_SIZE
+	li	t2, -CFG_SYS_SDRAM_SIZE
 	sw	t1, MSC01_BIU_MCBAS1L_OFS(t0)
 	sw	t2, MSC01_BIU_MCMSK1L_OFS(t0)
 	sw	t1, MSC01_BIU_MCBAS2L_OFS(t0)
@@ -168,7 +168,7 @@ _msc01:
 	sw	t3, MSC01_PCI_SC2PIOMAPL_OFS(t0)
 
 	/* setup PCI_BAR0 memory window */
-	li	t1, -CONFIG_SYS_SDRAM_SIZE
+	li	t1, -CFG_SYS_SDRAM_SIZE
 	sw	t1, MSC01_PCI_BAR0_OFS(t0)
 
 	/* setup PCI to SysCon/CPU translation */
board/imgtec/malta/malta.c +1 -1
index 9853a0ba82f6..4a72ab5cecad 100644
@@ -94,7 +94,7 @@ static enum sys_con malta_sys_con(void)
 
 int dram_init(void)
 {
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 
 	return 0;
 }
board/imgtec/xilfpga/xilfpga.c +1 -1
index 6a836370e36d..712269272114 100644
@@ -19,7 +19,7 @@ int dram_init(void)
 {
 	/* MIG IP block is smart and doesn't need SW
 	 * to do any init */
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;	/* in bytes */
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;	/* in bytes */
 
 	return 0;
 }
board/inversepath/usbarmory/usbarmory.c +1 -1
index 7dbb3a914324..f3a0de3967bb 100644
@@ -412,7 +412,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, 1 << 30);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, 1 << 30);
 	return 0;
 }
 
board/isee/igep003x/board.c +1 -1
index 02ae7df04db9..5462a3dea228 100644
@@ -185,7 +185,7 @@ int spl_start_uboot(void)
  */
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	gpmc_init();
 
board/keymile/common/common.c +2 -2
index c8138dcf3058..0252ada93ff5 100644
@@ -52,7 +52,7 @@ int set_km_env(void)
 	char envval[16];
 	char *p;
 
-	pnvramaddr = CONFIG_SYS_SDRAM_BASE + gd->ram_size -
+	pnvramaddr = CFG_SYS_SDRAM_BASE + gd->ram_size -
 		CONFIG_KM_RESERVED_PRAM - CONFIG_KM_PHRAM - CONFIG_KM_PNVRAM;
 	sprintf(envval, "0x%x", pnvramaddr);
 	env_set("pnvramaddr", envval);
@@ -65,7 +65,7 @@ int set_km_env(void)
 		CONFIG_KM_PNVRAM) / 0x400;
 	env_set_ulong("pram", pram);
 
-	varaddr = CONFIG_SYS_SDRAM_BASE + gd->ram_size -
+	varaddr = CFG_SYS_SDRAM_BASE + gd->ram_size -
 		CONFIG_KM_RESERVED_PRAM - CONFIG_KM_PHRAM;
 	env_set_hex("varaddr", varaddr);
 	sprintf(envval, "0x%x", varaddr);
board/keymile/km83xx/km83xx.c +3 -3
index 6a7b84816145..ddd8f7a13e1a 100644
@@ -142,10 +142,10 @@ static int fixed_sdram(void)
 	setbits_be32(&im->ddr.sdram_cfg, SDRAM_CFG_MEM_EN);
 
 	disable_addr_trans();
-	msize = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_SIZE);
+	msize = get_ram_size(CFG_SYS_SDRAM_BASE, CFG_SYS_SDRAM_SIZE);
 	enable_addr_trans();
 	msize /= (1024 * 1024);
-	if (CONFIG_SYS_SDRAM_SIZE >> 20 != msize) {
+	if (CFG_SYS_SDRAM_SIZE >> 20 != msize) {
 		for (ddr_size = msize << 20, ddr_size_log2 = 0;
 			(ddr_size > 1);
 			ddr_size = ddr_size >> 1, ddr_size_log2++)
@@ -169,7 +169,7 @@ int dram_init(void)
 		return -ENXIO;
 
 	out_be32(&im->sysconf.ddrlaw[0].bar,
-		CONFIG_SYS_SDRAM_BASE & LAWBAR_BAR);
+		CFG_SYS_SDRAM_BASE & LAWBAR_BAR);
 	msize = fixed_sdram();
 
 #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
board/keymile/pg-wcom-ls102xa/ddr.c +1 -1
index 4ec60f168543..556d39d4d4e3 100644
@@ -84,7 +84,7 @@ int fsl_initdram(void)
 
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	return 0;
board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c +1 -1
index 3719bcf7317e..1a7fa3fc1e48 100644
@@ -184,7 +184,7 @@ int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset)
 {
 	/* Define only 1MiB range for mem_regions at the middle of the RAM */
 	/* For 1GiB range mem_regions takes approx. 4min */
-	*vstart = CONFIG_SYS_SDRAM_BASE + (gd->ram_size >> 1);
+	*vstart = CFG_SYS_SDRAM_BASE + (gd->ram_size >> 1);
 	*size = 1 << 20;
 	return 0;
 }
board/l+g/vinco/vinco.c +3 -3
index d47c7b5f1eb1..b3c176dd59a0 100644
@@ -164,7 +164,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #if !CONFIG_IS_ENABLED(DM_SPI)
 	vinco_spi0_hw_init();
@@ -188,8 +188,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/mediatek/mt7622/mt7622_rfb.c +1 -1
index 0504d6177fd5..ff233e920a03 100644
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	return 0;
 }
 
board/mediatek/mt7623/mt7623_rfb.c +1 -1
index 755e879085c2..ec10f77c51e4 100644
@@ -12,7 +12,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/mediatek/mt7629/mt7629_rfb.c +1 -1
index d1bca6d62ef8..55f7696c5107 100644
@@ -11,7 +11,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/mediatek/mt8518/mt8518_ap1.c +1 -1
index fce5de6767cd..2490b15ec78f 100644
@@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	debug("gd->fdt_blob is %p\n", gd->fdt_blob);
 	return 0;
board/mscc/jr2/jr2.c +1 -1
index 6abf08bd24cc..84b95be648d7 100644
@@ -28,7 +28,7 @@ int board_early_init_r(void)
 			ICPU_GENERAL_CTRL_IF_SI_OWNER(2));
 
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
 	return 0;
 }
board/mscc/luton/luton.c +1 -1
index 76e3f2ebbce7..48170b3aa12d 100644
@@ -29,7 +29,7 @@ int board_early_init_r(void)
 	writel(0, BASE_CFG + ICPU_SW_MODE);
 
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
 	return 0;
 }
board/mscc/ocelot/ocelot.c +1 -1
index 2a75ec281cb1..f261346b358d 100644
@@ -77,7 +77,7 @@ int board_early_init_r(void)
 			ICPU_GENERAL_CTRL_IF_SI_OWNER(2));
 
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
 	return 0;
 }
board/mscc/serval/serval.c +1 -1
index 87e79076574f..99d5f5be657e 100644
@@ -22,7 +22,7 @@ int board_early_init_r(void)
 	writel(0, BASE_CFG + ICPU_SW_MODE);
 
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
 	return 0;
 }
board/mscc/servalt/servalt.c +1 -1
index bd8c7e8b7003..49993168c237 100644
@@ -22,7 +22,7 @@ int board_early_init_r(void)
 	writel(0, BASE_CFG + ICPU_SW_MODE);
 
 	/* Address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE;
 
 	return 0;
 }
board/phytec/phycore_am335x_r2/board.c +2 -2
index d97ebd015120..e84dd251c254 100644
@@ -166,7 +166,7 @@ void sdram_init(void)
 		   0);
 
 	/* Detect memory physically present */
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
 				    CONFIG_MAX_RAM_BANK_SIZE);
 
 	/* Reconfigure memory for actual detected size */
@@ -269,7 +269,7 @@ void set_mux_conf_regs(void)
  */
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	return 0;
 }
 
board/phytium/pomelo/pomelo.c +1 -1
index 4fbe1e583584..75d2636bf453 100644
@@ -24,7 +24,7 @@ int dram_init(void)
 	ddr_init();
 
 	gd->mem_clk = 0;
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, 0x7b000000);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE, 0x7b000000);
 
 	sec_init();
 	debug("PBF relocate done\n");
board/renesas/alt/alt.c +1 -1
index 3b60afc59c36..85fbaf0b28b6 100644
@@ -70,7 +70,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	/* Force ethernet PHY out of reset */
 	gpio_request(ETHERNET_PHY_RESET, "phy_reset");
board/renesas/blanche/blanche.c +1 -1
index a36526986cab..ea090575fb20 100644
@@ -312,7 +312,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
board/renesas/gose/gose.c +1 -1
index 6197e549c2e5..2d1435acff6c 100644
@@ -78,7 +78,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	/* Force ethernet PHY out of reset */
 	gpio_request(ETHERNET_PHY_RESET, "phy_reset");
board/renesas/grpeach/grpeach.c +1 -1
index 199ec4a31098..f609e4f07289 100644
@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = (CONFIG_SYS_SDRAM_BASE + 0x100);
+	gd->bd->bi_boot_params = (CFG_SYS_SDRAM_BASE + 0x100);
 
 	return 0;
 }
board/renesas/koelsch/koelsch.c +1 -1
index 87607df20d5e..c3ebcd3e39fe 100644
@@ -80,7 +80,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	/* Force ethernet PHY out of reset */
 	gpio_request(ETHERNET_PHY_RESET, "phy_reset");
board/renesas/lager/lager.c +1 -1
index 8e24ac013c05..1437875cfa7b 100644
@@ -89,7 +89,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	/* Force ethernet PHY out of reset */
 	gpio_request(ETHERNET_PHY_RESET, "phy_reset");
board/renesas/porter/porter.c +1 -1
index 1a3a4c11a172..db1fb4b035f0 100644
@@ -78,7 +78,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	/* Force ethernet PHY out of reset */
 	gpio_request(ETHERNET_PHY_RESET, "phy_reset");
board/renesas/silk/silk.c +1 -1
index 4558070af883..6ecebfe814df 100644
@@ -71,7 +71,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	/* Force ethernet PHY out of reset */
 	gpio_request(ETHERNET_PHY_RESET, "phy_reset");
board/renesas/stout/stout.c +1 -1
index 56bdb34329a7..f069eccde974 100644
@@ -88,7 +88,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	cpld_init();
 
board/ronetix/pm9g45/pm9g45.c +5 -5
index 23b55e3e0302..c56582a19485 100644
@@ -126,7 +126,7 @@ int board_init(void)
 	/* arch number of AT91SAM9M10G45EK-Board */
 	gd->bd->bi_arch_number = MACH_TYPE_PM9G45;
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_CMD_NAND
 	pm9g45_nand_hw_init();
@@ -141,15 +141,15 @@ int board_init(void)
 int dram_init(void)
 {
 	/* dram_init must store complete ramsize in gd->ram_size */
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-	gd->bd->bi_dram[0].size = CONFIG_SYS_SDRAM_SIZE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].size = CFG_SYS_SDRAM_SIZE;
 
 	return 0;
 }
board/samsung/arndale/arndale.c +2 -2
index 5320c1f2e0ad..a992dc684291 100644
@@ -46,7 +46,7 @@ int dram_init(void)
 	u32 addr;
 
 	for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-		addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+		addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
 		gd->ram_size += get_ram_size((long *)addr, SDRAM_BANK_SIZE);
 	}
 	return 0;
@@ -64,7 +64,7 @@ int dram_init_banksize(void)
 	u32 addr, size;
 
 	for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-		addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+		addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
 		size = get_ram_size((long *)addr, SDRAM_BANK_SIZE);
 
 		gd->bd->bi_dram[i].start = addr;
board/samsung/common/board.c +2 -2
index 943b498293b9..16ce5cb89253 100644
@@ -122,7 +122,7 @@ int dram_init(void)
 	unsigned long addr;
 
 	for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-		addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+		addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
 		gd->ram_size += get_ram_size((long *)addr, SDRAM_BANK_SIZE);
 	}
 	return 0;
@@ -134,7 +134,7 @@ int dram_init_banksize(void)
 	unsigned long addr, size;
 
 	for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
-		addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
+		addr = CFG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
 		size = get_ram_size((long *)addr, SDRAM_BANK_SIZE);
 
 		gd->bd->bi_dram[i].start = addr;
board/sandbox/sandbox.c +2 -2
index 4d89f9be1cd9..6672ae7fcc87 100644
@@ -102,7 +102,7 @@ enum env_location env_get_location(enum env_operation op, int prio)
 
 int dram_init(void)
 {
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
+	gd->ram_size = CFG_SYS_SDRAM_SIZE;
 	return 0;
 }
 
@@ -160,7 +160,7 @@ int board_late_init(void)
 int init_addr_map(void)
 {
 	if (IS_ENABLED(CONFIG_ADDR_MAP))
-		addrmap_set_entry(0, 0, CONFIG_SYS_SDRAM_SIZE, 0);
+		addrmap_set_entry(0, 0, CFG_SYS_SDRAM_SIZE, 0);
 
 	return 0;
 }
board/siemens/common/board.c +1 -1
index 85025f20efae..2efede62aa5d 100644
@@ -85,7 +85,7 @@ int board_init(void)
 #ifdef CONFIG_MACH_TYPE
 	gd->bd->bi_arch_number = CONFIG_MACH_TYPE;
 #endif
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_FACTORYSET
 	factoryset_read_eeprom(FACTORYSET_EEPROM_ADDR);
board/siemens/corvus/board.c +3 -3
index d87628097d0d..569b86db00ac 100644
@@ -262,7 +262,7 @@ void at91_udp_hw_init(void)
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	/* we have to request the gpios again after relocation */
 	corvus_request_gpio();
@@ -287,8 +287,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/siemens/iot2050/board.c +1 -1
index b965ae9fa497..8f4b0eae4951 100644
@@ -146,7 +146,7 @@ int dram_init_banksize(void)
 	dram_init();
 
 	/* Bank 0 declares the memory available in the DDR low region */
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = gd->ram_size;
 
 	/* Bank 1 declares the memory available in the DDR high region */
board/siemens/smartweb/smartweb.c +3 -3
index ce6c877959ad..3d0f7341a371 100644
@@ -167,7 +167,7 @@ int board_init(void)
 #endif
 
 	/* Adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	smartweb_nand_hw_init();
 	smartweb_macb_hw_init();
@@ -177,8 +177,8 @@ int board_init(void)
 int dram_init(void)
 {
 	gd->ram_size = get_ram_size(
-		(void *)CONFIG_SYS_SDRAM_BASE,
-		CONFIG_SYS_SDRAM_SIZE);
+		(void *)CFG_SYS_SDRAM_BASE,
+		CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/siemens/taurus/taurus.c +5 -5
index 47d3f6aef22e..1eee972d49e1 100644
@@ -185,8 +185,8 @@ void mem_init(void)
 	sdramc_configure(AT91_SDRAMC_NC_10);
 
 	/* Do memtest for 128MB */
-	ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				CONFIG_SYS_SDRAM_SIZE);
+	ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				CFG_SYS_SDRAM_SIZE);
 
 	/*
 	 * If 32MB or 16MB should be supported check also for
@@ -306,7 +306,7 @@ struct at91_udc_data board_udc_data  = {
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	taurus_request_gpio();
 #ifdef CONFIG_CMD_NAND
@@ -326,8 +326,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 	return 0;
 }
 
board/sipeed/maix/maix.c +1 -1
index a218278cb34e..79e492f0a8ec 100644
@@ -11,7 +11,7 @@
 
 phys_size_t get_effective_memsize(void)
 {
-	return CONFIG_SYS_SDRAM_SIZE;
+	return CFG_SYS_SDRAM_SIZE;
 }
 
 static int sram_init(void)
board/socrates/sdram.c +2 -2
index 04527cf79ab2..ad49999dc28e 100644
@@ -51,11 +51,11 @@ phys_size_t fixed_sdram(void)
 	asm ("sync; isync; msync");
 	udelay(1000);
 
-	if (get_ram_size(0, CONFIG_SYS_SDRAM_SIZE<<20) == CONFIG_SYS_SDRAM_SIZE<<20) {
+	if (get_ram_size(0, CFG_SYS_SDRAM_SIZE<<20) == CFG_SYS_SDRAM_SIZE<<20) {
 		/*
 		 * OK, size detected -> all done
 		 */
-		return CONFIG_SYS_SDRAM_SIZE<<20;
+		return CFG_SYS_SDRAM_SIZE<<20;
 	}
 
 	return 0;				/* nothing found !		*/
board/softing/vining_fpga/socfpga.c +1 -1
index 229922739118..b3f9550742ec 100644
@@ -30,7 +30,7 @@ int board_late_init(void)
 	status_led_set(2, CONFIG_LED_STATUS_ON);
 
 	/* Address of boot parameters for ATAG (if ATAG is used) */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 	ret = gpio_request(usb_nrst_gpio, "usb_nrst_gpio");
 	if (!ret)
board/solidrun/mx6cuboxi/mx6cuboxi.c +2 -2
index 8e80ca6e17e0..7c44379ec4af 100644
@@ -107,7 +107,7 @@ int dram_init(void)
 {
 	u32 max_size = imx_ddr_size();
 
-	gd->ram_size = get_ram_size_stride_test((u32 *) CONFIG_SYS_SDRAM_BASE,
+	gd->ram_size = get_ram_size_stride_test((u32 *) CFG_SYS_SDRAM_BASE,
 						(u32)max_size);
 
 	return 0;
@@ -288,7 +288,7 @@ int board_init(void)
 	int ret = 0;
 
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_VIDEO_IPUV3
 	ret = setup_display();
board/sysam/amcore/amcore.c +3 -3
index beab4e9d1884..5426fc4ffd84 100644
@@ -88,7 +88,7 @@ int dram_init(void)
 	 */
 	out_be32(&dc->dacr0, 0x00003304);
 
-	dramsize = ((CONFIG_SYS_SDRAM_SIZE)-1) & 0xfffc0000;
+	dramsize = ((CFG_SYS_SDRAM_SIZE)-1) & 0xfffc0000;
 	out_be32(&dc->dmr0,  dramsize|1);
 
 	/* issue a PRECHARGE ALL */
@@ -102,8 +102,8 @@ int dram_init(void)
 	out_be32(&dc->dacr0, 0x0000b344);
 	out_be32((u32 *)0x00000c00, 0xbeaddeed);
 
-	gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size(CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
board/sysam/stmark2/stmark2.c +1 -1
index d48da48b69d6..475e3edfa62e 100644
@@ -35,7 +35,7 @@ int dram_init(void)
 	 * Serial Boot: The dram is already initialized in start.S
 	 * only require to return DRAM size
 	 */
-	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
+	dramsize = CFG_SYS_SDRAM_SIZE * 0x100000;
 
 	gd->ram_size = dramsize;
 
board/tbs/tbs2910/tbs2910.c +1 -1
index 3a447ca8a93c..8d9eedb7523c 100644
@@ -144,7 +144,7 @@ static const struct boot_mode board_boot_modes[] = {
 int board_init(void)
 {
 	/* address of boot parameters */
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_VIDEO_IPUV3
 	setup_display();
board/tcl/sl50/board.c +1 -1
index b7ddc3ba78f4..839a692ce85d 100644
@@ -238,7 +238,7 @@ int board_init(void)
 	hw_watchdog_init();
 #endif
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	return 0;
 }
 
board/ti/am335x/board.c +1 -1
index b97fedddd5e2..9e5828161157 100644
@@ -704,7 +704,7 @@ int board_init(void)
 	hw_watchdog_init();
 #endif
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND)
 	gpmc_init();
 #endif
board/ti/am43xx/board.c +1 -1
index 529129ecc76e..d0b7a14e0e99 100644
@@ -639,7 +639,7 @@ int board_init(void)
 	u32 mreqprio_0, mreqprio_1, modena_init0_bw_fractional,
 	    modena_init0_bw_integer, modena_init0_watermark_0;
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	gpmc_init();
 
 	/*
board/ti/am57xx/board.c +1 -1
index cfc825e52a36..652c40f55c4c 100644
@@ -661,7 +661,7 @@ bool am571x_idk_needs_lcd(void)
 int board_init(void)
 {
 	gpmc_init();
-	gd->bd->bi_boot_params = (CONFIG_SYS_SDRAM_BASE + 0x100);
+	gd->bd->bi_boot_params = (CFG_SYS_SDRAM_BASE + 0x100);
 
 	return 0;
 }
board/ti/am65x/evm.c +2 -2
index 34ec3915f3d7..b266ccb4b82e 100644
@@ -75,13 +75,13 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 int dram_init_banksize(void)
 {
 	/* Bank 0 declares the memory available in the DDR low region */
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = 0x80000000;
 	gd->ram_size = 0x80000000;
 
 #ifdef CONFIG_PHYS_64BIT
 	/* Bank 1 declares the memory available in the DDR high region */
-	gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
+	gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE1;
 	gd->bd->bi_dram[1].size = 0x80000000;
 	gd->ram_size = 0x100000000;
 #endif
board/ti/dra7xx/evm.c +1 -1
index a854d615c1d7..1c00e253ffc8 100644
@@ -644,7 +644,7 @@ int dram_init_banksize(void)
 
 	ram_size = board_ti_get_emif_size();
 
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = get_effective_memsize();
 	if (ram_size > CONFIG_MAX_MEM_MAPPED) {
 		gd->bd->bi_dram[1].start = 0x200000000;
board/ti/j721e/evm.c +2 -2
index d6e431ead0ef..d4e672a7acd5 100644
@@ -71,13 +71,13 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 int dram_init_banksize(void)
 {
 	/* Bank 0 declares the memory available in the DDR low region */
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = 0x80000000;
 	gd->ram_size = 0x80000000;
 
 #ifdef CONFIG_PHYS_64BIT
 	/* Bank 1 declares the memory available in the DDR high region */
-	gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
+	gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE1;
 	gd->bd->bi_dram[1].size = 0x80000000;
 	gd->ram_size = 0x100000000;
 #endif
board/ti/j721s2/evm.c +2 -2
index e09adc8ad34e..4d28582311be 100644
@@ -60,13 +60,13 @@ phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 int dram_init_banksize(void)
 {
 	/* Bank 0 declares the memory available in the DDR low region */
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = 0x7fffffff;
 	gd->ram_size = 0x80000000;
 
 #ifdef CONFIG_PHYS_64BIT
 	/* Bank 1 declares the memory available in the DDR high region */
-	gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
+	gd->bd->bi_dram[1].start = CFG_SYS_SDRAM_BASE1;
 	gd->bd->bi_dram[1].size = 0x37fffffff;
 	gd->ram_size = 0x400000000;
 #endif
board/ti/ks2_evm/board.c +6 -6
index 51e8de4b8912..34818736a4f5 100644
@@ -46,7 +46,7 @@ int dram_init(void)
 
 	ddr3_size = ddr3_init();
 
-	gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
+	gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE,
 				    CONFIG_MAX_RAM_BANK_SIZE);
 #if defined(CONFIG_TI_AEMIF)
 	if (!(board_is_k2g_ice() || board_is_k2g_i1()))
@@ -71,7 +71,7 @@ struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size)
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 	return 0;
 }
 
@@ -120,7 +120,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
 	/* adjust memory start address for LPAE */
 	if (lpae) {
-		start[0] -= CONFIG_SYS_SDRAM_BASE;
+		start[0] -= CFG_SYS_SDRAM_BASE;
 		start[0] += CONFIG_SYS_LPAE_SDRAM_BASE;
 	}
 
@@ -174,11 +174,11 @@ void ft_board_setup_ex(void *blob, struct bd_info *bd)
 					    "linux,initrd-end", NULL);
 			if (prop1 && prop2) {
 				initrd_start = __be64_to_cpu(*prop1);
-				initrd_start -= CONFIG_SYS_SDRAM_BASE;
+				initrd_start -= CFG_SYS_SDRAM_BASE;
 				initrd_start += CONFIG_SYS_LPAE_SDRAM_BASE;
 				initrd_start = __cpu_to_be64(initrd_start);
 				initrd_end = __be64_to_cpu(*prop2);
-				initrd_end -= CONFIG_SYS_SDRAM_BASE;
+				initrd_end -= CFG_SYS_SDRAM_BASE;
 				initrd_end += CONFIG_SYS_LPAE_SDRAM_BASE;
 				initrd_end = __cpu_to_be64(initrd_end);
 
@@ -221,7 +221,7 @@ void ft_board_setup_ex(void *blob, struct bd_info *bd)
 			*reserve_start = __cpu_to_be64(*reserve_start);
 			size = __cpu_to_be64(*(reserve_start + 1));
 			if (size) {
-				*reserve_start -= CONFIG_SYS_SDRAM_BASE;
+				*reserve_start -= CFG_SYS_SDRAM_BASE;
 				*reserve_start +=
 					CONFIG_SYS_LPAE_SDRAM_BASE;
 				*reserve_start =
board/ti/ti816x/evm.c +1 -1
index 2d42af6b809d..8c708355d4ca 100644
@@ -27,7 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
 {
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_MTD_RAW_NAND)
 	gpmc_init();
 #endif
board/timll/devkit3250/devkit3250.c +3 -3
index 9d4ffb0f979b..efef855b3d06 100644
@@ -56,7 +56,7 @@ int board_early_init_f(void)
 int board_init(void)
 {
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params  = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params  = CFG_SYS_SDRAM_BASE + 0x100;
 
 #ifdef CONFIG_SYS_FLASH_CFI
 	/* Use 16-bit memory interface for NOR Flash */
@@ -76,8 +76,8 @@ int board_init(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
board/toradex/apalis_imx6/apalis_imx6.c +1 -1
index 96d0185329d2..3c7cfa309c13 100644
@@ -79,7 +79,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
 	/* use the DDR controllers configured size */
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
 				    (ulong)imx_ddr_size());
 
 	return 0;
board/toradex/colibri_imx6/colibri_imx6.c +1 -1
index 475250d8013a..65e0e9a156ab 100644
@@ -73,7 +73,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
 	/* use the DDR controllers configured size */
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
 				    (ulong)imx_ddr_size());
 
 	return 0;
board/vscom/baltos/board.c +1 -1
index 07fe45447186..f335d5b4f4aa 100644
@@ -266,7 +266,7 @@ int board_init(void)
 	hw_watchdog_init();
 #endif
 
-	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
 #if defined(CONFIG_NOR) || defined(CONFIG_MTD_RAW_NAND)
 	gpmc_init();
 #endif
board/work-microwave/work_92105/work_92105.c +3 -3
index 5d12f84cfeaa..c8e791a4da8a 100644
@@ -67,15 +67,15 @@ int board_init(void)
 {
 	reset_periph();
 	/* adress of boot parameters */
-	gd->bd->bi_boot_params  = CONFIG_SYS_SDRAM_BASE + 0x100;
+	gd->bd->bi_boot_params  = CFG_SYS_SDRAM_BASE + 0x100;
 
 	return 0;
 }
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
board/xilinx/zynq/board.c +3 -3
index 17ee541bd840..df4c45767238 100644
@@ -105,7 +105,7 @@ int board_late_init(void)
 	return board_late_init_xilinx();
 }
 
-#if !defined(CONFIG_SYS_SDRAM_BASE) && !defined(CONFIG_SYS_SDRAM_SIZE)
+#if !defined(CFG_SYS_SDRAM_BASE) && !defined(CFG_SYS_SDRAM_SIZE)
 int dram_init_banksize(void)
 {
 	return fdtdec_setup_memory_banksize();
@@ -123,8 +123,8 @@ int dram_init(void)
 #else
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	zynq_ddrc_init();
 
board/xilinx/zynqmp/zynqmp.c +4 -4
index 5fe0873fe221..f88c7f8fc902 100644
@@ -236,7 +236,7 @@ unsigned long do_go_exec(ulong (*entry)(int, char * const []), int argc,
 	return ret;
 }
 
-#if !defined(CONFIG_SYS_SDRAM_BASE) && !defined(CONFIG_SYS_SDRAM_SIZE)
+#if !defined(CFG_SYS_SDRAM_BASE) && !defined(CFG_SYS_SDRAM_SIZE)
 int dram_init_banksize(void)
 {
 	int ret;
@@ -261,7 +261,7 @@ int dram_init(void)
 #else
 int dram_init_banksize(void)
 {
-	gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
+	gd->bd->bi_dram[0].start = CFG_SYS_SDRAM_BASE;
 	gd->bd->bi_dram[0].size = get_effective_memsize();
 
 	mem_map_fill();
@@ -271,8 +271,8 @@ int dram_init_banksize(void)
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
-				    CONFIG_SYS_SDRAM_SIZE);
+	gd->ram_size = get_ram_size((void *)CFG_SYS_SDRAM_BASE,
+				    CFG_SYS_SDRAM_SIZE);
 
 	return 0;
 }
boot/image-board.c +2 -2
index 34d1e5f18bef..8813be544be1 100644
@@ -116,8 +116,8 @@ ulong env_get_bootm_low(void)
 		return tmp;
 	}
 
-#if defined(CONFIG_SYS_SDRAM_BASE)
-	return CONFIG_SYS_SDRAM_BASE;
+#if defined(CFG_SYS_SDRAM_BASE)
+	return CFG_SYS_SDRAM_BASE;
 #elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE) || defined(CONFIG_RISCV)
 	return gd->bd->bi_dram[0].start;
 #else
cmd/ti/ddr3.c +9 -9
index aaaedfe9735e..bbd406fc66ec 100644
@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef CONFIG_ARCH_KEYSTONE
 #include <asm/arch/ddr3.h>
-#define DDR_MIN_ADDR		CONFIG_SYS_SDRAM_BASE
+#define DDR_MIN_ADDR		CFG_SYS_SDRAM_BASE
 #define STACKSIZE		(512 << 10)     /* 512 KiB */
 
 #define DDR_REMAP_ADDR		0x80000000
@@ -247,9 +247,9 @@ static int is_addr_valid(u32 addr)
 	/* Check in ecc address range 1 */
 	if (ecc_ctrl & EMIF_ECC_REG_ECC_ADDR_RGN_1_EN_MASK) {
 		start_addr = ((range & EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16)
-				+ CONFIG_SYS_SDRAM_BASE;
+				+ CFG_SYS_SDRAM_BASE;
 		end_addr = (range & EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0xFFFF +
-				CONFIG_SYS_SDRAM_BASE;
+				CFG_SYS_SDRAM_BASE;
 		if ((addr >= start_addr) && (addr <= end_addr))
 			/* addr within ecc address range 1 */
 			return 1;
@@ -259,9 +259,9 @@ static int is_addr_valid(u32 addr)
 	if (ecc_ctrl & EMIF_ECC_REG_ECC_ADDR_RGN_2_EN_MASK) {
 		range = readl(&emif->emif_ecc_address_range_2);
 		start_addr = ((range & EMIF_ECC_REG_ECC_START_ADDR_MASK) << 16)
-				+ CONFIG_SYS_SDRAM_BASE;
+				+ CFG_SYS_SDRAM_BASE;
 		end_addr = (range & EMIF_ECC_REG_ECC_END_ADDR_MASK) + 0xFFFF +
-				CONFIG_SYS_SDRAM_BASE;
+				CFG_SYS_SDRAM_BASE;
 		if ((addr >= start_addr) && (addr <= end_addr))
 			/* addr within ecc address range 2 */
 			return 1;
@@ -309,11 +309,11 @@ static int do_ddr_test(struct cmd_tbl *cmdtp,
 	start_addr = hextoul(argv[2], NULL);
 	end_addr = hextoul(argv[3], NULL);
 
-	if ((start_addr < CONFIG_SYS_SDRAM_BASE) ||
-	    (start_addr > (CONFIG_SYS_SDRAM_BASE +
+	if ((start_addr < CFG_SYS_SDRAM_BASE) ||
+	    (start_addr > (CFG_SYS_SDRAM_BASE +
 	     get_effective_memsize() - 1)) ||
-	    (end_addr < CONFIG_SYS_SDRAM_BASE) ||
-	    (end_addr > (CONFIG_SYS_SDRAM_BASE +
+	    (end_addr < CFG_SYS_SDRAM_BASE) ||
+	    (end_addr > (CFG_SYS_SDRAM_BASE +
 	     get_effective_memsize() - 1)) || (start_addr >= end_addr)) {
 		puts("Invalid start or end address!\n");
 		return cmd_usage(cmdtp);
common/board_f.c +4 -4
index e6117a7ba5e1..aab1130763e3 100644
@@ -329,12 +329,12 @@ __weak int mach_cpu_init(void)
 /* Get the top of usable RAM */
 __weak phys_size_t board_get_usable_ram_top(phys_size_t total_size)
 {
-#if defined(CONFIG_SYS_SDRAM_BASE) && CONFIG_SYS_SDRAM_BASE > 0
+#if defined(CFG_SYS_SDRAM_BASE) && CFG_SYS_SDRAM_BASE > 0
 	/*
 	 * Detect whether we have so much RAM that it goes past the end of our
 	 * 32-bit address space. If so, clip the usable RAM so it doesn't.
 	 */
-	if (gd->ram_top < CONFIG_SYS_SDRAM_BASE)
+	if (gd->ram_top < CFG_SYS_SDRAM_BASE)
 		/*
 		 * Will wrap back to top of 32-bit space when reservations
 		 * are made.
@@ -369,8 +369,8 @@ static int setup_dest_addr(void)
 	 */
 	gd->ram_size -= CONFIG_SYS_MEM_TOP_HIDE;
 #endif
-#ifdef CONFIG_SYS_SDRAM_BASE
-	gd->ram_base = CONFIG_SYS_SDRAM_BASE;
+#ifdef CFG_SYS_SDRAM_BASE
+	gd->ram_base = CFG_SYS_SDRAM_BASE;
 #endif
 	gd->ram_top = gd->ram_base + get_effective_memsize();
 	gd->ram_top = board_get_usable_ram_top(gd->mon_len);
doc/arch/m68k.rst +8 -8
index 15806dfaee15..584503eb12e4 100644
@@ -142,21 +142,21 @@ CONFIG_SYS_CACHE_DCACR:
   cache-related registers config
 CONFIG_SYS_CACHE_ACRX:
   cache-related registers config
-CONFIG_SYS_SDRAM_BASE:
+CFG_SYS_SDRAM_BASE:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_SIZE:
+CFG_SYS_SDRAM_SIZE:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_BASEX:
+CFG_SYS_SDRAM_BASEX:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_CFG1:
+CFG_SYS_SDRAM_CFG1:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_CFG2:
+CFG_SYS_SDRAM_CFG2:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_CTRL:
+CFG_SYS_SDRAM_CTRL:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_MODE:
+CFG_SYS_SDRAM_MODE:
   SDRAM config for SDRAM controller-specific registers
-CONFIG_SYS_SDRAM_EMOD:
+CFG_SYS_SDRAM_EMOD:
   SDRAM config for SDRAM controller-specific registers, please
   see arch/m68k/cpu/<specific_cpu>/start.S files to see how
   these options are used.
doc/arch/nios2.rst +2 -2
index 35defb0af0b1..34a75e7fb007 100644
@@ -96,8 +96,8 @@ to 0xDxxx_xxxx.
 
 .. code-block:: c
 
-   #define CONFIG_SYS_SDRAM_BASE		0xc8000000
-   #define CONFIG_SYS_SDRAM_SIZE		0x08000000
+   #define CFG_SYS_SDRAM_BASE		0xc8000000
+   #define CFG_SYS_SDRAM_SIZE		0x08000000
 
 You will need to change the environment variables location and setting,
 too. You may change other configs to fit your board.
drivers/ddr/fsl/arm_ddr_gen3.c +1 -1
index 5e8fb7a89c21..9dada5e11756 100644
@@ -130,7 +130,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
 	if (is_warm_boot()) {
 		ddr_out32(&ddr->sdram_cfg_2,
 			  regs->ddr_sdram_cfg_2 & ~SDRAM_CFG2_D_INIT);
-		ddr_out32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+		ddr_out32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
 		ddr_out32(&ddr->init_ext_addr, DDR_INIT_ADDR_EXT_UIA);
 
 		/* DRAM VRef will not be trained */
drivers/ddr/fsl/fsl_ddr_gen4.c +1 -1
index 3c1f7a189120..f8d1468a26f1 100644
@@ -230,7 +230,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
 	if (is_warm_boot()) {
 		ddr_out32(&ddr->sdram_cfg_2,
 			  regs->ddr_sdram_cfg_2 & ~SDRAM_CFG2_D_INIT);
-		ddr_out32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+		ddr_out32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
 		ddr_out32(&ddr->init_ext_addr, DDR_INIT_ADDR_EXT_UIA);
 
 		/* DRAM VRef will not be trained */
drivers/ddr/fsl/main.c +1 -1
index fcff223b4f0d..4975dbb821e1 100644
@@ -30,7 +30,7 @@
  */
 #ifndef CFG_SYS_FSL_DDR_SDRAM_BASE_PHY
 #ifdef CONFIG_MPC83xx
-#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CONFIG_SYS_SDRAM_BASE
+#define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CFG_SYS_SDRAM_BASE
 #else
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CONFIG_SYS_DDR_SDRAM_BASE
 #endif
drivers/ddr/fsl/mpc85xx_ddr_gen3.c +1 -1
index 0f2dc243cb82..1c4a1cae4df4 100644
@@ -162,7 +162,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
 	if (is_warm_boot()) {
 		out_be32(&ddr->sdram_cfg_2,
 			 regs->ddr_sdram_cfg_2 & ~SDRAM_CFG2_D_INIT);
-		out_be32(&ddr->init_addr, CONFIG_SYS_SDRAM_BASE);
+		out_be32(&ddr->init_addr, CFG_SYS_SDRAM_BASE);
 		out_be32(&ddr->init_ext_addr, DDR_INIT_ADDR_EXT_UIA);
 
 		/* DRAM VRef will not be trained */
drivers/ddr/marvell/axp/ddr3_axp.h +2 -2
index a14c766dda71..c40cd768abf5 100644
@@ -19,10 +19,10 @@
 #define FAR_END_DIMM_ADDR		0x50
 #define MAX_DIMM_ADDR			0x60
 
-#ifndef CONFIG_SYS_SDRAM_SIZE
+#ifndef CFG_SYS_SDRAM_SIZE
 #define SDRAM_CS_SIZE			0xFFFFFFF
 #else
-#define SDRAM_CS_SIZE			((CONFIG_SYS_SDRAM_SIZE >> 10) - 1)
+#define SDRAM_CS_SIZE			((CFG_SYS_SDRAM_SIZE >> 10) - 1)
 #endif
 #define SDRAM_CS_BASE			0x0
 #define SDRAM_DIMM_SIZE			0x80000000
drivers/pci/Kconfig +1 -1
index 22f4995453ed..a3b662fb13da 100644
@@ -60,7 +60,7 @@ config PCI_MAP_SYSTEM_MEMORY
 	  instead of a physical address (e.g. on MIPS). The PCI core will then remap
 	  the virtual memory base address to a physical address when adding the PCI
 	  region of type PCI_REGION_SYS_MEMORY.
-	  This should only be required on MIPS where CONFIG_SYS_SDRAM_BASE is still
+	  This should only be required on MIPS where CFG_SYS_SDRAM_BASE is still
 	  being used as virtual address.
 
 config PCI_SRIOV
drivers/pci/pci-rcar-gen2.c +2 -2
index dc114027814d..b81eb3536896 100644
@@ -191,7 +191,7 @@ static int rcar_gen2_pci_probe(struct udevice *dev)
 
 	/* AHB-PCI Bridge Communication Registers */
 	writel(RCAR_AHB_BUS_MODE, priv->cfg_base + RCAR_AHB_BUS_CTR_REG);
-	writel((CONFIG_SYS_SDRAM_BASE & 0xf0000000) | RCAR_PCIAHB_PREFETCH16,
+	writel((CFG_SYS_SDRAM_BASE & 0xf0000000) | RCAR_PCIAHB_PREFETCH16,
 	       priv->cfg_base + RCAR_PCIAHB_WIN1_CTR_REG);
 	writel(0xf0000000 | RCAR_PCIAHB_PREFETCH16,
 	       priv->cfg_base + RCAR_PCIAHB_WIN2_CTR_REG);
@@ -204,7 +204,7 @@ static int rcar_gen2_pci_probe(struct udevice *dev)
 	/* PCI Configuration Registers for AHBPCI */
 	devad = setup_bus_address(dev, PCI_BDF(0, 0, 0), 0);
 	writel(priv->cfg_base + 0x800, devad + PCI_BASE_ADDRESS_0);
-	writel(CONFIG_SYS_SDRAM_BASE & 0xf0000000, devad + PCI_BASE_ADDRESS_1);
+	writel(CFG_SYS_SDRAM_BASE & 0xf0000000, devad + PCI_BASE_ADDRESS_1);
 	writel(0xf0000000, devad + PCI_BASE_ADDRESS_2);
 	writel(PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER |
 	       PCI_COMMAND_PARITY | PCI_COMMAND_SERR,
drivers/pci/pci_sh7751.c +3 -3
index d514c040344c..c1be56ce7a08 100644
@@ -158,9 +158,9 @@ static int sh7751_pci_probe(struct udevice *dev)
 
 	/* Set up target memory mappings (for external DMA access) */
 	/* Map both P0 and P2 range to Area 3 RAM for ease of use */
-	p4_out(CONFIG_SYS_SDRAM_SIZE - 0x100000, SH7751_PCILSR0);
-	p4_out(CONFIG_SYS_SDRAM_BASE & 0x1FF00000, SH7751_PCILAR0);
-	p4_out(CONFIG_SYS_SDRAM_BASE & 0xFFF00000, SH7751_PCICONF5);
+	p4_out(CFG_SYS_SDRAM_SIZE - 0x100000, SH7751_PCILSR0);
+	p4_out(CFG_SYS_SDRAM_BASE & 0x1FF00000, SH7751_PCILAR0);
+	p4_out(CFG_SYS_SDRAM_BASE & 0xFFF00000, SH7751_PCICONF5);
 
 	p4_out(0, SH7751_PCILSR1);
 	p4_out(0, SH7751_PCILAR1);
drivers/pci/pcie_dw_mvebu.c +2 -2
index 99891dce61d5..a0b82c78321c 100644
@@ -459,9 +459,9 @@ static void pcie_dw_set_host_bars(const void *regs_base)
 	}
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/pci/pcie_layerscape.h +2 -2
index a52774179e2f..b7f692f64507 100644

Lines of this file are not shown. View the raw message.

drivers/ram/aspeed/sdram_ast2500.c +2 -2
index 141b19b57ac0..dc466a88e712 100644

Lines of this file are not shown. View the raw message.

drivers/ram/aspeed/sdram_ast2600.c +3 -3
index 9ad398d24155..dd4285020d76 100644

Lines of this file are not shown. View the raw message.

drivers/ram/mediatek/ddr3-mt7629.c +6 -6
index d12a3b4f436e..1737fdac9707 100644

Lines of this file are not shown. View the raw message.

drivers/ram/octeon/octeon_ddr.c +1 -1
index 42daf0686686..bb21078df140 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/dmc-rk3368.c +6 -6
index 69c454a4ba86..6929a7e494ee 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_common.c +17 -17
index b3e7421d0854..ec46ba54575e 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_px30.c +1 -1
index c024a0cd6337..98b2593ac49f 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3066.c +7 -7
index 832154ee3af1..a2425f22e2ca 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3128.c +1 -1
index 16cfbf947bde..ded65393806e 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3188.c +7 -7
index be8ba4464d45..272b1b2dce1f 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk322x.c +12 -12
index cd4234f389eb..1b204fb56e66 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3288.c +7 -7
index 227a3cc6a88d..83778ad1c2c1 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3308.c +1 -1
index 44d7d8a0d9be..10828e80822a 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3328.c +1 -1
index 9c6798f816ac..b511c6bf6fe5 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3399.c +1 -1
index cbf502bd0e96..136e4ede7122 100644

Lines of this file are not shown. View the raw message.

drivers/ram/rockchip/sdram_rk3568.c +1 -1
index 0ac4b54eef3e..f661615c1b91 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/ehci-rmobile.c +2 -2
index 130b73dfe49d..60525f228679 100644

Lines of this file are not shown. View the raw message.

drivers/video/sunxi/sunxi_display.c +2 -2
index 2ee6212c58dc..9110a4848211 100644

Lines of this file are not shown. View the raw message.

include/configs/10m50_devboard.h +2 -2
index 719caf7b0c3b..3a4fbc6eab83 100644

Lines of this file are not shown. View the raw message.

include/configs/3c120_devboard.h +2 -2
index ad7bd133200f..ab889180eede 100644

Lines of this file are not shown. View the raw message.

include/configs/M5208EVBE.h +11 -11
index 25c3f22bea13..6dfa3dd0f02a 100644

Lines of this file are not shown. View the raw message.

include/configs/M5235EVB.h +6 -6
index f200d706a92a..e28662c6e59a 100644

Lines of this file are not shown. View the raw message.

include/configs/M5249EVB.h +6 -6
index 9ff66d751c66..f1da278d5159 100644

Lines of this file are not shown. View the raw message.

include/configs/M5253DEMO.h +6 -6
index f7bfe598a80a..bd3c57d1438c 100644

Lines of this file are not shown. View the raw message.

include/configs/M5272C3.h +6 -6
index dcd83650f22e..7c3bc032bfee 100644

Lines of this file are not shown. View the raw message.

include/configs/M5275EVB.h +6 -6
index 9012794501a8..4eb4abea7251 100644

Lines of this file are not shown. View the raw message.

include/configs/M5282EVB.h +6 -6
index 925d26eaf10d..eda394467e93 100644

Lines of this file are not shown. View the raw message.

include/configs/M53017EVB.h +11 -11
index 79a4e6171d23..159993a46bc5 100644

Lines of this file are not shown. View the raw message.

include/configs/M5329EVB.h +11 -11
index fc21af56ec7b..d7ece6393498 100644

Lines of this file are not shown. View the raw message.

include/configs/M5373EVB.h +11 -11
index f7c09a2333cb..b2fc6923e0d9 100644

Lines of this file are not shown. View the raw message.

include/configs/MCR3000.h +2 -2
index a5518d3d50f2..2e7140cd86a1 100644

Lines of this file are not shown. View the raw message.

include/configs/MPC837XERDB.h +2 -2
index 0e70b2853b29..d9627e393d9c 100644

Lines of this file are not shown. View the raw message.

include/configs/MPC8548CDS.h +1 -1
index c59a37646f49..6a51149a9494 100644

Lines of this file are not shown. View the raw message.

include/configs/P1010RDB.h +2 -2
index f87e7597ad04..21491b9f97ca 100644

Lines of this file are not shown. View the raw message.

include/configs/P2041RDB.h +2 -2
index 8c7b877bfb92..d7e06d23ec45 100644

Lines of this file are not shown. View the raw message.

include/configs/SBx81LIFKW.h +1 -1
index 824190a41234..417b9ae7b241 100644

Lines of this file are not shown. View the raw message.

include/configs/SBx81LIFXCAT.h +1 -1
index e67da1fe1dc2..87b68227a0d9 100644

Lines of this file are not shown. View the raw message.

include/configs/T102xRDB.h +3 -3
index 154b2f174afb..616387f48769 100644

Lines of this file are not shown. View the raw message.

include/configs/T104xRDB.h +2 -2
index 847cf65b4092..37dfe32e21bf 100644

Lines of this file are not shown. View the raw message.

include/configs/T208xQDS.h +2 -2
index b49c26477684..8f56de40ce8f 100644

Lines of this file are not shown. View the raw message.

include/configs/T208xRDB.h +2 -2
index aae41a339254..e9db4a224f90 100644

Lines of this file are not shown. View the raw message.

include/configs/T4240RDB.h +2 -2
index 9dc45e397f9b..cc86c9d4a51b 100644

Lines of this file are not shown. View the raw message.

include/configs/am62x_evm.h +1 -1
index 78201adc07f5..57f3f37908df 100644

Lines of this file are not shown. View the raw message.

include/configs/am64x_evm.h +1 -1
index 140940730d0e..25c71f00a20f 100644

Lines of this file are not shown. View the raw message.

include/configs/am65x_evm.h +1 -1
index 0345160787ef..0307426e4aba 100644

Lines of this file are not shown. View the raw message.

include/configs/amcore.h +2 -2
index 2bda66fe033b..eba78d3894c8 100644

Lines of this file are not shown. View the raw message.

include/configs/ap121.h +1 -1
index 650140bb724c..63c7dfc1feba 100644

Lines of this file are not shown. View the raw message.

include/configs/ap143.h +1 -1
index 3114cf0c4fba..865aad2a3f90 100644

Lines of this file are not shown. View the raw message.

include/configs/ap152.h +1 -1
index f0674456fd0c..0464a69e8236 100644

Lines of this file are not shown. View the raw message.

include/configs/apalis-imx8.h +1 -1
index e2e491bdb0aa..cf23837863be 100644

Lines of this file are not shown. View the raw message.

include/configs/apalis_imx6.h +1 -1
index 30d32d27e3dc..356d4c35ee2b 100644

Lines of this file are not shown. View the raw message.

include/configs/arbel.h +2 -2
index f7deba4f5666..ed32e772f8e2 100644

Lines of this file are not shown. View the raw message.

include/configs/aristainetos2.h +1 -1
index 35e8840a92a0..90cf4705f4f4 100644

Lines of this file are not shown. View the raw message.

include/configs/aspeed-common.h +1 -1
index 5c9005805e1f..cbd0d6cea011 100644

Lines of this file are not shown. View the raw message.

include/configs/astro_mcf5373l.h +6 -6
index 58635df149b7..b142ea3c3350 100644

Lines of this file are not shown. View the raw message.

include/configs/at91sam9260ek.h +2 -2
index 574bfe37e9ad..0d76f419db5b 100644

Lines of this file are not shown. View the raw message.

include/configs/at91sam9261ek.h +2 -2
index 2c785ad4264d..dcc1cca4791b 100644

Lines of this file are not shown. View the raw message.

include/configs/at91sam9263ek.h +14 -14
index bba8574b1c86..aefa9fc60c40 100644

Lines of this file are not shown. View the raw message.

include/configs/at91sam9m10g45ek.h +2 -2
index 3ce264a4a90b..08cfee1a4e18 100644

Lines of this file are not shown. View the raw message.

include/configs/at91sam9n12ek.h +2 -2
index 5e3ded241fa9..76f87c16192e 100644

Lines of this file are not shown. View the raw message.

include/configs/at91sam9rlek.h +2 -2
index b79c8ba5bf86..e1111b6dd38e 100644

Lines of this file are not shown. View the raw message.

include/configs/at91sam9x5ek.h +2 -2
index 40ea4ed49e8a..eb1d1ad60d1a 100644

Lines of this file are not shown. View the raw message.

include/configs/ax25-ae350.h +1 -1
index e3b6956eb5a2..83ac87b10a58 100644

Lines of this file are not shown. View the raw message.

include/configs/axs10x.h +2 -2
index 1932713f453a..6d82712186d4 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm947622.h +1 -1
index d0c46a2c823b..b02ed1bfe0e0 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm94908.h +1 -1
index 1346ace4bf6c..246feb66b295 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm94912.h +1 -1
index f3d17ddaacfb..c428b1ab5785 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm963138.h +1 -1
index 361569a8c5f0..f1b68ba67338 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm963146.h +1 -1
index edbdfc3c51ad..90dfa98311d2 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm963148.h +1 -1
index 5a24cccba108..54f6750c7433 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm963158.h +1 -1
index b15c4111c967..2fdd22d1b0d1 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm963178.h +1 -1
index b25f6a12819a..32fc4a5e390f 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm96756.h +1 -1
index c8f32672b7d8..c69d177da2ea 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm96813.h +1 -1
index 5d9e87b693a0..37d2d91d96f0 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm96846.h +1 -1
index 1d6d5d616691..581fd559856e 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm96855.h +1 -1
index 6e420f2c66fb..3fb1ab9230c8 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm96856.h +1 -1
index a7ae71eeaafe..5f5af321897a 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm96858.h +1 -1
index 4e584b41fb37..9a0d89a7519f 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm96878.h +1 -1
index 3e23e94ac4bd..7702d1f56828 100644

Lines of this file are not shown. View the raw message.

include/configs/bcm_ns3.h +1 -1
index 76189a4d31f7..b5469880fe2f 100644

Lines of this file are not shown. View the raw message.

include/configs/bcmstb.h +1 -1
index 9f51b9ca59d2..9769a7140926 100644

Lines of this file are not shown. View the raw message.

include/configs/bitmain_antminer_s9.h +2 -2
index 829e816ad664..556bfa08ebba 100644

Lines of this file are not shown. View the raw message.

include/configs/bk4r1.h +1 -1
index ca2bc1907e39..a075a5b2f326 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm3380.h +1 -1
index c328f4142015..e40f110cac6e 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6318.h +1 -1
index d16d50e5ec2f..508317f231ee 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm63268.h +1 -1
index f69c46b11c4b..c5bda16d2bcd 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6328.h +1 -1
index acd021ecadcc..32397c26e8ab 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6338.h +1 -1
index fa9e5f02a085..18c99727a042 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6348.h +1 -1
index bcf5c874d322..f8d7148d497e 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6358.h +1 -1
index e31b8bc719e6..d564a32ee526 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6362.h +1 -1
index 6e707d341b7f..f982a4363db6 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6368.h +1 -1
index bb72c8cb533b..11d623c28b21 100644

Lines of this file are not shown. View the raw message.

include/configs/bmips_bcm6838.h +1 -1
index a1c992b7a6e6..30965c85bfaa 100644

Lines of this file are not shown. View the raw message.

include/configs/boston.h +2 -2
index a09e831c540e..0033a7fb0223 100644

Lines of this file are not shown. View the raw message.

include/configs/brppt2.h +1 -1
index bdedf7ea2d78..78b2000aa2ed 100644

Lines of this file are not shown. View the raw message.

include/configs/bur_am335x_common.h +1 -1
index 1bf6baf75c23..f1734aaca7f5 100644

Lines of this file are not shown. View the raw message.

include/configs/capricorn-common.h +1 -1
index c4110f84c0bc..474ad69d996c 100644

Lines of this file are not shown. View the raw message.

include/configs/cgtqmx8.h +1 -1
index c395384c8d38..6f2b8245b986 100644

Lines of this file are not shown. View the raw message.

include/configs/ci20.h +1 -1
index b7511adc09ad..f268dfd0943d 100644

Lines of this file are not shown. View the raw message.

include/configs/cl-som-imx7.h +1 -1
index fc45e597f6d1..eb899c455782 100644

Lines of this file are not shown. View the raw message.

include/configs/cm_fx6.h +1 -1
index 25443629e208..47c4aacc436b 100644

Lines of this file are not shown. View the raw message.

include/configs/cobra5272.h +6 -6
index 52000b58b73f..65b9074cd9cb 100644

Lines of this file are not shown. View the raw message.

include/configs/colibri-imx6ull.h +1 -1
index afe8badd6502..ca8445a3d05a 100644

Lines of this file are not shown. View the raw message.

include/configs/colibri-imx8x.h +1 -1
index d641fbf47e75..6002d8d5c9f0 100644

Lines of this file are not shown. View the raw message.

include/configs/colibri_imx6.h +1 -1
index 68d923c1ae19..14278e9ca4f7 100644

Lines of this file are not shown. View the raw message.

include/configs/colibri_imx7.h +1 -1
index f9bf849ae980..c08095561d83 100644

Lines of this file are not shown. View the raw message.

include/configs/colibri_vf.h +1 -1
index 0f6f99d244f9..11283071397f 100644

Lines of this file are not shown. View the raw message.

include/configs/corstone1000.h +1 -1
index 8e0230c135e3..8aec52d508e2 100644

Lines of this file are not shown. View the raw message.

include/configs/corvus.h +2 -2
index 9d44e6723e2a..c7a3e47437bc 100644

Lines of this file are not shown. View the raw message.

include/configs/da850evm.h +1 -1
index 4f0188dd19ed..e2e1cfedbde1 100644

Lines of this file are not shown. View the raw message.

include/configs/dart_6ul.h +1 -1
index b944d50663ce..b16f3d48e386 100644

Lines of this file are not shown. View the raw message.

include/configs/devkit3250.h +2 -2
index 5244b9cf5cc8..c473f3d86ebf 100644

Lines of this file are not shown. View the raw message.

include/configs/dh_imx6.h +1 -1
index e694dd7551ae..ddc436d50190 100644

Lines of this file are not shown. View the raw message.

include/configs/display5.h +1 -1
index 0e5ecab9feb2..0a7428b02caf 100644

Lines of this file are not shown. View the raw message.

include/configs/dragonboard410c.h +1 -1
index c37b4c635b27..daf7ecd7975b 100644

Lines of this file are not shown. View the raw message.

include/configs/dragonboard820c.h +1 -1
index 1fa5d05e7b47..31cd8536de4b 100644

Lines of this file are not shown. View the raw message.

include/configs/durian.h +1 -1
index 8f0e8be43307..001596c00a45 100644

Lines of this file are not shown. View the raw message.

include/configs/ea-lpc3250devkitv2.h +1 -1
index 1d655292d7ef..fc1c2aed7780 100644

Lines of this file are not shown. View the raw message.

include/configs/eb_cpu5282.h +7 -7
index 80a820c913b7..80de73d15d50 100644

Lines of this file are not shown. View the raw message.

include/configs/el6x_common.h +1 -1
index 16d2648e11f3..d24bc56f34ab 100644

Lines of this file are not shown. View the raw message.

include/configs/embestmx6boards.h +1 -1
index a4891ddbc4ff..e39bb94314f3 100644

Lines of this file are not shown. View the raw message.

include/configs/emsdp.h +2 -2
index 60fab0419f5d..c2b921e7cb8b 100644

Lines of this file are not shown. View the raw message.

include/configs/espresso7420.h +1 -1
index 2f067a442482..b4f14a9a589d 100644

Lines of this file are not shown. View the raw message.

include/configs/ethernut5.h +2 -2
index f19e12d90904..97a8ffb4f61e 100644

Lines of this file are not shown. View the raw message.

include/configs/exynos5-common.h +8 -8
index 44f5cb1e83f4..dd322c2b3a79 100644

Lines of this file are not shown. View the raw message.

include/configs/exynos5250-common.h +1 -1
index 8e2f135f934c..cc0cf5ecbfbd 100644

Lines of this file are not shown. View the raw message.

include/configs/exynos7420-common.h +8 -8
index a8bef860c2f7..cff910c1bd5b 100644

Lines of this file are not shown. View the raw message.

include/configs/exynos78x0-common.h +13 -13
index b05846d0b920..68c36dc2fd95 100644

Lines of this file are not shown. View the raw message.

include/configs/gardena-smart-gateway-at91sam.h +2 -2
index ba098316e083..f5353ec79a1a 100644

Lines of this file are not shown. View the raw message.

include/configs/gardena-smart-gateway-mt7688.h +1 -1
index a1400eba1ada..a7557144402b 100644

Lines of this file are not shown. View the raw message.

include/configs/gazerbeam.h +3 -3
index fa6f0e63ac50..6cdfe8c4c3c0 100644

Lines of this file are not shown. View the raw message.

include/configs/ge_b1x5v2.h +1 -1
index c862f15ee2b4..85ceaf8ccb1a 100644

Lines of this file are not shown. View the raw message.

include/configs/ge_bx50v3.h +1 -1
index d519384d026e..1dba2e92fb9d 100644

Lines of this file are not shown. View the raw message.

include/configs/grpeach.h +2 -2
index d2138c220f0a..dd6b22de7bac 100644

Lines of this file are not shown. View the raw message.

include/configs/gw_ventana.h +1 -1
index 645ca162a35a..fe00272a1bd0 100644

Lines of this file are not shown. View the raw message.

include/configs/gxp.h +1 -1
index e3c97b20d51e..2b0b04891cc2 100644

Lines of this file are not shown. View the raw message.

include/configs/highbank.h +1 -1
index a7d21a76dba5..0d281a3379aa 100644

Lines of this file are not shown. View the raw message.

include/configs/hikey.h +1 -1
index 18c1e83aeb4a..775f166f1d35 100644

Lines of this file are not shown. View the raw message.

include/configs/hikey960.h +1 -1
index 973df8e4abce..914c3ad9ef04 100644

Lines of this file are not shown. View the raw message.

include/configs/hsdk-4xd.h +2 -2
index 1d7b171da75a..fcb2dec54ec1 100644

Lines of this file are not shown. View the raw message.

include/configs/hsdk.h +2 -2
index 9e092e16ea04..0ae935208ca5 100644

Lines of this file are not shown. View the raw message.

include/configs/imgtec_xilfpga.h +2 -2
index 1fc45f9060bb..f1ca28b7ca32 100644

Lines of this file are not shown. View the raw message.

include/configs/imx27lite-common.h +1 -1
index 974dff8f6f44..594aa4f75e77 100644

Lines of this file are not shown. View the raw message.

include/configs/imx6-engicam.h +1 -1
index b8eb5c82cf7e..d4e2583ee8a4 100644

Lines of this file are not shown. View the raw message.

include/configs/imx6_logic.h +1 -1
index 6b822e725058..1b08c5e9a7e6 100644

Lines of this file are not shown. View the raw message.

include/configs/imx6dl-mamoj.h +1 -1
index f7f8f33ed898..a074df5829b4 100644

Lines of this file are not shown. View the raw message.

include/configs/imx6q-bosch-acc.h +1 -1
index 15171d7ad67b..855af29ec96d 100644

Lines of this file are not shown. View the raw message.

include/configs/imx6ulz_smm_m2.h +1 -1
index 70b4b84215d3..0a688afe6cdb 100644

Lines of this file are not shown. View the raw message.

include/configs/imx7-cm.h +1 -1
index c6db5e943eea..e5118f11580e 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mm-cl-iot-gate.h +1 -1
index 917d567d2eca..e62f9c5462b2 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mm_beacon.h +1 -1
index 8e0889945805..143da0011046 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mm_data_modul_edm_sbc.h +1 -1
index dd9f93f35c29..c7669305f592 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mm_evk.h +1 -1
index f1d1c1c9c3d1..9937071874fd 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mm_icore_mx8mm.h +1 -1
index 9cdba70493b2..cd47d842ffc7 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mm_venice.h +1 -1
index 065356341fca..58e165c35a7b 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mn_beacon.h +1 -1
index 0ae3da12ad38..f532c1052f5d 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mn_bsh_smm_s2_common.h +1 -1
index d6959ac95a13..415248eadfc5 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mn_evk.h +1 -1
index 9c75e3eec152..8857bc7c598b 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mn_var_som.h +1 -1
index a484d9136492..628bb5813ff1 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mn_venice.h +1 -1
index d5252abb2180..a169be35a492 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mp_dhcom_pdk2.h +1 -1
index bf8782513644..62bcef5eecdb 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mp_evk.h +1 -1
index 1b533e2c142e..d394762e3bb2 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mp_icore_mx8mp.h +1 -1
index 7986d20eed1a..3e995c972172 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mp_rsb3720.h +1 -1
index 8f2b474817d9..1943a24b79db 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mp_venice.h +1 -1
index b1c213cc89b6..7d360583c416 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mq_cm.h +1 -1
index 4b2107e40574..271376cb9fc8 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mq_evk.h +1 -1
index 2d4c8d78c676..672a9fa7a342 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8mq_phanbell.h +1 -1
index 1905e538c5be..dd354b0265de 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8qm_mek.h +1 -1
index 7f6d59db3aa2..f1f907f3e5a4 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8qm_rom7720.h +1 -1
index 67f19bc19220..fe27ac36a3b1 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8qxp_mek.h +1 -1
index 567351fcad64..19f1dba04706 100644

Lines of this file are not shown. View the raw message.

include/configs/imx8ulp_evk.h +1 -1
index 7bf0ce784c5e..592df2795b13 100644

Lines of this file are not shown. View the raw message.

include/configs/imx93_evk.h +1 -1
index b28146640863..077a4d843dcd 100644

Lines of this file are not shown. View the raw message.

include/configs/integrator-common.h +1 -1
index 512e0e61aa78..8d0458d1d63f 100644

Lines of this file are not shown. View the raw message.

include/configs/iot_devkit.h +7 -7
index a2e50c3b8df2..5a769e078717 100644

Lines of this file are not shown. View the raw message.

include/configs/j721e_evm.h +1 -1
index 9f54f259994a..2a0b0c7163a7 100644

Lines of this file are not shown. View the raw message.

include/configs/j721s2_evm.h +1 -1
index 932d7d3c8cb5..e690ef959060 100644

Lines of this file are not shown. View the raw message.

include/configs/km/km-mpc83xx.h +2 -2
index 7d36a25dc232..db1daee13633 100644

Lines of this file are not shown. View the raw message.

include/configs/km/pg-wcom-ls102xa.h +1 -1
index ad9853ab6b3b..b5913ed70003 100644

Lines of this file are not shown. View the raw message.

include/configs/kmcent2.h +2 -2
index c8423fdfb0ab..dbf038cefa03 100644

Lines of this file are not shown. View the raw message.

include/configs/kontron-sl-mx6ul.h +1 -1
index b3e1fc2a864e..e2808ec02dc1 100644

Lines of this file are not shown. View the raw message.

include/configs/kontron-sl-mx8mm.h +1 -1
index a2aedefcec21..73b595176219 100644

Lines of this file are not shown. View the raw message.

include/configs/kontron_pitx_imx8m.h +1 -1
index 6acd2f792534..9b452818c1e1 100644

Lines of this file are not shown. View the raw message.

include/configs/kontron_sl28.h +1 -1
index 7ed1f153c232..bbf0761814b4 100644

Lines of this file are not shown. View the raw message.

include/configs/kp_imx53.h +1 -1
index c401fd32169d..967de66f3c9d 100644

Lines of this file are not shown. View the raw message.

include/configs/kp_imx6q_tpc.h +1 -1
index b0e49ad6df07..de1fc0bfa4c6 100644

Lines of this file are not shown. View the raw message.

include/configs/legoev3.h +1 -1
index 1f642fbecc3c..bee064c6f385 100644

Lines of this file are not shown. View the raw message.

include/configs/librem5.h +1 -1
index dbd7d107dae9..3a2c508ffacf 100644

Lines of this file are not shown. View the raw message.

include/configs/linkit-smart-7688.h +1 -1
index 28372d41590a..b9134508853b 100644

Lines of this file are not shown. View the raw message.

include/configs/liteboard.h +1 -1
index 1d51b87b68b3..d1ebd99ae144 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1012a2g5rdb.h +1 -1
index 196e024b57e0..f0a9e9ab3155 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1012a_common.h +1 -1
index 809f9ae8c8dc..07124370775b 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1012afrdm.h +1 -1
index 674bcbeb7584..c19ed2f43ecf 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1012aqds.h +1 -1
index 9ad3a1201183..54555b34dd47 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1012ardb.h +1 -1
index 4f77acdaedec..d74936d1281d 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1021aiot.h +1 -1
index 3579f9c8437b..49a77fd6b6bb 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1021aqds.h +1 -1
index 45665115f662..1f5a80ff085a 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1021atsn.h +1 -1
index 1e2db12a83f2..495460661150 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1021atwr.h +1 -1
index 323feb6e3333..d77224934c01 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1028a_common.h +1 -1
index 587f23be587f..064c4f069cbd 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1043a_common.h +1 -1
index df6338298b48..e940dff99889 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1046a_common.h +1 -1
index b09588f4796d..ce254d8b3f12 100644

Lines of this file are not shown. View the raw message.

include/configs/ls1088a_common.h +1 -1
index 2117b0811686..f8eaee881d06 100644

Lines of this file are not shown. View the raw message.

include/configs/ls2080a_common.h +1 -1
index c79a50795b8c..21c097ecbbdf 100644

Lines of this file are not shown. View the raw message.

include/configs/lx2160a_common.h +2 -2
index 8b2b7479c11b..ad85e2de6eda 100644

Lines of this file are not shown. View the raw message.

include/configs/m53menlo.h +1 -1
index 1734f323f929..cbdb2fa1357e 100644

Lines of this file are not shown. View the raw message.

include/configs/malta.h +3 -3
index 2dd34ea7313c..c9aee00cd357 100644

Lines of this file are not shown. View the raw message.

include/configs/maxbcm.h +1 -1
index db84302231a6..5ad945b55896 100644

Lines of this file are not shown. View the raw message.

include/configs/mccmon6.h +1 -1
index f9f0825f6f81..8aa3b0cd808c 100644

Lines of this file are not shown. View the raw message.

include/configs/meerkat96.h +1 -1
index c6ce8837474e..2422cbf9f0b6 100644

Lines of this file are not shown. View the raw message.

include/configs/meesc.h +2 -2
index cd3910ee4ba6..2e07886c194b 100644

Lines of this file are not shown. View the raw message.

include/configs/meson64.h +1 -1
index 0c41df2a9574..f06fe73485fb 100644

Lines of this file are not shown. View the raw message.

include/configs/microchip_mpfs_icicle.h +1 -1
index 4c7cfac8af75..3def93d61e8a 100644

Lines of this file are not shown. View the raw message.

include/configs/msc_sm2s_imx8mp.h +1 -1
index bd35378800b7..ac5ff9289a52 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7620.h +1 -1
index c76e1fcaed9e..65cd6f5bc4c2 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7621.h +1 -1
index e09e9c82eb8d..1211bb474880 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7622.h +1 -1
index fd8e30acf592..e5d60e1cd2b1 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7623.h +1 -1
index 73093f94d2b6..39a7ba76633b 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7628.h +1 -1
index bb12ebfe4fd0..9c5034f5f086 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7629.h +1 -1
index 668dc3c4f741..d330adbc01b9 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7981.h +1 -1
index 9f26b0ba7bba..249f0b9662d0 100644

Lines of this file are not shown. View the raw message.

include/configs/mt7986.h +1 -1
index 4fbd57a573db..990e411a6406 100644

Lines of this file are not shown. View the raw message.

include/configs/mt8518.h +2 -2
index 7cabbef92889..8a8bc85ca70e 100644

Lines of this file are not shown. View the raw message.

include/configs/mv-common.h +1 -1
index e870fc810cb1..e45bfd76b6e1 100644

Lines of this file are not shown. View the raw message.

include/configs/mvebu_alleycat-5.h +1 -1
index 41bdfae6c31c..9c4038be8b04 100644

Lines of this file are not shown. View the raw message.

include/configs/mvebu_armada-37xx.h +1 -1
index 6d3cb99b2dfe..7641b5622194 100644

Lines of this file are not shown. View the raw message.

include/configs/mvebu_armada-8k.h +1 -1
index 5debd9117c6e..358e06fd2079 100644

Lines of this file are not shown. View the raw message.

include/configs/mx23_olinuxino.h +1 -1
index dd303a17d61c..aa3d7a1a3fc8 100644

Lines of this file are not shown. View the raw message.

include/configs/mx23evk.h +1 -1
index 4c0531212edd..f597cdb30563 100644

Lines of this file are not shown. View the raw message.

include/configs/mx28evk.h +1 -1
index 140f5e98c521..bc8c89337043 100644

Lines of this file are not shown. View the raw message.

include/configs/mx51evk.h +1 -1
index 95afb350ec34..2229980db370 100644

Lines of this file are not shown. View the raw message.

include/configs/mx53cx9020.h +1 -1
index 778356397202..e84bac67ef72 100644

Lines of this file are not shown. View the raw message.

include/configs/mx53loco.h +1 -1
index 3c9b2ad58ee4..9e837a388337 100644

Lines of this file are not shown. View the raw message.

include/configs/mx53ppd.h +1 -1
index b26613a2ea83..52ff7b00b436 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6cuboxi.h +1 -1
index 1db4d6c01b17..3c4ba095e4e7 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6memcal.h +1 -1
index a6cefab5508a..9c160c41ece6 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6sabre_common.h +1 -1
index bc9fab12909a..711b5a334aad 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6slevk.h +1 -1
index ca1d077437b7..3c2621d8c91a 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6sllevk.h +1 -1
index 44a5eeff1984..a3a12aeb3900 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6sxsabreauto.h +1 -1
index a41e428eb8ad..f0e239fdb6eb 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6sxsabresd.h +1 -1
index c655671ee1bd..a0f9c537e5dd 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6ul_14x14_evk.h +1 -1
index 65f0a5c99662..8199b4b8319e 100644

Lines of this file are not shown. View the raw message.

include/configs/mx6ullevk.h +1 -1
index 604923ec2b77..827385c65e2a 100644

Lines of this file are not shown. View the raw message.

include/configs/mx7dsabresd.h +1 -1
index af176583814f..c39b3572b84b 100644

Lines of this file are not shown. View the raw message.

include/configs/mx7ulp_com.h +1 -1
index 62e8e6299118..362de482f575 100644

Lines of this file are not shown. View the raw message.

include/configs/mx7ulp_evk.h +1 -1
index e93824928b32..9ef1eea5e61d 100644

Lines of this file are not shown. View the raw message.

include/configs/mys_6ulx.h +1 -1
index 273f938554de..cdd12866ac0a 100644

Lines of this file are not shown. View the raw message.

include/configs/nitrogen6x.h +1 -1
index ec5339d930a3..9d0981131647 100644

Lines of this file are not shown. View the raw message.

include/configs/nokia_rx51.h +2 -2
index cc4784232f9b..9732039ef126 100644

Lines of this file are not shown. View the raw message.

include/configs/novena.h +1 -1
index 9dc05d80ec2c..8d39d75a42bc 100644

Lines of this file are not shown. View the raw message.

include/configs/npi_imx6ull.h +1 -1
index ea407c9f6f1a..080c659b6ecb 100644

Lines of this file are not shown. View the raw message.

include/configs/nsim.h +2 -2
index d469ef83c240..b930a538640d 100644

Lines of this file are not shown. View the raw message.

include/configs/o4-imx6ull-nano.h +1 -1
index 00f7d871271d..5ac951a370a4 100644

Lines of this file are not shown. View the raw message.

include/configs/octeon_common.h +1 -1
index 0fa7490e7de6..b475354bbc6d 100644

Lines of this file are not shown. View the raw message.

include/configs/octeontx2_common.h +1 -1
index ab1eb787e70f..03d1a8e7b5fc 100644

Lines of this file are not shown. View the raw message.

include/configs/octeontx_common.h +1 -1
index 38f99ab21674..58275ccffa01 100644

Lines of this file are not shown. View the raw message.

include/configs/odroid.h +2 -2
index babd3ca9631c..ce8ea583fa10 100644

Lines of this file are not shown. View the raw message.

include/configs/odroid_xu3.h +1 -1
index 15646297423e..d2d7fca54450 100644

Lines of this file are not shown. View the raw message.

include/configs/omapl138_lcdk.h +1 -1
index 2b47d4ca3768..5b0d87a33679 100644

Lines of this file are not shown. View the raw message.

include/configs/openpiton-riscv64.h +1 -1
index 3ff8187b5df7..5b097e9fef29 100644

Lines of this file are not shown. View the raw message.

include/configs/opos6uldev.h +1 -1
index b3cdd2f1ebe3..53889d699b26 100644

Lines of this file are not shown. View the raw message.

include/configs/origen.h +2 -2
index 36aaa7c14fb3..6633d541a31b 100644

Lines of this file are not shown. View the raw message.

include/configs/owl-common.h +1 -1
index b0233b96b06d..8d0311cfb3b4 100644

Lines of this file are not shown. View the raw message.

include/configs/p1_p2_rdb_pc.h +4 -4
index 6e8ac1b98df5..14d702e1efeb 100644

Lines of this file are not shown. View the raw message.

include/configs/pcl063.h +1 -1
index 6267dc729ab6..85cedde09884 100644

Lines of this file are not shown. View the raw message.

include/configs/pcl063_ull.h +1 -1
index e13b5df0fabd..f7e36f22ce87 100644

Lines of this file are not shown. View the raw message.

include/configs/pcm052.h +1 -1
index a04a03a7e181..586cddf41848 100644

Lines of this file are not shown. View the raw message.

include/configs/pcm058.h +1 -1
index 14cbfde28bfe..cf705dcb1972 100644

Lines of this file are not shown. View the raw message.

include/configs/peach-pi.h +1 -1
index 7a8d3c63d445..bfc0011fbf96 100644

Lines of this file are not shown. View the raw message.

include/configs/peach-pit.h +1 -1
index 2c749ac2143d..09c6b4f8dd51 100644

Lines of this file are not shown. View the raw message.

include/configs/phycore_imx8mm.h +1 -1
index c98393b7c757..ac68c933a06e 100644

Lines of this file are not shown. View the raw message.

include/configs/phycore_imx8mp.h +1 -1
index 49cd9d4b3c69..aedaf806e5e7 100644

Lines of this file are not shown. View the raw message.

include/configs/pic32mzdask.h +1 -1
index 4ea16d6115ab..d9abbbc28b37 100644

Lines of this file are not shown. View the raw message.

include/configs/pico-imx6.h +1 -1
index f95beeb214a9..fc2cab960c67 100644

Lines of this file are not shown. View the raw message.

include/configs/pico-imx6ul.h +1 -1
index 85772ba6e838..22b4976d722f 100644

Lines of this file are not shown. View the raw message.

include/configs/pico-imx7d.h +1 -1
index b3a38d8a940a..f5b9eed2bcd9 100644

Lines of this file are not shown. View the raw message.

include/configs/pico-imx8mq.h +1 -1
index 17af19d49dc1..91baff963862 100644

Lines of this file are not shown. View the raw message.

include/configs/pm9261.h +13 -13
index adb2f43ea4d1..3fbddd903a3f 100644

Lines of this file are not shown. View the raw message.

include/configs/pm9263.h +13 -13
index 4352a242de33..c1f6334d6a1a 100644

Lines of this file are not shown. View the raw message.

include/configs/pm9g45.h +2 -2
index a7deaa321371..4a0a16818ed0 100644

Lines of this file are not shown. View the raw message.

include/configs/poleg.h +1 -1
index 05253d59efdc..365fdd30c08c 100644

Lines of this file are not shown. View the raw message.

include/configs/pomelo.h +1 -1
index 2e206542f8db..1c11685f49e4 100644

Lines of this file are not shown. View the raw message.

include/configs/presidio_asic.h +1 -1
index f9decb2a4c2c..bee1ef649488 100644

Lines of this file are not shown. View the raw message.

include/configs/px30_common.h +1 -1
index 8b151ef18836..99376155b491 100644

Lines of this file are not shown. View the raw message.

include/configs/qemu-arm.h +1 -1
index 535762ecb240..a67af73fd56f 100644

Lines of this file are not shown. View the raw message.

include/configs/qemu-ppce500.h +1 -1
index 9fc51fdfd763..e7c810957d6d 100644

Lines of this file are not shown. View the raw message.

include/configs/qemu-riscv.h +1 -1
index d81e5d6c8620..72f35cc05420 100644

Lines of this file are not shown. View the raw message.

include/configs/r2dplus.h +2 -2
index 406ee6282c5f..f6ee7201eba1 100644

Lines of this file are not shown. View the raw message.

include/configs/rcar-gen2-common.h +2 -2
index 3a38e0656de1..61b9447ea5f5 100644

Lines of this file are not shown. View the raw message.

include/configs/rcar-gen3-common.h +2 -2
index 7432cffb5a56..585307259780 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3036_common.h +1 -1
index 6616396777a0..b4c19727478e 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3066_common.h +1 -1
index 9297184bded8..99c86edeaa40 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3128_common.h +1 -1
index 12d4bc65d7e4..fac27a7d27c6 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3188_common.h +1 -1
index 6fe1b2d9a2e0..334fb3affa5e 100644

Lines of this file are not shown. View the raw message.

include/configs/rk322x_common.h +1 -1
index 4fb86b69a8e9..6889ba591b3d 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3288_common.h +1 -1
index 81f16edbad64..4aa7e0449dbc 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3308_common.h +1 -1
index 263d1bd180c5..4b510b139910 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3328_common.h +1 -1
index 1e214e4ebe15..132b7d0fe9bc 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3368_common.h +1 -1
index 37e0c1d936c3..92cdc1a51fbd 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3399_common.h +1 -1
index 2f9aee58197b..78f624d31ca2 100644

Lines of this file are not shown. View the raw message.

include/configs/rk3568_common.h +1 -1
index 15e815234020..d43dc2580e46 100644

Lines of this file are not shown. View the raw message.

include/configs/rpi.h +2 -2
index cd8fe8b518b5..2c24944d9c3d 100644

Lines of this file are not shown. View the raw message.

include/configs/rv1108_common.h +1 -1
index 83c3167f38dc..76836add3027 100644

Lines of this file are not shown. View the raw message.

include/configs/s5p4418_nanopi2.h +2 -2
index ae94f0ecc56a..e071d4da5e86 100644

Lines of this file are not shown. View the raw message.

include/configs/s5p_goni.h +2 -2
index de4510aa4348..ed891ab22a98 100644

Lines of this file are not shown. View the raw message.

include/configs/s5pc210_universal.h +2 -2
index 668b52600e85..614d04fda072 100644

Lines of this file are not shown. View the raw message.

include/configs/sam9x60_curiosity.h +2 -2
index afb1e3d0f105..75302bf5c05d 100644

Lines of this file are not shown. View the raw message.

include/configs/sam9x60ek.h +2 -2
index 7c5bfdb2e6d3..22813d4c5448 100644

Lines of this file are not shown. View the raw message.

include/configs/sama5d27_wlsom1_ek.h +2 -2
index de6c92ed7d43..f826eab9ff2a 100644

Lines of this file are not shown. View the raw message.

include/configs/sama5d2_icp.h +2 -2
index ebdb39273ef5..01ed1a3c8e7d 100644

Lines of this file are not shown. View the raw message.

include/configs/sama5d2_ptc_ek.h +2 -2
index 09cc4dddb2ad..2e3c1ea40063 100644

Lines of this file are not shown. View the raw message.

include/configs/sama5d3_xplained.h +2 -2
index 1c9af9b6759a..4b13a101170f 100644

Lines of this file are not shown. View the raw message.

include/configs/sama5d3xek.h +2 -2
index afb9b9a2fbf6..3f58928565ff 100644

Lines of this file are not shown. View the raw message.

include/configs/sama5d4_xplained.h +2 -2
index 0daadec5536b..084cb4def667 100644

Lines of this file are not shown. View the raw message.

include/configs/sama5d4ek.h +2 -2
index d59899f0baa0..cbc1c0f46517 100644

Lines of this file are not shown. View the raw message.

include/configs/sama7g5ek.h +2 -2
index 3f905bf2d77d..68fa31fe76fd 100644

Lines of this file are not shown. View the raw message.

include/configs/sandbox.h +2 -2
index 5168e2fa3531..a3b2a7926fd8 100644

Lines of this file are not shown. View the raw message.

include/configs/siemens-am33x-common.h +1 -1
index c9dd7509cb2a..31552f4619d7 100644

Lines of this file are not shown. View the raw message.

include/configs/sifive-unleashed.h +1 -1
index 2e5592cf94d5..5ad2124bddab 100644

Lines of this file are not shown. View the raw message.

include/configs/sifive-unmatched.h +1 -1
index 85fab927195f..f4b1a16019ec 100644

Lines of this file are not shown. View the raw message.

include/configs/sipeed-maix.h +2 -2
index 7159fc35d52b..974531ea0d82 100644

Lines of this file are not shown. View the raw message.

include/configs/smartweb.h +2 -2
index 7c8f1676be26..d2bc73a400e5 100644

Lines of this file are not shown. View the raw message.

include/configs/smdk5420.h +1 -1
index 12c2e1f6159a..0392530c0adf 100644

Lines of this file are not shown. View the raw message.

include/configs/smdkc100.h +2 -2
index ba562b237803..64963eebe5ce 100644

Lines of this file are not shown. View the raw message.

include/configs/smdkv310.h +5 -5
index 0b1f0c5f54ca..af0c8200fc23 100644

Lines of this file are not shown. View the raw message.

include/configs/smegw01.h +1 -1
index faa13c65216f..44b9109d442f 100644

Lines of this file are not shown. View the raw message.

include/configs/snapper9g45.h +2 -2
index 7c35c912e597..9b1cb372ece7 100644

Lines of this file are not shown. View the raw message.

include/configs/sniper.h +1 -1
index 6054fa42c1a2..95516800793a 100644

Lines of this file are not shown. View the raw message.

include/configs/socfpga_common.h +1 -1
index 70a24ed267ef..2656c9776730 100644

Lines of this file are not shown. View the raw message.

include/configs/socfpga_soc64_common.h +1 -1
index 2b2d78b8c8e0..9403e2f4306d 100644

Lines of this file are not shown. View the raw message.

include/configs/socrates.h +2 -2
index a60ac6d1a3c5..c628860eac74 100644

Lines of this file are not shown. View the raw message.

include/configs/somlabs_visionsom_6ull.h +1 -1
index dcb88a3a730a..008aa5001072 100644

Lines of this file are not shown. View the raw message.

include/configs/stih410-b2260.h +1 -1
index 1e966a23227c..806323e375df 100644

Lines of this file are not shown. View the raw message.

include/configs/stm32mp13_common.h +1 -1
index 07a5bfc8a86e..d71114931427 100644

Lines of this file are not shown. View the raw message.

include/configs/stm32mp15_common.h +1 -1
index b809f9322ad2..f78ce41ed854 100644

Lines of this file are not shown. View the raw message.

include/configs/stmark2.h +7 -7
index ba49075ce068..234327e017bc 100644

Lines of this file are not shown. View the raw message.

include/configs/stv0991.h +1 -1
index 567aa1ffe433..b2dcb6058b10 100644

Lines of this file are not shown. View the raw message.

include/configs/sunxi-common.h +4 -4
index cd2a74fb52d7..e1a66f53ff56 100644

Lines of this file are not shown. View the raw message.

include/configs/synquacer.h +1 -1
index 63d897d090af..daa9bbec88a7 100644

Lines of this file are not shown. View the raw message.

include/configs/taurus.h +2 -2
index dd1fe0af7cd2..1aba986e1e6a 100644

Lines of this file are not shown. View the raw message.

include/configs/tb100.h +2 -2
index 92ee920346bb..cd1309b3b889 100644

Lines of this file are not shown. View the raw message.

include/configs/tbs2910.h +1 -1
index 7f197851d0a7..2d8bde1cee86 100644

Lines of this file are not shown. View the raw message.

include/configs/tegra-common.h +1 -1
index 92df457e8189..7e764b0000b0 100644

Lines of this file are not shown. View the raw message.

include/configs/theadorable.h +1 -1
index 655fcb0011b0..76b496303f3e 100644

Lines of this file are not shown. View the raw message.

include/configs/thunderx_88xx.h +2 -2
index cf2efdbe230b..1f60b9b49790 100644

Lines of this file are not shown. View the raw message.

include/configs/ti814x_evm.h +1 -1
index fc78077014b5..e5b23d2a54ca 100644

Lines of this file are not shown. View the raw message.

include/configs/ti816x_evm.h +1 -1
index 1bd2a1874b86..4a7c3d5b4495 100644

Lines of this file are not shown. View the raw message.

include/configs/ti_armv7_common.h +1 -1
index b289b9e26a00..d54c208ef66f 100644

Lines of this file are not shown. View the raw message.

include/configs/total_compute.h +1 -1
index ab6cd0633215..a609aa3a2aa9 100644

Lines of this file are not shown. View the raw message.

include/configs/tplink_wdr4300.h +1 -1
index 22d783c325b2..137898199177 100644

Lines of this file are not shown. View the raw message.

include/configs/tqma6.h +1 -1
index a65ebfb4deab..f8e3a2d017a3 100644

Lines of this file are not shown. View the raw message.

include/configs/trats.h +2 -2
index ca3186877839..23dcf20c1f4e 100644

Lines of this file are not shown. View the raw message.

include/configs/trats2.h +2 -2
index f324ea7ebeb5..9c6433ccfd87 100644

Lines of this file are not shown. View the raw message.

include/configs/turris_mox.h +1 -1
index f549f9f7ad06..4ca8eafc9143 100644

Lines of this file are not shown. View the raw message.

include/configs/udoo.h +1 -1
index 268c737e7eb7..c1e80b44c854 100644

Lines of this file are not shown. View the raw message.

include/configs/udoo_neo.h +1 -1
index 147224806fcc..f73092661a1d 100644

Lines of this file are not shown. View the raw message.

include/configs/usb_a9263.h +2 -2
index 2cdc3fbf737f..d2fd23e1d91d 100644

Lines of this file are not shown. View the raw message.

include/configs/usbarmory.h +1 -1
index c381934f31a9..e944e78603e7 100644

Lines of this file are not shown. View the raw message.

include/configs/vcoreiii.h +4 -4
index 338d8af8fb36..d9e5dfaceaf8 100644

Lines of this file are not shown. View the raw message.

include/configs/verdin-imx8mm.h +1 -1
index f513dade6aa6..b209d97e5ecb 100644

Lines of this file are not shown. View the raw message.

include/configs/verdin-imx8mp.h +1 -1
index fea4329d23cc..1b9f2ca26f69 100644

Lines of this file are not shown. View the raw message.

include/configs/vexpress_aemv8.h +1 -1
index 0c11b6b3331e..9a46d50c6f39 100644

Lines of this file are not shown. View the raw message.

include/configs/vexpress_common.h +1 -1
index 5d773060d826..ef136c75a83c 100644

Lines of this file are not shown. View the raw message.

include/configs/vf610twr.h +1 -1
index 215149af2e0b..7b526f725af6 100644

Lines of this file are not shown. View the raw message.

include/configs/vinco.h +2 -2
index a15729676184..df0e269b5d20 100644

Lines of this file are not shown. View the raw message.

include/configs/vining_2000.h +1 -1
index a0846b3f7c96..7555d97c8148 100644

Lines of this file are not shown. View the raw message.

include/configs/vocore2.h +1 -1
index 2107bec6587a..38b940d35ea8 100644

Lines of this file are not shown. View the raw message.

include/configs/wandboard.h +1 -1
index b4c757fd9217..3acef2213273 100644

Lines of this file are not shown. View the raw message.

include/configs/warp7.h +1 -1
index a4b12dc55ed0..cba215c379fd 100644

Lines of this file are not shown. View the raw message.

include/configs/work_92105.h +2 -2
index 054eb89d49ca..32555c9b6af1 100644

Lines of this file are not shown. View the raw message.

include/configs/xea.h +1 -1
index 19ccf633c404..87f628d4ab8e 100644

Lines of this file are not shown. View the raw message.

include/configs/xenguest_arm64.h +1 -1
index 364dae0cd934..612436aeb48f 100644

Lines of this file are not shown. View the raw message.

include/configs/xilinx_zynqmp_mini_nand.h +2 -2
index d2c0e91b32e0..1b6e26ee3966 100644

Lines of this file are not shown. View the raw message.

include/configs/xpress.h +1 -1
index 7d0402feead5..613ed9595532 100644

Lines of this file are not shown. View the raw message.

include/configs/xtfpga.h +5 -5
index b93451cbe07a..8739bb24841e 100644

Lines of this file are not shown. View the raw message.

include/init.h +2 -2
index d40d11f33d22..699dc2482c08 100644

Lines of this file are not shown. View the raw message.

include/system-constants.h +1 -1
index 83b41b384f39..07c3505e8f58 100644

Lines of this file are not shown. View the raw message.

post/drivers/memory.c +1 -1
index d249942af068..8deac75ebb05 100644

Lines of this file are not shown. View the raw message.

test/dm/remoteproc.c +3 -3
index 1cc07bc80832..b5e9f9ddc98c 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.25.1

Part of the diff is not shown here. View the raw message.

Reviewed-by on v1 13/17
#29 lore raw

Re: [PATCH 13/17] global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*

Quoted 7 lines · Tom Rini

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_SDRAM namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace.

Quoted 11 lines
---
 README                                        |  2 +-
 arch/arc/lib/cache.c                          |  4 +-
 arch/arc/lib/cpu.c                            |  2 +-
 arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c     |  2 +-
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c       |  6 +--
 arch/arm/dts/rockchip-optee.dtsi              |  4 +-
 arch/arm/include/asm/emif.h                   |  2 +-
 arch/arm/include/asm/iproc-common/configs.h   |  2 +-
 arch/arm/mach-aspeed/ast2500/board_common.c   |  2 +-
 arch/arm/mach-aspeed/ast2600/board_common.c   |  2 +-
author
#30 lore raw

PATCH 14/17 Convert CONFIG_SYS_TIMER_COUNTS_DOWN to Kconfig

In reply to Tom Rini

This converts the following to Kconfig:
CONFIG_SYS_TIMER_COUNTS_DOWN

---
 arch/arm/mach-kirkwood/include/mach/config.h | 1 -
 arch/sh/include/asm/config.h                 | 1 -
 configs/alt_defconfig                        | 1 +
 configs/bitmain_antminer_s9_defconfig        | 1 +
 configs/blanche_defconfig                    | 1 +
 configs/gose_defconfig                       | 1 +
 configs/koelsch_defconfig                    | 1 +
 configs/lager_defconfig                      | 1 +
 configs/porter_defconfig                     | 1 +
 configs/r2dplus_defconfig                    | 1 +
 configs/silk_defconfig                       | 1 +
 configs/socfpga_arria5_defconfig             | 1 +
 configs/socfpga_cyclone5_defconfig           | 1 +
 configs/socfpga_dbm_soc1_defconfig           | 1 +
 configs/socfpga_de0_nano_soc_defconfig       | 1 +
 configs/socfpga_de10_nano_defconfig          | 1 +
 configs/socfpga_de10_standard_defconfig      | 1 +
 configs/socfpga_de1_soc_defconfig            | 1 +
 configs/socfpga_is1_defconfig                | 1 +
 configs/socfpga_mcvevk_defconfig             | 1 +
 configs/socfpga_secu1_defconfig              | 1 +
 configs/socfpga_sockit_defconfig             | 1 +
 configs/socfpga_socrates_defconfig           | 1 +
 configs/socfpga_sr1500_defconfig             | 1 +
 configs/socfpga_vining_fpga_defconfig        | 1 +
 configs/stout_defconfig                      | 1 +
 configs/syzygy_hub_defconfig                 | 1 +
 configs/topic_miami_defconfig                | 1 +
 configs/topic_miamilite_defconfig            | 1 +
 configs/topic_miamiplus_defconfig            | 1 +
 configs/vexpress_ca9x4_defconfig             | 1 +
 configs/xilinx_zynq_virt_defconfig           | 1 +
 configs/zynq_cse_nand_defconfig              | 1 +
 configs/zynq_cse_nor_defconfig               | 1 +
 configs/zynq_cse_qspi_defconfig              | 1 +
 include/configs/rcar-gen2-common.h           | 1 -
 include/configs/socfpga_common.h             | 1 -
 include/configs/vexpress_common.h            | 1 -
 include/configs/zynq-common.h                | 1 -
 lib/Kconfig                                  | 3 +++
 40 files changed, 36 insertions(+), 6 deletions(-)
arch/arm/mach-kirkwood/include/mach/config.h +0 -1
index ae1f6fee531e..5186f6e4f9ad 100644
@@ -52,7 +52,6 @@
 
 /* Use common timer */
 #ifndef CONFIG_TIMER
-#define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER	(MVEBU_TIMER_BASE + 0x14)
 #define CONFIG_SYS_TIMER_RATE		CONFIG_SYS_TCLK
 #endif
arch/sh/include/asm/config.h +0 -1
index 09a15da4859d..99d8797a549f 100644
@@ -9,7 +9,6 @@
 #include <asm/processor.h>
 
 /* Timer */
-#define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER	(TMU_BASE + 0xc)	/* TCNT0 */
 #define CONFIG_SYS_TIMER_RATE		(get_board_sys_clk() / 4)
 
configs/alt_defconfig +1 -0
index e4d6fc2d2cf3..d28cdf4b366b 100644
@@ -105,3 +105,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/bitmain_antminer_s9_defconfig +1 -0
index cbcbc9b18db9..02257176e3e2 100644
@@ -93,4 +93,5 @@ CONFIG_ZYNQ_SERIAL=y
 # CONFIG_WATCHDOG is not set
 CONFIG_WDT=y
 CONFIG_WDT_CDNS=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 # CONFIG_EFI_LOADER is not set
configs/blanche_defconfig +1 -0
index bed737080742..630a13f9297b 100644
@@ -81,3 +81,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/gose_defconfig +1 -0
index 55222ebe01f7..b918b131d383 100644
@@ -103,3 +103,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/koelsch_defconfig +1 -0
index b4e6baef486c..24eff4648edf 100644
@@ -103,3 +103,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/lager_defconfig +1 -0
index 472d8dafc436..56057e272dfa 100644
@@ -105,3 +105,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/porter_defconfig +1 -0
index 83cc54aef908..ca56008cb50d 100644
@@ -103,3 +103,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/r2dplus_defconfig +1 -0
index cee9a1ff5c55..4217175345da 100644
@@ -57,4 +57,5 @@ CONFIG_SPECIFY_CONSOLE_INDEX=y
 CONFIG_DM_SERIAL=y
 CONFIG_SERIAL_RX_BUFFER=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 CONFIG_USE_PRIVATE_LIBGCC=y
configs/silk_defconfig +1 -0
index 9ff9e23ef987..5005e1677fd6 100644
@@ -105,3 +105,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_arria5_defconfig +1 -0
index 2951574464bd..67c6e74eb846 100644
@@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_cyclone5_defconfig +1 -0
index 9c3c0f66b2ea..ce1a3492992e 100644
@@ -79,3 +79,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_dbm_soc1_defconfig +1 -0
index b3ba9ff21e2e..01c29a25e34f 100644
@@ -82,3 +82,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_de0_nano_soc_defconfig +1 -0
index 5f5706fbdb22..905afb7d0461 100644
@@ -75,3 +75,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_de10_nano_defconfig +1 -0
index 1f835bea9275..f2a53ba24711 100644
@@ -72,3 +72,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_de10_standard_defconfig +1 -0
index 412b0da0dbd1..dbf979ee476f 100644
@@ -72,3 +72,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_de1_soc_defconfig +1 -0
index 68a36892fb3d..613bf4426204 100644
@@ -60,4 +60,5 @@ CONFIG_SPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC2=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 # CONFIG_EFI_LOADER is not set
configs/socfpga_is1_defconfig +1 -0
index 3a21bc77a2e3..32d7b745207e 100644
@@ -69,3 +69,4 @@ CONFIG_DM_RESET=y
 CONFIG_SPI=y
 CONFIG_CADENCE_QSPI=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_mcvevk_defconfig +1 -0
index 8be8b85c0c25..4d16ec32b61f 100644
@@ -73,3 +73,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_secu1_defconfig +1 -0
index debe22f30ac2..7a805df5a342 100644
@@ -112,4 +112,5 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_WATCHDOG_TIMEOUT_MSECS=60000
 CONFIG_DESIGNWARE_WATCHDOG=y
 CONFIG_WDT=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 # CONFIG_GZIP is not set
configs/socfpga_sockit_defconfig +1 -0
index 31cc03a5fd89..b3de6701f931 100644
@@ -79,3 +79,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_socrates_defconfig +1 -0
index 72a70375360c..80a98712f67e 100644
@@ -80,3 +80,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_sr1500_defconfig +1 -0
index 44e9ba6c8844..cbe37d22feb7 100644
@@ -76,3 +76,4 @@ CONFIG_DM_RESET=y
 CONFIG_SPI=y
 CONFIG_CADENCE_QSPI=y
 # CONFIG_SPL_WDT is not set
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/socfpga_vining_fpga_defconfig +1 -0
index 96c0ebbc0cd1..cdad36bbfd8c 100644
@@ -116,3 +116,4 @@ CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_DESIGNWARE_WATCHDOG=y
 CONFIG_WDT=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/stout_defconfig +1 -0
index 231e22a2a0b8..53dce6a16129 100644
@@ -104,3 +104,4 @@ CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_PCI=y
 CONFIG_USB_STORAGE=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/syzygy_hub_defconfig +1 -0
index acce95ec026c..9bc03f2a904d 100644
@@ -80,3 +80,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/topic_miami_defconfig +1 -0
index e3ed0b27327b..96aa62a7ec12 100644
@@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/topic_miamilite_defconfig +1 -0
index cb156562ba48..41ba8a7487d1 100644
@@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/topic_miamiplus_defconfig +1 -0
index 03d1887cdac4..763bd8cccdd3 100644
@@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/vexpress_ca9x4_defconfig +1 -0
index 234686eb7b0c..70ce13ecccf7 100644
@@ -54,3 +54,4 @@ CONFIG_SMC911X=y
 CONFIG_SMC911X_32_BIT=y
 CONFIG_BAUDRATE=38400
 CONFIG_CONS_INDEX=0
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
configs/xilinx_zynq_virt_defconfig +1 -0
index 1db3a2c63524..a4c555dac5c5 100644
@@ -146,6 +146,7 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_FUNCTION_THOR=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 CONFIG_SPL_GZIP=y
 CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
 CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
configs/zynq_cse_nand_defconfig +1 -0
index 7ca74837aecb..74c35f3a4d80 100644
@@ -78,5 +78,6 @@ CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_ZYNQ=y
 CONFIG_SYS_NAND_ONFI_DETECTION=y
 CONFIG_ARM_DCC=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 # CONFIG_GZIP is not set
 # CONFIG_LMB is not set
configs/zynq_cse_nor_defconfig +1 -0
index 28e9c459817c..f1c648a8f9a6 100644
@@ -80,5 +80,6 @@ CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
 CONFIG_SYS_FLASH_CFI=y
 CONFIG_SYS_FLASH_QUIET_TEST=y
 CONFIG_ARM_DCC=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 # CONFIG_GZIP is not set
 # CONFIG_LMB is not set
configs/zynq_cse_qspi_defconfig +1 -0
index 215d5ed5ebff..c623caf56489 100644
@@ -90,5 +90,6 @@ CONFIG_SPI_FLASH_WINBOND=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
 CONFIG_ARM_DCC=y
 CONFIG_ZYNQ_QSPI=y
+CONFIG_SYS_TIMER_COUNTS_DOWN=y
 # CONFIG_GZIP is not set
 # CONFIG_LMB is not set
include/configs/rcar-gen2-common.h +0 -1
index 61b9447ea5f5..606a0a7ecde1 100644
@@ -22,7 +22,6 @@
 
 /* Timer */
 #define CONFIG_TMU_TIMER
-#define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER	(TMU_BASE + 0xc)	/* TCNT0 */
 #define CONFIG_SYS_TIMER_RATE		(get_board_sys_clk() / 8)
 
include/configs/socfpga_common.h +0 -1
index 2656c9776730..7ef7c5da8289 100644
@@ -55,7 +55,6 @@
  */
 #ifndef CONFIG_TIMER
 #define CONFIG_SYS_TIMERBASE		SOCFPGA_OSC1TIMER0_ADDRESS
-#define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER	(CONFIG_SYS_TIMERBASE + 0x4)
 #ifndef CONFIG_SYS_TIMER_RATE
 #define CONFIG_SYS_TIMER_RATE		25000000
include/configs/vexpress_common.h +0 -1
index ef136c75a83c..de571f63ee12 100644
@@ -114,7 +114,6 @@
 
 #define CONFIG_SYS_TIMER_RATE		1000000
 #define CONFIG_SYS_TIMER_COUNTER	(V2M_TIMER01 + 0x4)
-#define CONFIG_SYS_TIMER_COUNTS_DOWN
 
 /* PL011 Serial Configuration */
 #define CONFIG_PL011_CLOCK		24000000
include/configs/zynq-common.h +0 -1
index 6574cf92e26e..2d6522af81b8 100644
@@ -16,7 +16,6 @@
 
 #define ZYNQ_SCUTIMER_BASEADDR		0xF8F00600
 #define CONFIG_SYS_TIMERBASE		ZYNQ_SCUTIMER_BASEADDR
-#define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER	(CONFIG_SYS_TIMERBASE + 0x4)
 
 /* GUIDs for capsule updatable firmware images */
lib/Kconfig +3 -0
index 6abe1d0a863b..c39fc5232147 100644
@@ -15,6 +15,9 @@ config SYS_NUM_ADDR_MAP
 	help
 	  Sets the number of entries in the virtual-physical mapping table.
 
+config SYS_TIMER_COUNTS_DOWN
+	bool "System timer counts down rathe than up"
+
 config PHYSMEM
 	bool "Access to physical memory region (> 4G)"
 	help
Signature · 1 line
2.25.1
Reviewed-by on v1 14/17
#31 lore raw

Re: [PATCH 14/17] Convert CONFIG_SYS_TIMER_COUNTS_DOWN to Kconfig

Quoted 39 lines · Tom Rini

This converts the following to Kconfig:
CONFIG_SYS_TIMER_COUNTS_DOWN

---
 arch/arm/mach-kirkwood/include/mach/config.h | 1 -
 arch/sh/include/asm/config.h                 | 1 -
 configs/alt_defconfig                        | 1 +
 configs/bitmain_antminer_s9_defconfig        | 1 +
 configs/blanche_defconfig                    | 1 +
 configs/gose_defconfig                       | 1 +
 configs/koelsch_defconfig                    | 1 +
 configs/lager_defconfig                      | 1 +
 configs/porter_defconfig                     | 1 +
 configs/r2dplus_defconfig                    | 1 +
 configs/silk_defconfig                       | 1 +
 configs/socfpga_arria5_defconfig             | 1 +
 configs/socfpga_cyclone5_defconfig           | 1 +
 configs/socfpga_dbm_soc1_defconfig           | 1 +
 configs/socfpga_de0_nano_soc_defconfig       | 1 +
 configs/socfpga_de10_nano_defconfig          | 1 +
 configs/socfpga_de10_standard_defconfig      | 1 +
 configs/socfpga_de1_soc_defconfig            | 1 +
 configs/socfpga_is1_defconfig                | 1 +
 configs/socfpga_mcvevk_defconfig             | 1 +
 configs/socfpga_secu1_defconfig              | 1 +
 configs/socfpga_sockit_defconfig             | 1 +
 configs/socfpga_socrates_defconfig           | 1 +
 configs/socfpga_sr1500_defconfig             | 1 +
 configs/socfpga_vining_fpga_defconfig        | 1 +
 configs/stout_defconfig                      | 1 +
 configs/syzygy_hub_defconfig                 | 1 +
 configs/topic_miami_defconfig                | 1 +
 configs/topic_miamilite_defconfig            | 1 +
 configs/topic_miamiplus_defconfig            | 1 +
 configs/vexpress_ca9x4_defconfig             | 1 +
 configs/xilinx_zynq_virt_defconfig           | 1 +
 configs/zynq_cse_nand_defconfig              | 1 +
Quoted 8 lines
 configs/zynq_cse_nor_defconfig               | 1 +
 configs/zynq_cse_qspi_defconfig              | 1 +
 include/configs/rcar-gen2-common.h           | 1 -
 include/configs/socfpga_common.h             | 1 -
 include/configs/vexpress_common.h            | 1 -
 include/configs/zynq-common.h                | 1 -
 lib/Kconfig                                  | 3 +++
 40 files changed, 36 insertions(+), 6 deletions(-)
author
#32 lore raw

PATCH 15/17 Convert CONFIG_SYS_SRIO et al to Kconfig

In reply to Tom Rini

This converts the following to Kconfig:
CONFIG_SRIO1
CONFIG_SRIO2
CONFIG_SRIO_PCIE_BOOT_MASTER
CONFIG_SYS_SRIO

---
 README                                    | 12 ------------
 arch/powerpc/Kconfig                      | 15 +++++++++++++++
 configs/MPC8548CDS_36BIT_defconfig        |  2 ++
 configs/MPC8548CDS_defconfig              |  2 ++
 configs/MPC8548CDS_legacy_defconfig       |  2 ++
 configs/P2041RDB_NAND_defconfig           |  4 ++++
 configs/P2041RDB_SDCARD_defconfig         |  4 ++++
 configs/P2041RDB_SPIFLASH_defconfig       |  4 ++++
 configs/P2041RDB_defconfig                |  4 ++++
 configs/T2080QDS_NAND_defconfig           |  4 ++++
 configs/T2080QDS_SDCARD_defconfig         |  4 ++++
 configs/T2080QDS_SECURE_BOOT_defconfig    |  4 ++++
 configs/T2080QDS_SPIFLASH_defconfig       |  4 ++++
 configs/T2080QDS_SRIO_PCIE_BOOT_defconfig |  4 ++++
 configs/T2080QDS_defconfig                |  4 ++++
 include/configs/MPC8548CDS.h              |  3 ---
 include/configs/P2041RDB.h                |  5 -----
 include/configs/T102xRDB.h                |  2 --
 include/configs/T208xQDS.h                |  6 ------
 include/configs/T208xRDB.h                |  1 -
 20 files changed, 61 insertions(+), 29 deletions(-)
README +0 -12
index b095937121b7..bb35a895b755 100644
@@ -1686,18 +1686,6 @@ Low Level (hardware related) configuration options:
 - CONFIG_SYS_OR_TIMING_SDRAM:
 		SDRAM timing
 
-- CONFIG_SYS_SRIO:
-		Chip has SRIO or not
-
-- CONFIG_SRIO1:
-		Board has SRIO 1 port available
-
-- CONFIG_SRIO2:
-		Board has SRIO 2 port available
-
-- CONFIG_SRIO_PCIE_BOOT_MASTER
-		Board can support master function for Boot from SRIO and PCIE
-
 - CONFIG_SYS_SRIOn_MEM_VIRT:
 		Virtual Address of SRIO port 'n' memory region
 
arch/powerpc/Kconfig +15 -0
index c355a954537d..cf93a7b1dad0 100644
@@ -44,6 +44,21 @@ config SYS_INIT_RAM_LOCK
 	bool "Lock some portion of L1 for initial ram stack"
 	depends on MPC83xx || MPC85xx
 
+config SYS_SRIO
+	bool "Serial RapidIO support"
+
+config SRIO1
+	bool "Board has SRIO 1 port available"
+	depends on SYS_SRIO
+
+config SRIO2
+	bool "Board has SRIO 2 port available"
+	depends on SYS_SRIO
+
+config SRIO_PCIE_BOOT_MASTER
+	bool "Board can support master function for Boot from SRIO and PCIE"
+	depends on SYS_SRIO
+
 source "arch/powerpc/cpu/mpc83xx/Kconfig"
 source "arch/powerpc/cpu/mpc85xx/Kconfig"
 source "arch/powerpc/cpu/mpc8xx/Kconfig"
configs/MPC8548CDS_36BIT_defconfig +2 -0
index e5c45a1bffab..98a2c4f85fc5 100644
@@ -8,6 +8,8 @@ CONFIG_DEFAULT_DEVICE_TREE="mpc8548cds_36b"
 CONFIG_ENV_ADDR=0xFFF60000
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_MPC8548CDS=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
configs/MPC8548CDS_defconfig +2 -0
index 85ec76a59714..b47dbb533cee 100644
@@ -8,6 +8,8 @@ CONFIG_DEFAULT_DEVICE_TREE="mpc8548cds"
 CONFIG_ENV_ADDR=0xFFF60000
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_MPC8548CDS=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
configs/MPC8548CDS_legacy_defconfig +2 -0
index 852ac9a6eeb3..af2c6a25eb9c 100644
@@ -8,6 +8,8 @@ CONFIG_DEFAULT_DEVICE_TREE="mpc8548cds"
 CONFIG_ENV_ADDR=0xFFF60000
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_MPC8548CDS=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
configs/P2041RDB_NAND_defconfig +4 -0
index 2ba566644627..aa80f79fd7f7 100644
@@ -6,6 +6,10 @@ CONFIG_ENV_OFFSET=0xE0000
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_P2041RDB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
configs/P2041RDB_SDCARD_defconfig +4 -0
index 9a2796fc7fce..bd223c18988d 100644
@@ -6,6 +6,10 @@ CONFIG_ENV_OFFSET=0xCF400
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_P2041RDB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
configs/P2041RDB_SPIFLASH_defconfig +4 -0
index 8cb00d5d316b..dbd5845789cc 100644
@@ -7,6 +7,10 @@ CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_P2041RDB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
configs/P2041RDB_defconfig +4 -0
index c0bd16bd61f8..c17318c7cc15 100644
@@ -7,6 +7,10 @@ CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_ENV_ADDR=0xEFF20000
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_P2041RDB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
configs/T2080QDS_NAND_defconfig +4 -0
index beb0259488de..9263174db8a1 100644
@@ -11,6 +11,10 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_T2080QDS=y
 CONFIG_ENABLE_36BIT_PHYS=y
 CONFIG_SYS_BOOK3E_HV=y
configs/T2080QDS_SDCARD_defconfig +4 -0
index 7ee5fb4f476b..3ea1c30a32c0 100644
@@ -12,6 +12,10 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_T2080QDS=y
 CONFIG_ENABLE_36BIT_PHYS=y
 CONFIG_SYS_BOOK3E_HV=y
configs/T2080QDS_SECURE_BOOT_defconfig +4 -0
index c050e310c8fb..05f631f7e777 100644
@@ -4,6 +4,10 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_T2080QDS=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
configs/T2080QDS_SPIFLASH_defconfig +4 -0
index 0ff651ae6880..2bf2d377820c 100644
@@ -14,6 +14,10 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_T2080QDS=y
 CONFIG_ENABLE_36BIT_PHYS=y
 CONFIG_SYS_BOOK3E_HV=y
configs/T2080QDS_SRIO_PCIE_BOOT_defconfig +4 -0
index 98065da77d6d..31ef6035d50e 100644
@@ -5,6 +5,10 @@ CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
 CONFIG_ENV_ADDR=0xFFE20000
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_T2080QDS=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
configs/T2080QDS_defconfig +4 -0
index 88e943d4d0d2..27bf2496e02e 100644
@@ -6,6 +6,10 @@ CONFIG_DEFAULT_DEVICE_TREE="t2080qds"
 CONFIG_ENV_ADDR=0xEFF20000
 CONFIG_MPC85xx=y
 CONFIG_SYS_INIT_RAM_LOCK=y
+CONFIG_SYS_SRIO=y
+CONFIG_SRIO1=y
+CONFIG_SRIO2=y
+CONFIG_SRIO_PCIE_BOOT_MASTER=y
 CONFIG_TARGET_T2080QDS=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
 CONFIG_ENABLE_36BIT_PHYS=y
include/configs/MPC8548CDS.h +0 -3
index 6a51149a9494..eb75f8b37d5f 100644
@@ -13,9 +13,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_SRIO
-#define CONFIG_SRIO1			/* SRIO port 1 */
-
 #define CONFIG_INTERRUPTS		/* enable pci, srio, ddr interrupts */
 
 #ifndef __ASSEMBLY__
include/configs/P2041RDB.h +0 -5
index d7e06d23ec45..be8d09f6dd75 100644
@@ -32,11 +32,6 @@
 
 #define CFG_SYS_NUM_CPC		CONFIG_SYS_NUM_DDR_CTLRS
 
-#define CONFIG_SYS_SRIO
-#define CONFIG_SRIO1			/* SRIO port 1 */
-#define CONFIG_SRIO2			/* SRIO port 2 */
-#define CONFIG_SRIO_PCIE_BOOT_MASTER
-
 #ifndef __ASSEMBLY__
 #include <linux/stringify.h>
 #endif
include/configs/T102xRDB.h +0 -2
index 616387f48769..f9f9318448b2 100644
@@ -49,8 +49,6 @@
 #define CONFIG_RESET_VECTOR_ADDRESS	0xeffffffc
 #endif
 
-/* PCIe Boot - Master */
-#define CONFIG_SRIO_PCIE_BOOT_MASTER
 /*
  * for slave u-boot IMAGE instored in master memory space,
  * PHYS must be aligned based on the SIZE
include/configs/T208xQDS.h +0 -6
index 8f56de40ce8f..acaad1bfc827 100644
@@ -14,11 +14,6 @@
 #include <linux/stringify.h>
 
 #define CONFIG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
-#if defined(CONFIG_ARCH_T2080)
-#define CONFIG_SYS_SRIO		/* Enable Serial RapidIO Support */
-#define CONFIG_SRIO1		/* SRIO port 1 */
-#define CONFIG_SRIO2		/* SRIO port 2 */
-#endif
 
 /* High Level Configuration Options */
 
@@ -52,7 +47,6 @@
 
 #endif /* CONFIG_RAMBOOT_PBL */
 
-#define CONFIG_SRIO_PCIE_BOOT_MASTER
 #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
 /* Set 1M boot space */
 #define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR (CONFIG_TEXT_BASE & 0xfff00000)
include/configs/T208xRDB.h +0 -1
index e9db4a224f90..7315afa39f81 100644
@@ -47,7 +47,6 @@
 
 #endif /* CONFIG_RAMBOOT_PBL */
 
-#define CONFIG_SRIO_PCIE_BOOT_MASTER
 #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
 /* Set 1M boot space */
 #define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR (CONFIG_TEXT_BASE & 0xfff00000)
Signature · 1 line
2.25.1
Reviewed-by on v1 15/17
#33 lore raw

Re: [PATCH 15/17] Convert CONFIG_SYS_SRIO et al to Kconfig

Quoted 22 lines · Tom Rini

This converts the following to Kconfig:
CONFIG_SRIO1
CONFIG_SRIO2
CONFIG_SRIO_PCIE_BOOT_MASTER
CONFIG_SYS_SRIO

---
 README                                    | 12 ------------
 arch/powerpc/Kconfig                      | 15 +++++++++++++++
 configs/MPC8548CDS_36BIT_defconfig        |  2 ++
 configs/MPC8548CDS_defconfig              |  2 ++
 configs/MPC8548CDS_legacy_defconfig       |  2 ++
 configs/P2041RDB_NAND_defconfig           |  4 ++++
 configs/P2041RDB_SDCARD_defconfig         |  4 ++++
 configs/P2041RDB_SPIFLASH_defconfig       |  4 ++++
 configs/P2041RDB_defconfig                |  4 ++++
 configs/T2080QDS_NAND_defconfig           |  4 ++++
 configs/T2080QDS_SDCARD_defconfig         |  4 ++++
 configs/T2080QDS_SECURE_BOOT_defconfig    |  4 ++++
 configs/T2080QDS_SPIFLASH_defconfig       |  4 ++++
Quoted 8 lines
 configs/T2080QDS_SRIO_PCIE_BOOT_defconfig |  4 ++++
 configs/T2080QDS_defconfig                |  4 ++++
 include/configs/MPC8548CDS.h              |  3 ---
 include/configs/P2041RDB.h                |  5 -----
 include/configs/T102xRDB.h                |  2 --
 include/configs/T208xQDS.h                |  6 ------
 include/configs/T208xRDB.h                |  1 -
 20 files changed, 61 insertions(+), 29 deletions(-)
author
#34 lore raw

PATCH 16/17 global: Move remaining CONFIG_*SRIO_* to CFG_*

In reply to Tom Rini

The rest of the unmigrated CONFIG symbols in the SRIO namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace.

---
 arch/powerpc/cpu/mpc8xxx/law.c         | 20 +++----
 arch/powerpc/cpu/mpc8xxx/srio.c        | 72 +++++++++++++-------------
 board/freescale/common/p_corenet/tlb.c |  8 +--
 board/freescale/t208xqds/tlb.c         |  8 +--
 board/freescale/t208xrdb/tlb.c         |  8 +--
 include/configs/MPC8548CDS.h           |  8 +--
 include/configs/P2041RDB.h             | 46 ++++++++--------
 include/configs/T102xRDB.h             | 38 +++++++-------
 include/configs/T208xQDS.h             | 42 +++++++--------
 include/configs/T208xRDB.h             | 42 +++++++--------
 10 files changed, 146 insertions(+), 146 deletions(-)
arch/powerpc/cpu/mpc8xxx/law.c +10 -10
index dd274166c01a..35409dc8824c 100644
@@ -309,42 +309,42 @@ void init_laws(void)
 	 */
 	switch ((bootloc & FSL_CORENET_RCWSR6_BOOT_LOC) >> 23) {
 	case 0x0: /* boot from PCIE1 */
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_PCIE_1);
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_PCIE_1);
 		break;
 	case 0x1: /* boot from PCIE2 */
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_PCIE_2);
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_PCIE_2);
 		break;
 	case 0x2: /* boot from PCIE3 */
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_PCIE_3);
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_PCIE_3);
 		break;
 	case 0x8: /* boot from SRIO1 */
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_RIO_1);
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_RIO_1);
 		break;
 	case 0x9: /* boot from SRIO2 */
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_RIO_2);
-		set_next_law(CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+		set_next_law(CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 				LAW_SIZE_1M,
 				LAW_TRGT_IF_RIO_2);
 		break;
arch/powerpc/cpu/mpc8xxx/srio.c +36 -36

154 lines not on this page · raw message

board/freescale/common/p_corenet/tlb.c +4 -4
index 4cdef89bf0ee..7302b7606628 100644
@@ -69,8 +69,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * SRIO_PCIE_BOOT-SLAVE. When slave boot, the address of the
 	 * space is at 0xfff00000, it covered the 0xfffff000.
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR,
-			CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR,
+			CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 			MAS3_SX|MAS3_SW|MAS3_SR, MAS2_W|MAS2_G,
 			0, 0, BOOKE_PAGESZ_1M, 1),
 #else
@@ -150,8 +150,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * SRIO_PCIE_BOOT-SLAVE. 1M space from 0xffe00000 for
 	 * fetching ucode and ENV from master
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR,
-		CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR,
+		CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 		MAS3_SX|MAS3_SW|MAS3_SR, MAS2_G,
 		0, 17, BOOKE_PAGESZ_1M, 1),
 #endif
board/freescale/t208xqds/tlb.c +4 -4
index 9160674b94fd..f2448e86c0d2 100644
@@ -43,8 +43,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * SRIO_PCIE_BOOT-SLAVE. When slave boot, the address of the
 	 * space is at 0xfff00000, it covered the 0xfffff000.
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR,
-		      CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR,
+		      CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_W|MAS2_G,
 		      0, 0, BOOKE_PAGESZ_1M, 1),
 #else
@@ -136,8 +136,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * SRIO_PCIE_BOOT-SLAVE. 1M space from 0xffe00000 for
 	 * fetching ucode and ENV from master
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR,
-		      CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR,
+		      CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_G,
 		      0, 18, BOOKE_PAGESZ_1M, 1),
 #endif
board/freescale/t208xrdb/tlb.c +4 -4
index 69e58e7e9732..45c27c081205 100644
@@ -43,8 +43,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * SRIO_PCIE_BOOT-SLAVE. When slave boot, the address of the
 	 * space is at 0xfff00000, it covered the 0xfffff000.
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR,
-		      CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR,
+		      CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_W|MAS2_G,
 		      0, 0, BOOKE_PAGESZ_1M, 1),
 #else
@@ -136,8 +136,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
 	 * SRIO_PCIE_BOOT-SLAVE. 1M space from 0xffe00000 for
 	 * fetching ucode and ENV from master
 	 */
-	SET_TLB_ENTRY(1, CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR,
-		      CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
+	SET_TLB_ENTRY(1, CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR,
+		      CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS,
 		      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_G,
 		      0, 18, BOOKE_PAGESZ_1M, 1),
 #endif
include/configs/MPC8548CDS.h +4 -4
index eb75f8b37d5f..25b4fe0c7d4d 100644
@@ -282,13 +282,13 @@
 /*
  * RapidIO MMU
  */
-#define CONFIG_SYS_SRIO1_MEM_VIRT	0xc0000000
+#define CFG_SYS_SRIO1_MEM_VIRT	0xc0000000
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SYS_SRIO1_MEM_PHYS	0xc40000000ull
+#define CFG_SYS_SRIO1_MEM_PHYS	0xc40000000ull
 #else
-#define CONFIG_SYS_SRIO1_MEM_PHYS	0xc0000000
+#define CFG_SYS_SRIO1_MEM_PHYS	0xc0000000
 #endif
-#define CONFIG_SYS_SRIO1_MEM_SIZE	0x20000000	/* 512M */
+#define CFG_SYS_SRIO1_MEM_SIZE	0x20000000	/* 512M */
 
 #if defined(CONFIG_TSEC_ENET)
 
include/configs/P2041RDB.h +23 -23

81 lines not on this page · raw message

include/configs/T102xRDB.h +19 -19
index f9f9318448b2..b567b63980e9 100644
@@ -53,40 +53,40 @@
  * for slave u-boot IMAGE instored in master memory space,
  * PHYS must be aligned based on the SIZE
  */
-#define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS1 0xfff00000ull
-#define CONFIG_SRIO_PCIE_BOOT_IMAGE_SIZE     0x100000 /* 1M */
+#define CFG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS1 0xfff00000ull
+#define CFG_SRIO_PCIE_BOOT_IMAGE_SIZE     0x100000 /* 1M */
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_PHYS 0xfef200000ull
-#define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS2 0x3fff00000ull
+#define CFG_SRIO_PCIE_BOOT_IMAGE_MEM_PHYS 0xfef200000ull
+#define CFG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS2 0x3fff00000ull
 #else
-#define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_PHYS 0xef200000
-#define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS2 0xfff00000
+#define CFG_SRIO_PCIE_BOOT_IMAGE_MEM_PHYS 0xef200000
+#define CFG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS2 0xfff00000
 #endif
 /*
  * for slave UCODE and ENV instored in master memory space,
  * PHYS must be aligned based on the SIZE
  */
 #ifdef CONFIG_PHYS_64BIT
-#define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_PHYS 0xfef100000ull
-#define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_BUS	 0x3ffe00000ull
+#define CFG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_PHYS 0xfef100000ull
+#define CFG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_BUS	 0x3ffe00000ull
 #else
-#define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_PHYS 0xef100000
-#define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_BUS  0xffe00000
+#define CFG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_PHYS 0xef100000
+#define CFG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_BUS  0xffe00000
 #endif
-#define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_SIZE	0x40000 /* 256K */
+#define CFG_SRIO_PCIE_BOOT_UCODE_ENV_SIZE	0x40000 /* 256K */
 /* slave core release by master*/
-#define CONFIG_SRIO_PCIE_BOOT_BRR_OFFSET	0xe00e4
-#define CONFIG_SRIO_PCIE_BOOT_RELEASE_MASK	0x00000001 /* release core 0 */
+#define CFG_SRIO_PCIE_BOOT_BRR_OFFSET	0xe00e4
+#define CFG_SRIO_PCIE_BOOT_RELEASE_MASK	0x00000001 /* release core 0 */
 
 /* PCIe Boot - Slave */
 #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
-#define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR 0xFFE00000
-#define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS \
-		(0x300000000ull | CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR)
+#define CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR 0xFFE00000
+#define CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS \
+		(0x300000000ull | CFG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR)
 /* Set 1M boot space for PCIe boot */
-#define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR (CONFIG_TEXT_BASE & 0xfff00000)
-#define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS	\
-		(0x300000000ull | CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR)
+#define CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR (CONFIG_TEXT_BASE & 0xfff00000)
+#define CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS	\
+		(0x300000000ull | CFG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR)
 #define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
 #endif
 
include/configs/T208xQDS.h +21 -21

69 lines not on this page · raw message

include/configs/T208xRDB.h +21 -21

69 lines not on this page · raw message

Signature · 1 line
2.25.1
Reviewed-by on v1 16/17
#35 lore raw

Re: [PATCH 16/17] global: Move remaining CONFIG_*SRIO_* to CFG_*

Quoted 7 lines · Tom Rini

The rest of the unmigrated CONFIG symbols in the SRIO namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace.

Quoted 13 lines
---
 arch/powerpc/cpu/mpc8xxx/law.c         | 20 +++----
 arch/powerpc/cpu/mpc8xxx/srio.c        | 72 +++++++++++++-------------
 board/freescale/common/p_corenet/tlb.c |  8 +--
 board/freescale/t208xqds/tlb.c         |  8 +--
 board/freescale/t208xrdb/tlb.c         |  8 +--
 include/configs/MPC8548CDS.h           |  8 +--
 include/configs/P2041RDB.h             | 46 ++++++++--------
 include/configs/T102xRDB.h             | 38 +++++++-------
 include/configs/T208xQDS.h             | 42 +++++++--------
 include/configs/T208xRDB.h             | 42 +++++++--------
 10 files changed, 146 insertions(+), 146 deletions(-)