diff options
author | Nikhil M Jain | 2023-07-18 14:27:28 +0530 |
---|---|---|
committer | Tom Rini | 2023-07-21 15:32:12 -0400 |
commit | dd5d1c5dcc4d1868e0b82f26db2ea53c63bd15de (patch) | |
tree | ca777d1d532409b8456bd73c3093df72a1bef9ad /arch | |
parent | 149fb05b8346e6ac37df594ef0427cecff09053c (diff) |
arch: arm: mach-k3: common: Return a pointer after setting page table
In spl_dcache_enable after setting up page table, set gd->relocaddr
pointer to tlb_addr, to get next location to reserve memory. Align
tlb_addr with 64KB address.
Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-k3/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index a38882bef0a..450c7b7e4c0 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -538,8 +538,10 @@ void spl_enable_dcache(void) ram_top = (phys_addr_t) 0x100000000; gd->arch.tlb_addr = ram_top - gd->arch.tlb_size; + gd->arch.tlb_addr &= ~(0x10000 - 1); 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; dcache_enable(); #endif |