]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Resize device tree to allow space for board changes and the chosen node
authorAndy Fleming <afleming@freescale.com>
Mon, 16 Jun 2008 18:58:56 +0000 (13:58 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 28 Jun 2008 20:23:13 +0000 (22:23 +0200)
commit41c5eaa7253ed82bbae1eda5667755872c615164
treea72bd502cc9f3fbb901aef95950a060a16949720
parent7570a9941fc565922078679a72d246fe208d696d
Resize device tree to allow space for board changes and the chosen node

Current code requires that a compiled device tree have space added to the end to
leave room for extra nodes added by board code (and the chosen node).  This
requires that device tree creators anticipate how much space U-Boot will add to
the tree, which is absurd.  Ideally, the code would resize and/or relocate the
tree when it needed more space, but this would require a systemic change to the
fdt code, which is non-trivial.  Instead, we resize the tree inside
boot_relocate_fdt, reserving either the remainder of the bootmap (in the case
where the fdt is inside the bootmap), or adding CFG_FDT_PAD bytes to the size.

Signed-off-by: Andy Fleming <afleming@freescale.com>
lib_ppc/bootm.c