riscv: cache: Implement i/dcache [status, enable, disable]
authorRick Chen <rick@andestech.com>
Wed, 7 Nov 2018 01:34:06 +0000 (09:34 +0800)
committerAndes <uboot@andestech.com>
Mon, 26 Nov 2018 05:58:01 +0000 (13:58 +0800)
commit52923c6db7f00e0197ec894c8c1bb8a7681974bb
tree903fe89d39120e2cfaf553f8cdfe0aeb2b5b106c
parentbae2d72507abe8e17bdac30027c8748d22721024
riscv: cache: Implement i/dcache [status, enable, disable]

AndeStar RISC-V(V5) provide mcache_ctl register which
can configure I/D cache as enabled or disabled.

This CSR will be encapsulated by CONFIG_RISCV_NDS.
If you want to configure cache on AndeStar V5
AE350 platform. YOu can enable [*] AndeStar V5 ISA support
by make menuconfig.

This approach also provide the expansion when the
vender specific features are going to join in.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: Greentime Hu <greentime@andestech.com>
arch/riscv/Kconfig
arch/riscv/cpu/ax25/Kconfig [new file with mode: 0644]
arch/riscv/cpu/ax25/Makefile
arch/riscv/cpu/ax25/cache.c [new file with mode: 0644]
arch/riscv/cpu/ax25/cpu.c
arch/riscv/cpu/qemu/cpu.c
arch/riscv/cpu/start.S
arch/riscv/include/asm/cache.h
arch/riscv/lib/cache.c