summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-03-26 23:13:16 +0100
committerTom Rini <trini@konsulko.com>2024-04-11 09:38:57 -0600
commitc7afe41bf603ab5dd824fb7b10dcd000cbbcafa0 (patch)
tree14a96fc85a510f020bdd037e9cdcc4205415aa21 /boot
parentf5178ddd9d054b67b41c0ca5adb608076b2546f2 (diff)
downloadu-boot-c7afe41bf603ab5dd824fb7b10dcd000cbbcafa0.tar.gz
u-boot-c7afe41bf603ab5dd824fb7b10dcd000cbbcafa0.tar.bz2
u-boot-c7afe41bf603ab5dd824fb7b10dcd000cbbcafa0.zip
boot: fdt: Move usable variable below updated comment
Move the variable below comment which explains what the variable means. Update the comment. No functional change. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'boot')
-rw-r--r--boot/image-fdt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index c37442c913..2b92bdaff1 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -218,12 +218,12 @@ int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size)
if (start + size < low)
continue;
- usable = min(start + size, low + mapsize);
-
/*
* At least part of this DRAM bank is usable, try
- * using it for LMB allocation.
+ * using the DRAM bank up to 'usable' address limit
+ * for LMB allocation.
*/
+ usable = min(start + size, low + mapsize);
addr = lmb_alloc_base(lmb, of_len, 0x1000, usable);
of_start = map_sysmem(addr, of_len);
/* Allocation succeeded, use this block. */