All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Convert Lichee Pi 4A to use S-Mode proper U-Boot
@ 2025-05-30  9:48 Yao Zi
  2025-05-30  9:48 ` [PATCH 1/5] riscv: cpu: th1520: Build spl.c for SPL only Yao Zi
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Yao Zi @ 2025-05-30  9:48 UTC (permalink / raw)
  To: Rick Chen, Leo, Tom Rini, Wei Fu, Yixun Lan, Ilias Apalodimas,
	Maksim Kiselev, Jaehoon Chung, Jerome Forissier, Sughosh Ganu
  Cc: u-boot, Han Gao, Han Gao, Yao Zi

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(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-06-26 22:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-30  9:48 [PATCH 0/5] Convert Lichee Pi 4A to use S-Mode proper U-Boot Yao Zi
2025-05-30  9:48 ` [PATCH 1/5] riscv: cpu: th1520: Build spl.c for SPL only Yao Zi
2025-06-02 10:18   ` Leo Liang
2025-05-30  9:48 ` [PATCH 2/5] riscv: cpu: th1520: Support cache enabling/disabling in M mode only Yao Zi
2025-06-02 10:48   ` Leo Liang
2025-05-30  9:48 ` [PATCH 3/5] riscv: dts: th1520: Prepare binman configuration for loading OpenSBI Yao Zi
2025-06-03  3:23   ` Leo Liang
2025-05-30  9:48 ` [PATCH 4/5] board: thead: licheepi4a: Run proper U-Boot in S-Mode Yao Zi
2025-06-03  3:23   ` Leo Liang
2025-05-30  9:48 ` [PATCH 5/5] doc: thead: lpi4a: Update for S-Mode proper U-Boot support Yao Zi
2025-06-03  3:24   ` Leo Liang
2025-06-12 11:42 ` [PATCH 0/5] Convert Lichee Pi 4A to use S-Mode proper U-Boot Tom Plant
2025-06-26 21:56 ` Ricardo B. Marlière

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.