diff options
| author | Marek Vasut <[email protected]> | 2020-04-11 21:18:59 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2020-05-20 13:20:19 +0200 |
| commit | 0e2afc8368b632ffb195d588ec2315ffbbf0a7e9 (patch) | |
| tree | 4b6ba3c1918885df7072308b2436a180d2bd1caf /include | |
| parent | c1bde2378a7673c992783b4c00729a52ba18e830 (diff) | |
fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()
Add weak function which is called right after fdtdec_setup() configured
the U-Boot DT. This permits board-specific adjustments to the U-Boot DT
before U-Boot starts parsing the DT. This could be used e.g. to patch in
various custom nodes or merge in DT fragments from prior-stage firmware.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/fdtdec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h index 166f29c55bb..abd6d426719 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -1155,6 +1155,11 @@ int fdtdec_set_carveout(void *blob, const char *node, const char *prop_name, */ int fdtdec_setup(void); +/** + * Perform board-specific early DT adjustments + */ +int fdtdec_board_setup(const void *fdt_blob); + #if CONFIG_IS_ENABLED(MULTI_DTB_FIT) /** * fdtdec_resetup() - Set up the device tree again |
