]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: andesv5: Set default cache line size to 64-bytes
authorYu Chien Peter Lin <peterlin@andestech.com>
Thu, 11 Apr 2024 09:29:45 +0000 (17:29 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 1 May 2024 14:40:00 +0000 (22:40 +0800)
The instruction and data cache line sizes of Andes core
are 64-byte. Select SYS_CACHE_SHIFT_6 for RISCV_NDS so
the SYS_CACHELINE_SIZE is enabled with a default value.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/andesv5/Kconfig

index f311291aedbb7f6ff6e455f871fb57498eb869ec..e3efb0de8f05f91e044a67df032012b1373506b5 100644 (file)
@@ -1,6 +1,7 @@
 config RISCV_NDS
        bool
        select ARCH_EARLY_INIT_R
+       select SYS_CACHE_SHIFT_6
        imply CPU
        imply CPU_RISCV
        imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)