From: Kumar Gala Date: Fri, 15 Aug 2008 13:24:44 +0000 (-0500) Subject: fdt: Added resize command X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=40afac22a9c602e55c501c800f1c064324711b56;p=project%2Fbcm63xx%2Fu-boot.git fdt: Added resize command Resize the fdt to size + padding to 4k boundary Signed-off-by: Kumar Gala --- diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 8bc900aa79..0593bad024 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -451,7 +451,12 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) } fdt_chosen(working_fdt, initrd_start, initrd_end, 1); - } else { + } + /* resize the fdt */ + else if (strncmp(argv[1], "re", 2) == 0) { + fdt_resize(working_fdt); + } + else { /* Unrecognized command */ printf ("Usage:\n%s\n", cmdtp->usage); return 1; @@ -819,6 +824,7 @@ U_BOOT_CMD( "fdt boardsetup - Do board-specific set up\n" #endif "fdt move - Copy the fdt to and make it active\n" + "fdt resize - Resize fdt to size + padding to 4k addr\n" "fdt print [] - Recursive print starting at \n" "fdt list [] - Print one level starting at \n" "fdt set [] - Set [to ]\n"