fdt: Add a Kconfig for boards with a prior stage
authorSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 03:59:35 +0000 (20:59 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 23 Dec 2021 15:24:40 +0000 (10:24 -0500)
commit275b4832f6bf91ca723430efe93be06e4f07430d
tree5e06b1267d68dbcbff15bea3cde1e2458340ee03
parentff66e7bb73233a4decfcdb66b7a858399dbccf50
fdt: Add a Kconfig for boards with a prior stage

When U-Boot is started from another firmware program, not just a prior
phase of U-Boot, special behaviour is typically used. In particular, the
device tree may come from that prior stage.

At present this is sort-of indicated by OF_BOARD, although the
correlation is not 1:1, since that option simply means that the board has
a custom mechanism for obtaining the device tree. For example, sandbox
defines OF_BOARD. Also the board_fdt_blob_setup() function can in fact
make use of the devicetree in U-Boot if it wishes, as used by
dragonboard410c until very recently.

Add an explicit Kconfig for this situation. Update the OF_BOARD option to
more-accurately reflect what it is doing, e.g. for sandbox.

Drop the docs in the README as it is out of date.

Signed-off-by: Simon Glass <sjg@chromium.org>
README
dts/Kconfig
lib/fdtdec.c