Skip to contentSkip to conversation

configs: fsl: move bootrom specific defines to Kconfig

PATCH New Rajesh Bhagat 1 participant 1 message Feb 11, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: fsl: move bootrom specific defines to Kconfig

Moves below bootrom specific defines to Kconfig:

CONFIG_SYS_FSL_BOOTROM_BASE
CONFIG_SYS_FSL_BOOTROM_SIZE

---
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig      | 10 ++++++++++
 arch/arm/include/asm/arch-fsl-layerscape/cpu.h |  2 --
 scripts/config_whitelist.txt                   |  2 --
 3 files changed, 10 insertions(+), 4 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +10 -0
index 4d46587214..ae0b7b21e8 100644
@@ -640,3 +640,13 @@ config HAS_FSL_XHCI_USB
 	help
 	  For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
 	  pins, select it when the pins are assigned to USB.
+
+config SYS_FSL_BOOTROM_BASE
+	hex
+	depends on FSL_LSCH2
+	default 0
+
+config SYS_FSL_BOOTROM_SIZE
+	hex
+	depends on FSL_LSCH2
+	default 0x1000000
arch/arm/include/asm/arch-fsl-layerscape/cpu.h +0 -2
index 4335aa0ec2..c51b65ea36 100644
@@ -69,8 +69,6 @@
 #define CONFIG_SYS_FSL_DRAM_SIZE2	0x7F80000000
 #endif
 #elif defined(CONFIG_FSL_LSCH2)
-#define CONFIG_SYS_FSL_BOOTROM_BASE	0x0
-#define CONFIG_SYS_FSL_BOOTROM_SIZE	0x1000000
 #define CONFIG_SYS_FSL_CCSR_BASE	0x1000000
 #define CONFIG_SYS_FSL_CCSR_SIZE	0xf000000
 #define CONFIG_SYS_FSL_DCSR_BASE	0x20000000
scripts/config_whitelist.txt +0 -2
index c6a8312495..6934c7ed2e 100644
@@ -2296,8 +2296,6 @@ CONFIG_SYS_FSL_AIOP1_SIZE
 CONFIG_SYS_FSL_B4860QDS_XFI_ERR
 CONFIG_SYS_FSL_BMAN_ADDR
 CONFIG_SYS_FSL_BMAN_OFFSET
-CONFIG_SYS_FSL_BOOTROM_BASE
-CONFIG_SYS_FSL_BOOTROM_SIZE
 CONFIG_SYS_FSL_CCSR_BASE
 CONFIG_SYS_FSL_CCSR_GUR_BE
 CONFIG_SYS_FSL_CCSR_GUR_LE
Signature · 1 line
2.17.1