mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
fdt: ppc: Drop extra size for ramdisk
This code dates from around 2008:
56844a22b7
powerpc: Fix bootm to boot up again with a Ramdisk
Since then we have added FDT relocation which provides enough space
for expansion. We have also added all sorts of fixups earlier in
image_setup_libfdt() which require more space, with ramdisk being the
least of them.
Therefore this extra hack for ramdisk seems unnecessary. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
451c1ab6b0
commit
83cd8fb13c
1 changed files with 0 additions and 7 deletions
|
@ -24,9 +24,6 @@
|
|||
#include <dm/ofnode.h>
|
||||
#include <tee/optee.h>
|
||||
|
||||
/* adding a ramdisk needs 0x44 bytes in version 2008.10 */
|
||||
#define FDT_RAMDISK_OVERHEAD 0x80
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static void fdt_error(const char *msg)
|
||||
|
@ -663,10 +660,6 @@ int image_setup_libfdt(struct bootm_headers *images, void *blob,
|
|||
goto err;
|
||||
of_size = ret;
|
||||
|
||||
if (*initrd_start && *initrd_end) {
|
||||
of_size += FDT_RAMDISK_OVERHEAD;
|
||||
fdt_set_totalsize(blob, of_size);
|
||||
}
|
||||
/* Create a new LMB reservation */
|
||||
if (lmb)
|
||||
lmb_reserve(lmb, (ulong)blob, of_size);
|
||||
|
|
Loading…
Add table
Reference in a new issue