Skip to content

Convert Lichee Pi 4A to use S-Mode proper U-Boot

Yao Zi u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5riscv: cpu: th1520: Build spl.c for SPL onlyarch/riscv/cpu/th1520/Makefile+1 -11 reply
2/5riscv: cpu: th1520: Support cache enabling/disabling in M mode onlyarch/riscv/cpu/th1520/cache.c+2 -01 reply
3/5riscv: dts: th1520: Prepare binman configuration for loading OpenSBIarch/riscv/dts/thead-th1520-binman.dtsi+28 -41 reply
4/5board: thead: licheepi4a: Run proper U-Boot in S-Modeconfigs/th1520_lpi4a_defconfig+1 -01 reply
5/5doc: thead: lpi4a: Update for S-Mode proper U-Boot supportdoc/board/thead/lpi4a.rst+36 -891 reply

Reviews trailers per patch

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

PatchLeo Yu-Chi LiangTom PlantRicardo B. Marlière
SeriesT-b T-b
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] Convert Lichee Pi 4A to use S-Mode proper U-Boot

RISC-V software usually expects that HARTs are running under S mode when leaving the firmware, for example, the UEFI specification explicitly states requirements for S mode.

This series separates M-mode-only code for TH1520 port out, and configures binman to pack the OpenSBI firmware to initialize the S-mode environment. Then S-mode proper U-Boot is enabled on our Lichee Pi 4A port.

Note that booting on Lichee Pi 4A is broken between PATCH 3 and 4, affecting bisectability. Considering TH1520 port is still in an early stage and separating the changes make the commit cleaner, I personally consider it's acceptable.

Yao Zi (5):
riscv: cpu: th1520: Build spl.c for SPL only
riscv: cpu: th1520: Support cache enabling/disabling in M mode only
riscv: dts: th1520: Prepare binman configuration for loading OpenSBI
board: thead: licheepi4a: Run proper U-Boot in S-Mode
doc: thead: lpi4a: Update for S-Mode proper U-Boot support

 arch/riscv/cpu/th1520/Makefile          |   2 +-
 arch/riscv/cpu/th1520/cache.c           |   2 +
 arch/riscv/dts/thead-th1520-binman.dtsi |  32 +++++-
 configs/th1520_lpi4a_defconfig          |   1 +
 doc/board/thead/lpi4a.rst               | 125 +++++++-----------------
 5 files changed, 68 insertions(+), 94 deletions(-)
Signature · 1 line
2.49.0