[PATCH 0/7] fdt: Move towards using ofnode for devicetree fixups

Simon Glass sjg at chromium.org
Sun Nov 12 16:27:43 CET 2023


When large quantities of fixups are needed, using the livetree is more
efficient. In any case, the ofnode API is easier to use and read than
the lower-level libfdt functions.

This series tweaks the DT-fixup implementation a little, so that all of
the non-ofnode fixups happen before the ofnode fixups. This should make
it possible to whittle away at the former.

This series is based on Sean's one here:

 https://patchwork.ozlabs.org/project/uboot/list/?series=380576&state=*



Simon Glass (7):
  boot: Drop size parameter from image_setup_libfdt()
  fdt: Check for a valid fdt in oftree_ensure()
  fdt: Improve the comment for fdt_shrink_to_minimum()
  fdt: ppc: Drop extra size for ramdisk
  boot: Move adding initrd earlier in image_setup_libfdt()
  fdt: Drop the confusing casts in lmb_free()
  fdt: Move ft_verify_fdt() before the final fixups

 arch/mips/lib/bootm.c         |  4 ++--
 boot/fdt_support.c            |  1 -
 boot/image-board.c            |  2 +-
 boot/image-fdt.c              | 27 ++++++++++++---------------
 cmd/bootefi.c                 |  2 +-
 drivers/core/ofnode.c         |  5 +++++
 include/fdt_support.h         | 24 ++++++++++++++++++++++--
 include/image.h               |  3 +--
 lib/efi_loader/efi_dt_fixup.c |  2 +-
 9 files changed, 45 insertions(+), 25 deletions(-)

-- 
2.42.0.869.gea05f2083d-goog



More information about the U-Boot mailing list