diff options
author | Matthias Brugger <mbrugger@suse.com> | 2019-11-19 16:01:03 +0100 |
---|---|---|
committer | Matthias Brugger <mbrugger@suse.com> | 2019-11-24 10:46:27 +0100 |
commit | 8e3361c88ae322826c97ecc4b70df26d9fabc9ad (patch) | |
tree | 6a6a7a9c015783a272e85576f5dbf0032a67b7af /arch/arm/mach-bcm283x/init.c | |
parent | 37964494c03f0d23c58c0e43cd694df0733ec1ca (diff) |
ARM: bcm283x: Move BCM283x_BASE to a global variable
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.
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'arch/arm/mach-bcm283x/init.c')
-rw-r--r-- | arch/arm/mach-bcm283x/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c index 97414415a6c..d36017e823b 100644 --- a/arch/arm/mach-bcm283x/init.c +++ b/arch/arm/mach-bcm283x/init.c @@ -8,6 +8,8 @@ #include <common.h> +unsigned long rpi_bcm283x_base; + int arch_cpu_init(void) { icache_enable(); @@ -15,6 +17,12 @@ int arch_cpu_init(void) return 0; } +int mach_cpu_init(void) +{ + rpi_bcm283x_base = CONFIG_BCM283x_BASE; + + return 0; +} #ifdef CONFIG_ARMV7_LPAE void enable_caches(void) { |