diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-16 20:59:35 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-12-23 10:24:40 -0500 |
commit | 275b4832f6bf91ca723430efe93be06e4f07430d (patch) | |
tree | 5e06b1267d68dbcbff15bea3cde1e2458340ee03 /lib | |
parent | ff66e7bb73233a4decfcdb66b7a858399dbccf50 (diff) | |
download | u-boot-275b4832f6bf91ca723430efe93be06e4f07430d.zip u-boot-275b4832f6bf91ca723430efe93be06e4f07430d.tar.gz u-boot-275b4832f6bf91ca723430efe93be06e4f07430d.tar.bz2 |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fdtdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 118c100..280cda6 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -1595,6 +1595,7 @@ int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name, return 0; } +/* TODO(sjg@chromium.org): This function should not be weak */ __weak int fdtdec_board_setup(const void *fdt_blob) { return 0; |