]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation
authorJonas Karlman <jonas@kwiboo.se>
Sun, 20 Aug 2023 22:03:18 +0000 (22:03 +0000)
committerSimon Glass <sjg@chromium.org>
Sat, 23 Sep 2023 18:31:25 +0000 (12:31 -0600)
commit9e644284ab812f2db23f6185af77c0e771b0be73
tree5d0da06f16449be8a130301b008676fa59ffd83a
parentb05a184379631d13c4a49e423aa1324dc1ae6158
dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation

Nodes with bootph-pre-sram/ram props are bound in multiple phases:
1. At TPL (bootph-pre-sram) or SPL (bootph-pre-ram) phase
2. At U-Boot proper pre-relocation phase
3. At U-Boot proper normal phase

However the binding and U-Boot Driver Model documentation indicate that
only nodes marked with bootph-all or bootph-some-ram should be bound in
the U-Boot proper pre-relocation phase.

Change ofnode_pre_reloc to report a node with bootph-pre-ram/sram prop
with a pre-reloc status only after U-Boot proper pre-relocation phase.
Also update the ofnode_pre_reloc documentation to closer reflect the
binding and driver model documentation.

This changes behavior of what nodes are bound in the U-Boot proper
pre-relocation phase. Change to bootph-all or add bootph-some-ram prop
to restore prior behavior.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h