All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Enable all cache ways and Enable SiFive PWM driver
@ 2020-05-29  6:44 Pragnesh Patel
  2020-05-29  6:44 ` [PATCH 1/2] riscv: sifive: fu540: enable all cache ways from U-Boot proper Pragnesh Patel
  2020-05-29  6:44 ` [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver Pragnesh Patel
  0 siblings, 2 replies; 15+ messages in thread
From: Pragnesh Patel @ 2020-05-29  6:44 UTC (permalink / raw)
  To: u-boot

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

-- 
2.17.1

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

end of thread, other threads:[~2020-07-20  8:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  6:44 [PATCH 0/2] Enable all cache ways and Enable SiFive PWM driver Pragnesh Patel
2020-05-29  6:44 ` [PATCH 1/2] riscv: sifive: fu540: enable all cache ways from U-Boot proper Pragnesh Patel
2020-05-29 13:05   ` Bin Meng
2020-05-29  6:44 ` [PATCH 2/2] riscv: sifive: fu540: Enable SiFive PWM driver Pragnesh Patel
2020-06-23  7:49   ` Bin Meng
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA471C0BE@ATCPCS16.andestech.com>
2020-06-24  0:59     ` Rick Chen
2020-06-24  4:32       ` Pragnesh Patel
2020-06-24  5:14         ` Rick Chen
2020-06-24  5:24           ` Pragnesh Patel
2020-06-24  5:29             ` Bin Meng
2020-06-24  6:26               ` Rick Chen
2020-06-24  7:34                 ` Bin Meng
2020-06-24  7:44                   ` Pragnesh Patel
2020-07-20  6:49                     ` Pragnesh Patel
2020-07-20  8:22                       ` Rick Chen

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.