summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBryan Brattlof <bb@ti.com>2025-04-25 12:02:06 -0500
committerTom Rini <trini@konsulko.com>2025-05-02 15:32:44 -0600
commit78c0f7e3eb0dc96df163cd5ec51de80a28fb31e7 (patch)
tree80cf2bdb2a9315d12027536c2cb6f602bcb7f9f0 /arch
parent510f2502475b9e695ae7e62272c8f90c2fdf0eda (diff)
arm: mach-k3: use CFG_MAX_MEM_SIZE
Rather than hard coding the maximum memory size, lets just define the CFG_MAX_MEM_SIZE so get_effective_memsize() will return the correct value without modification. Signed-off-by: Bryan Brattlof <bb@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-k3/common.c4
-rw-r--r--arch/arm/mach-k3/common.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index fa8cd93d664..fc230f180d0 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -228,10 +228,6 @@ void spl_enable_cache(void)
gd->arch.tlb_size = PGTABLE_SIZE;
gd->ram_top += get_effective_memsize();
- /* keep ram_top in the 32-bit address space */
- if (gd->ram_top >= 0x100000000)
- gd->ram_top = (phys_addr_t)0x100000000;
-
gd->relocaddr = gd->ram_top;
ret = spl_reserve_video_from_ram_top();
diff --git a/arch/arm/mach-k3/common.h b/arch/arm/mach-k3/common.h
index 2ec60c7879a..02c74731fea 100644
--- a/arch/arm/mach-k3/common.h
+++ b/arch/arm/mach-k3/common.h
@@ -10,6 +10,9 @@
#include <asm/hardware.h>
#include <mach/security.h>
+/* keep ram_top in the 32-bit address space */
+#define CFG_MAX_MEM_MAPPED 0x100000000
+
#define K3_FIREWALL_BACKGROUND_BIT (8)
struct fwl_data {