Skip to content

Support Andes RISC-V l2cache on AE350 platform

Andes u-boot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 0 repliesNew
  2. v38 patches 0 repliesSuperseded
  3. v27 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Remove definitions of v5l2cache.h to cache-v5l2.c

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dm: cache: Add enable and disable ops for cache uclassdrivers/cache/cache-uclass.c include/cache.h+51 -00 replies
2/8dm: cache: Add enable and disable ops for sandbox and testdrivers/cache/sandbox_cache.c test/dm/cache.c+15 -00 replies
3/8dm: cache: add v5l2 cache controller driverdrivers/cache/Kconfig drivers/cache/Makefile drivers/cache/cache-v5l2.c+196 -01 reply
4/8riscv: ae350: use the v5l2 driver to configure the cacheboard/AndesTech/ax25-ae350/ax25-ae350.c+9 -00 replies
5/8riscv: ax25: add imply v5l2 cache controllerarch/riscv/cpu/ax25/Kconfig+1 -00 replies
6/8riscv: cache: Flush L2 cache before jump to linuxarch/riscv/cpu/ax25/cache.c+17 -00 replies
7/8riscv: dts: move out AE350 L2 node from cpus nodearch/riscv/dts/ae350_32.dts arch/riscv/dts/ae350_64.dts+22 -120 replies
8/8riscv: cache: use CCTL to flush d-cachearch/riscv/cpu/ax25/cache.c+13 -90 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchBin Meng
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/8] Support Andes RISC-V l2cache on AE350 platform

From: Rick Chen <[email protected]>

Add a v5l2 cache controller driver that is usually found on Andes RISC-V ae350 platform. It will parse and configure the cache settings (data & instruction prefetch, data & tag latency) from the device tree blob.

Also implement L2 cache flush and disable before jump to linux. The sequence will be preferred as below:
L1 flush -> L1 disable -> L2 flush -> L2 disable

Changes in v4:
- Remove definitions of v5l2cache.h to cache-v5l2.c

Changes in v3:
- Add the enable/disable in sandbox_cache.c.
- Parse dtb data in v5l2_ofdata_to_platdata() and configure HW in v5l2_probe().
- Move cache_disable() into dcache_disable() of cache.c

Changes in v2:
- Add new patch [1/7] to support dm cache uclass enable and disable ops.
- Use ofdata_to_platdata() to parse and save register base instead of global data.
- Rename compatible string of "cache" as "v5l2cache".
- make v512_init() return void.
- Use dm cache uclass api to disable L2 cache.

Rick Chen (8):
dm: cache: Add enable and disable ops for cache uclass
dm: cache: Add enable and disable ops for sandbox and test
dm: cache: add v5l2 cache controller driver
riscv: ae350: use the v5l2 driver to configure the cache
riscv: ax25: add imply v5l2 cache controller
riscv: cache: Flush L2 cache before jump to linux
riscv: dts: move out AE350 L2 node from cpus node
riscv: cache: use CCTL to flush d-cache

 arch/riscv/cpu/ax25/Kconfig             |   1 +
 arch/riscv/cpu/ax25/cache.c             |  39 +++++--
 arch/riscv/dts/ae350_32.dts             |  17 +--
 arch/riscv/dts/ae350_64.dts             |  17 +--
 board/AndesTech/ax25-ae350/ax25-ae350.c |   9 ++
 drivers/cache/Kconfig                   |   9 ++
 drivers/cache/Makefile                  |   1 +
 drivers/cache/cache-uclass.c            |  20 ++++
 drivers/cache/cache-v5l2.c              | 186 ++++++++++++++++++++++++++++++++
 drivers/cache/sandbox_cache.c           |  13 +++
 include/cache.h                         |  31 ++++++
 test/dm/cache.c                         |   2 +
 12 files changed, 324 insertions(+), 21 deletions(-)
 create mode 100644 drivers/cache/cache-v5l2.c
Signature · 1 line
2.7.4