All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Unify implementation of cleanup_before_linux() for RISC-V ports
@ 2025-01-23  9:11 Yao Zi
  2025-01-23  9:11 ` [RFC PATCH 1/3] riscv: add a generic implementation for cleanup_before_linux() Yao Zi
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Yao Zi @ 2025-01-23  9:11 UTC (permalink / raw)
  To: Rick Chen, Leo, Tom Rini, Conor Dooley, Mayuresh Chitale,
	Heinrich Schuchardt, Simon Glass
  Cc: u-boot, Yao Zi

This series introduces a generic version of cleanup_before_linux(),
because most RISC-V SoCs have similar implementation. Ports for generic
platforms and JH7110 are converted to use it for now: these devices are
available to me and I have verified that Linux boots with these changes.

With a quick look at the codebase, I think this could be done for all
RISC-V ports ultimately. Thanks for your feedback and review.

Yao Zi (3):
  riscv: add a generic implementation for cleanup_before_linux()
  riscv: cpu: generic: fallback to generic cleanup_before_linux()
  riscv: cpu: jh7110: fallback to generic cleanup_before_linux()

 arch/riscv/cpu/cpu.c            | 17 +++++++++++++++++
 arch/riscv/cpu/generic/Makefile |  1 -
 arch/riscv/cpu/generic/cpu.c    | 22 ----------------------
 arch/riscv/cpu/jh7110/Makefile  |  1 -
 arch/riscv/cpu/jh7110/cpu.c     | 23 -----------------------
 5 files changed, 17 insertions(+), 47 deletions(-)
 delete mode 100644 arch/riscv/cpu/generic/cpu.c
 delete mode 100644 arch/riscv/cpu/jh7110/cpu.c

-- 
2.48.0


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

end of thread, other threads:[~2025-02-03  3:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-23  9:11 [RFC PATCH 0/3] Unify implementation of cleanup_before_linux() for RISC-V ports Yao Zi
2025-01-23  9:11 ` [RFC PATCH 1/3] riscv: add a generic implementation for cleanup_before_linux() Yao Zi
2025-02-03  3:51   ` Leo Liang
2025-01-23  9:11 ` [RFC PATCH 2/3] riscv: cpu: generic: fallback to generic cleanup_before_linux() Yao Zi
2025-02-03  3:52   ` Leo Liang
2025-01-23  9:11 ` [RFC PATCH 3/3] riscv: cpu: jh7110: " Yao Zi
2025-02-03  3:53   ` Leo Liang
2025-01-29 11:28 ` [RFC PATCH 0/3] Unify implementation of cleanup_before_linux() for RISC-V ports Yixun Lan

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.