ARM: bcm283x: Move BCM283x_BASE to a global variable
authorMatthias Brugger <mbrugger@suse.com>
Tue, 19 Nov 2019 15:01:03 +0000 (16:01 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 06:13:48 +0000 (15:13 +0900)
We move the per SOC define BCM283x_BASE to a global variable.
This is a first step to provide a single binary for several bcm283x
SoCs.

Change-Id: If32915d693b26e9d3ddbbddbcac004140623afd0
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
arch/arm/mach-bcm283x/init.c
include/configs/rpi.h

index f2a5411..4f122f6 100644 (file)
@@ -116,6 +116,8 @@ static void rpi_update_mem_map(void) {}
 
 unsigned long rpi_bcm283x_base = 0x3f000000;
 
+unsigned long rpi_bcm283x_base;
+
 int arch_cpu_init(void)
 {
        icache_enable();
index 89ab23c..b7c1ef7 100644 (file)
@@ -14,6 +14,9 @@
 #endif
 /* Tizen Specific configuration for RPI */
 #include <samsung/tizen_rpi.h>
+#ifndef __ASSEMBLY__
+#include <asm/arch/base.h>
+#endif
 
 #if defined(CONFIG_TARGET_RPI_2) || defined(CONFIG_TARGET_RPI_3_32B)
 #define CONFIG_SKIP_LOWLEVEL_INIT