]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: define a cache line size for the generic CPU
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 21 Jul 2023 16:01:18 +0000 (18:01 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 24 Jul 2023 05:22:24 +0000 (13:22 +0800)
The USB 3.0 driver xhci-mem.c requires CONFIG_SYS_CACHELINE_SIZE to be set.

Define the cache line size for QEMU on RISC-V to be 64 bytes.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
arch/riscv/cpu/generic/Kconfig

index 897765c3c683f23dfe6af1c337fb502d89f097e7..2baba22992389d08618401bfee41ea0e1adadbee 100644 (file)
@@ -6,6 +6,7 @@ config GENERIC_RISCV
        bool
        select BINMAN if SPL
        select ARCH_EARLY_INIT_R
+       select SYS_CACHE_SHIFT_6
        imply CPU
        imply CPU_RISCV
        imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)