public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 0/4] sunxi: SPL FIT support for 32-bit sunxi SoCs
@ 2023-10-31  5:17 Samuel Holland
  2023-10-31  5:17 ` [PATCH v3 1/4] sunxi: spl: Disable padding from SPL_PAD_TO Samuel Holland
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Samuel Holland @ 2023-10-31  5:17 UTC (permalink / raw)
  To: Andre Przywara, Jagan Teki
  Cc: u-boot, Icenowy Zheng, Jesse Taube, Samuel Holland

This series makes the necessary changes so 32-bit sunxi SoCs can load
additional device trees or firmware from SPL along with U-Boot proper.
Crust (SCP firmware) has support for A33 and H3, and H3 also needs to
load an eGon blob to support CPU 0 hotplug (a silicon bug workaround).

FIT unlocks more features (signatures, multiple DTBs, etc.), so enable
it by default. A10 (sun4i) only has 24 KiB of SRAM A1, so it needs
SPL_FIT_IMAGE_TINY. For consistency, enable that option everywhere.

After this series is applied, we can increase SPL_MAX_SIZE for H6 and
newer SoCs, both 32-bit (e.g. A50, T113) and 64-bit. I did not do that
yet because there is some discussion to be had about the correct value:
it must be adjusted to guarantee return-to-FEL functionality, and the
exact adjustment depends on the sunxi-fel tool implementation.

Changes in v3:
 - Rebased and collected tags

Changes in v2:
 - Disable padding from SPL_PAD_TO
 - Rely on binman min-size instead of using explicit offsets
 - Use Kconfig for firmware addresses instead of an #ifdef staircase

Samuel Holland (4):
  sunxi: spl: Disable padding from SPL_PAD_TO
  sunxi: binman: Move BL31 and SCP firmware addresses to Kconfig
  sunxi: binman: Support FIT generation for 32-bit SoCs
  sunxi: Enable SPL FIT loading for 32-bit SoCs

 arch/arm/Kconfig               |  1 +
 arch/arm/dts/sunxi-u-boot.dtsi | 39 ++++++++++++++++++----------------
 arch/arm/mach-sunxi/Kconfig    | 17 +++++++++++++++
 common/spl/Kconfig             |  6 ++----
 4 files changed, 41 insertions(+), 22 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2024-01-29 16:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31  5:17 [PATCH v3 0/4] sunxi: SPL FIT support for 32-bit sunxi SoCs Samuel Holland
2023-10-31  5:17 ` [PATCH v3 1/4] sunxi: spl: Disable padding from SPL_PAD_TO Samuel Holland
2023-12-08  0:25   ` Andre Przywara
2023-10-31  5:17 ` [PATCH v3 2/4] sunxi: binman: Move BL31 and SCP firmware addresses to Kconfig Samuel Holland
2023-12-08  0:33   ` Andre Przywara
2023-10-31  5:17 ` [PATCH v3 3/4] sunxi: binman: Support FIT generation for 32-bit SoCs Samuel Holland
2023-11-02 22:46   ` Simon Glass
2023-12-08  1:26   ` Andre Przywara
2024-01-29 16:58   ` Andre Przywara
2023-10-31  5:17 ` [PATCH v3 4/4] sunxi: Enable SPL FIT loading " Samuel Holland
2023-11-02 22:46   ` Simon Glass
2023-12-08  1:39   ` Andre Przywara
2024-01-17  0:19     ` Andre Przywara
2024-01-29 16:19       ` Andre Przywara
2023-11-01 17:11 ` [PATCH v3 0/4] sunxi: SPL FIT support for 32-bit sunxi SoCs Jesse T

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox