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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
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 f2a54116237098006605ba5e009d6f2134a6ebd0..4f122f63b54607854e9273b50869b2160fef2585 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 cfff6b1959beac4d7b132eadc49368bcdaecefe6..d316b5f3e0d48a81bf99d42cadf123bd2c7c81e8 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