[PATCH v1 2/3] arch: arm: lib: cache_v8: agilex5: Add weak function in cache_v8
Tom Rini
trini at konsulko.com
Wed Aug 6 15:54:12 CEST 2025
On Wed, Aug 06, 2025 at 11:22:05AM +0800, Boon Khai Ng wrote:
> Add weak function dcache_disable for undefined symbol error
> when dcache for SPL is not enabled. The dcache_disable function
> is being called from spl_atf.c file
>
> Add weak function dcache_status for undefined symbol error
> when dcache for SPL is not enabled. The dcache_status function
> is being called from common/memsize.c file "get_ram_size"
> function, which in-turn was called from "sdram_size_check"
> function defined in sdram_soc64.c file
>
> Add weak function mmu_status for undefined symbol error
> when dcache for SPL is not enabled. The mmu_status function
> is being called from arch/arm/include/asm/io.h file "__memcpy_fromio"
> and "__memcpy_toio "functions, which in-turn was called from
> "cadence_qspi_apb_write_execute" and "cadence_qspi_apb_read_execute"
> functions defined in cadence_qspi_apb.c file
>
> Signed-off-by: Tanmay Kathpalia <tanmay.kathpalia at altera.com>
> Signed-off-by: Boon Khai Ng <boon.khai.ng at altera.com>
The callers of dcache_disable/etc should be doing:
if (!CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
...
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250806/989339cc/attachment.sig>
More information about the U-Boot
mailing list