[PATCH V3 02/10] arch: arm: mach-k3: common: Return a pointer after setting page table

Nikhil M Jain n-jain1 at ti.com
Tue May 9 12:31:38 CEST 2023


In spl_dcache_enable after setting up page table, set gd->relocaddr
pointer with 64KB alignment, to get address to reserve video.

Signed-off-by: Nikhil M Jain <n-jain1 at ti.com>
---
V3 (patch introduced):
- return a pointer after page table setup.

 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 a2adb791f6..a805a5640a 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -576,6 +576,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