diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-03-22 16:59:21 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-01 15:03:13 -0400 |
commit | dbf6f7c95240bd5fc7f5bbc2b36e275248279f53 (patch) | |
tree | 4ed0e5473fc8583924af609143cea7039b8810fd /cmd | |
parent | f676b45151c33986501e5f8f9bcc64f4a9511089 (diff) | |
download | u-boot-dbf6f7c95240bd5fc7f5bbc2b36e275248279f53.zip u-boot-dbf6f7c95240bd5fc7f5bbc2b36e275248279f53.tar.gz u-boot-dbf6f7c95240bd5fc7f5bbc2b36e275248279f53.tar.bz2 |
cmd: fdt: Use start/size for chosen instead of start/end
Most U-Boot command deal with start/size instead of start/end. Convert
the "fdt chosen" command to use these semantics as well. The only user
of this subcommand is vexpress, so convert the smhload command to use
this as well. We don't bother renaming the variable in vexpress64's
bootcommand, since it will be rewritten in the next commit.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/fdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -638,7 +638,7 @@ static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) if (argc == 4) { initrd_start = hextoul(argv[2], NULL); - initrd_end = hextoul(argv[3], NULL); + initrd_end = initrd_start + hextoul(argv[3], NULL) - 1; } fdt_chosen(working_fdt); @@ -1083,8 +1083,8 @@ static char fdt_help_text[] = "fdt rsvmem print - Show current mem reserves\n" "fdt rsvmem add <addr> <size> - Add a mem reserve\n" "fdt rsvmem delete <index> - Delete a mem reserves\n" - "fdt chosen [<start> <end>] - Add/update the /chosen branch in the tree\n" - " <start>/<end> - initrd start/end addr\n" + "fdt chosen [<start> <size>] - Add/update the /chosen branch in the tree\n" + " <start>/<size> - initrd start addr/size\n" #if defined(CONFIG_FIT_SIGNATURE) "fdt checksign [<addr>] - check FIT signature\n" " <start> - addr of key blob\n" |