Skip to content

Enable all cache ways and Enable SiFive PWM driver

Pragnesh Patel u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2riscv: sifive: fu540: enable all cache ways from U-Boot properarch/riscv/cpu/fu540/Makefile arch/riscv/cpu/fu540/cache.c arch/riscv/dts/fu540-c000-u-boot.dtsi +2 more+81 -11 reply
2/2riscv: sifive: fu540: Enable SiFive PWM driverboard/sifive/fu540/Kconfig+2 -02 replies
2/2riscv: sifive: fu540: Enable SiFive PWM driver+0 -01 reply
2/2riscv: sifive: fu540: Enable SiFive PWM driver+0 -03 replies
2/2riscv: sifive: fu540: Enable SiFive PWM driver+0 -00 replies
2/2riscv: sifive: fu540: Enable SiFive PWM driver+0 -01 reply

Reviews trailers per patch

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

PatchBin Meng
1/2R-b T-b
2/2R-b
2/2R-b
2/2R-b
2/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] Enable all cache ways and Enable SiFive PWM driver

Patch 1: enable all cache ways from U-Boot proper

This patch enables all cache ways from U-Boot proper, earlier this was done by FSBL.
(https://github.com/sifive/freedom-u540-c000-bootloader/blob/master/fsbl/main.c#L428)

L2 cache is of 2 MB (16 cache ways) and 1 cache way is of 128 KB. FSBL is located on the latest way of L2 cache. Therefore, FSBL can only enable the first 15 L2 cache ways to avoid corrupt itself.

U-Boot proper enables all cache ways (16 cache ways) in this patch.

Patch 2: Enable SiFive PWM driver

This patch enables SiFive PWM driver for the SiFive Unleashed board.

This series is rebase on
- [v13] RISC-V SiFive FU540 support SPL

This series depends on:
[1] https://patchwork.ozlabs.org/patch/1275883

All these together is available for testing here
[2] https://github.com/pragnesh26992/u-boot/tree/pwm

Pragnesh Patel (2):
riscv: sifive: fu540: enable all cache ways from U-Boot proper
riscv: sifive: fu540: Enable SiFive PWM driver

 arch/riscv/cpu/fu540/Makefile             |  1 +
 arch/riscv/cpu/fu540/cache.c              | 53 +++++++++++++++++++++++
 arch/riscv/dts/fu540-c000-u-boot.dtsi     |  4 ++
 arch/riscv/include/asm/arch-fu540/cache.h | 14 ++++++
 board/sifive/fu540/Kconfig                |  2 +
 board/sifive/fu540/fu540.c                | 10 ++++-
 6 files changed, 83 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/cpu/fu540/cache.c
 create mode 100644 arch/riscv/include/asm/arch-fu540/cache.h
Signature · 1 line
2.17.1