Support Andes RISC-V l2cache on AE350 platform
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest8 patches 0 repliesNew
- v38 patches 0 repliesSuperseded
- v27 patches 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 6 patches | 0 replies | Superseded |
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | dm: cache: Add enable and disable ops for cache uclassdrivers/ include/ | +51 | 0 replies | |
| 2/8 | dm: cache: Add enable and disable ops for sandbox and testdrivers/ test/ | +15 | 0 replies | |
| 3/8 | dm: cache: add v5l2 cache controller driverdrivers/ drivers/ drivers/ | +196 | 1 reply | |
| 4/8 | riscv: ae350: use the v5l2 driver to configure the cacheboard/ | +9 | 0 replies | |
| 5/8 | riscv: ax25: add imply v5l2 cache controllerarch/ | +1 | 0 replies | |
| 6/8 | riscv: cache: Flush L2 cache before jump to linuxarch/ | +17 | 0 replies | |
| 7/8 | riscv: dts: move out AE350 L2 node from cpus nodearch/ arch/ | +22 | 0 replies | |
| 8/8 | riscv: cache: use CCTL to flush d-cachearch/ | +13 | 0 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Bin Meng |
|---|---|
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | R-b |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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