[PATCH 2/8] arch: arm: mach-k3: common: Return a pointer after setting page table
Nikhil M Jain
n-jain1 at ti.com
Thu May 11 11:59:52 CEST 2023
In spl_dcache_enable after setting up page table, set gd->relocaddr
pointer with 64KB alignment, to get next location to reserve memory.
Signed-off-by: Nikhil M Jain <n-jain1 at ti.com>
---
arch/arm/mach-k3/common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 3c85caee57..a8bde942f2 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -614,6 +614,8 @@ void spl_enable_dcache(void)
gd->arch.tlb_addr = ram_top - gd->arch.tlb_size;
debug("TLB table from %08lx to %08lx\n", gd->arch.tlb_addr,
gd->arch.tlb_addr + gd->arch.tlb_size);
+ gd->relocaddr = gd->arch.tlb_addr;
+ gd->relocaddr &= ~(0x10000 - 1);
dcache_enable();
#endif
--
2.34.1
More information about the U-Boot
mailing list