All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/6] Support Andes RISC-V l2cache on AE350 platform
@ 2019-05-28  9:39 Andes
  2019-05-28  9:39 ` [U-Boot] [PATCH 1/6] dm: cache: add v5l2 cache controller driver Andes
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Andes @ 2019-05-28  9:39 UTC (permalink / raw)
  To: u-boot

From: Rick Chen <rick@andestech.com>

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

Rick Chen (6):
  dm: cache: add v5l2 cache controller driver
  riscv: ae350: use the v5l2 driver to configure the cache
  riscv: ae350: 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: ax25: use CCTL to flush d-cache

 arch/riscv/cpu/ax25/cache.c             |  22 ++++---
 arch/riscv/cpu/ax25/cpu.c               |   4 ++
 arch/riscv/dts/ae350_32.dts             |  17 ++++--
 arch/riscv/dts/ae350_64.dts             |  17 ++++--
 arch/riscv/include/asm/global_data.h    |   3 +
 arch/riscv/include/asm/v5l2cache.h      |  61 +++++++++++++++++++
 board/AndesTech/ax25-ae350/Kconfig      |   1 +
 board/AndesTech/ax25-ae350/ax25-ae350.c |  15 +++++
 drivers/cache/Kconfig                   |   9 +++
 drivers/cache/Makefile                  |   1 +
 drivers/cache/cache-v5l2.c              | 102 ++++++++++++++++++++++++++++++++
 11 files changed, 231 insertions(+), 21 deletions(-)
 create mode 100644 arch/riscv/include/asm/v5l2cache.h
 create mode 100644 drivers/cache/cache-v5l2.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2019-06-12  6:32 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-28  9:39 [U-Boot] [PATCH 0/6] Support Andes RISC-V l2cache on AE350 platform Andes
2019-05-28  9:39 ` [U-Boot] [PATCH 1/6] dm: cache: add v5l2 cache controller driver Andes
2019-06-04  2:48   ` Bin Meng
2019-06-05  8:58     ` Rick Chen
2019-06-09 17:56       ` Auer, Lukas
2019-06-10  2:26         ` Rick Chen
2019-06-10  2:32           ` Bin Meng
2019-06-12  6:32             ` Rick Chen
2019-05-28  9:39 ` [U-Boot] [PATCH 2/6] riscv: ae350: use the v5l2 driver to configure the cache Andes
2019-06-04  2:48   ` Bin Meng
2019-06-05  9:02     ` Rick Chen
2019-06-05  9:04     ` Rick Chen
2019-05-28  9:39 ` [U-Boot] [PATCH 3/6] riscv: ae350: add imply v5l2 cache controller Andes
2019-06-04  2:48   ` Bin Meng
2019-06-05  9:25     ` Rick Chen
2019-05-28  9:39 ` [U-Boot] [PATCH 4/6] riscv: cache: Flush L2 cache before jump to linux Andes
2019-06-04  2:48   ` Bin Meng
2019-06-05  9:24     ` Rick Chen
2019-05-28  9:39 ` [U-Boot] [PATCH 5/6] riscv: dts: move out AE350 L2 node from cpus node Andes
2019-06-04  2:48   ` Bin Meng
2019-06-05  9:33     ` Rick Chen
2019-05-28  9:39 ` [U-Boot] [PATCH 6/6] riscv: ax25: use CCTL to flush d-cache Andes
2019-06-04  2:48   ` Bin Meng
2019-06-05  9:38     ` Rick Chen
2019-06-05  9:39       ` Bin Meng
2019-06-09 17:57         ` Auer, Lukas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.