fdt: Show a runtime warning based on devicetree source
authorSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 03:59:39 +0000 (20:59 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 23 Dec 2021 16:19:42 +0000 (11:19 -0500)
commit93233b07d08955dafdc8a7d2ef692d8b3facc439
tree438633721f07a5a294ed5f2c583d44a13832c198
parentb7d8e85b4c4eb2c5e6f5596772e4fafb0eb6e095
fdt: Show a runtime warning based on devicetree source

When running, if the devicetree failed to come from the expected source,
show a warning, e.g:

   U-Boot ...

   DRAM:  128 MiB
   Core:  42 devices, 11 uclasses, devicetree: separate
   Warning: Unexpected devicetree source (not from a prior stage)
   Warning: U-Boot may not function properly
   Flash: 64 MiB
   ...

These warnings should only appear if the board config has been changed, or
the prior stage is broken.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/board_r.c