diff options
author | Kumar Gala | 2008-08-15 08:24:44 -0500 |
---|---|---|
committer | Wolfgang Denk | 2008-08-26 23:45:47 +0200 |
commit | 40afac22a9c602e55c501c800f1c064324711b56 (patch) | |
tree | 39677489db1cebda66bb3eb6161a72faf4eb5c85 /common/cmd_fdt.c | |
parent | 2a1a2cb6e2b87ee550e6f27b647d23331dfd5e1b (diff) |
fdt: Added resize command
Resize the fdt to size + padding to 4k boundary
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/cmd_fdt.c')
-rw-r--r-- | common/cmd_fdt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 8bc900aa795..0593bad024e 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 <fdt> <newaddr> <length> - Copy the fdt to <addr> and make it active\n" + "fdt resize - Resize fdt to size + padding to 4k addr\n" "fdt print <path> [<prop>] - Recursive print starting at <path>\n" "fdt list <path> [<prop>] - Print one level starting at <path>\n" "fdt set <path> <prop> [<val>] - Set <property> [to <val>]\n" |