diff options
author | Hannes Schmelzer <hannes.schmelzer@br-automation.com> | 2016-09-20 18:10:43 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-10-13 13:54:10 -0600 |
commit | ef47683646516002694729986d19713e49b903e3 (patch) | |
tree | bcc15aaf0aba47b52029e4b9595dabfb5e5ed4b1 /board/compulab/cm_fx6 | |
parent | c69f6d04ec66433f2360490a5cd0263c83aab18f (diff) | |
download | u-boot-imx-ef47683646516002694729986d19713e49b903e3.zip u-boot-imx-ef47683646516002694729986d19713e49b903e3.tar.gz u-boot-imx-ef47683646516002694729986d19713e49b903e3.tar.bz2 |
cmd/fdt: add possibilty to have 'extrasize' on fdt resize
Sometimes devicetree nodes and or properties are added out of the u-boot
console, maybe through some script or manual interaction.
The devicetree as loaded or embedded is quite small, so the devicetree
has to be resized to take up those new nodes/properties.
In original the devicetree was only extended by effective
4 * add_mem_rsv.
With this commit we can add an argument to the "fdt resize" command,
which takes the extrasize to be added.
Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/compulab/cm_fx6')
-rw-r--r-- | board/compulab/cm_fx6/cm_fx6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index 28e9a8f..5b88bcc 100644 --- a/board/compulab/cm_fx6/cm_fx6.c +++ b/board/compulab/cm_fx6/cm_fx6.c @@ -602,7 +602,7 @@ int ft_board_setup(void *blob, bd_t *bd) char baseboard_name[16]; int err; - fdt_shrink_to_minimum(blob); /* Make room for new properties */ + fdt_shrink_to_minimum(blob, 0); /* Make room for new properties */ /* MAC addr */ if (eth_getenv_enetaddr("ethaddr", enetaddr)) { |