]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: lib: implement enable_caches for sifive cache
authorZong Li <zong.li@sifive.com>
Wed, 1 Sep 2021 07:01:41 +0000 (15:01 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 7 Sep 2021 02:34:29 +0000 (10:34 +0800)
commit213ed175b0a97313982c8341c34e48f0ea59b60e
tree6102386aeb7f61de9ec90cb49b4ff1ef9274e247
parent4d4222d07432faffe3a0fe35c483e116a28eb217
riscv: lib: implement enable_caches for sifive cache

The enable_caches is a generic hook for architecture-implemented, we
define this function to enable composable cache of sifive platforms.

In sifive_cache, it invokes the generic cache_enable interface of cache
uclass to execute the relative implementation in SiFive ccache driver.

Signed-off-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/Kconfig
arch/riscv/lib/Makefile
arch/riscv/lib/sifive_cache.c [new file with mode: 0644]