fix(zynqmp): fix prepare_dtb() memory description

The commit 8ce2fbffe3 ("fix(zynqmp): fix BLXX memory limits for user
defined values") fixed logic around BL31_LIMIT but didn't update
prepare_dtb() which is also using +1 logic.

Change-Id: Ia6de10d992a552ca9cfa39c14261b0f94cda95ec
Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
This commit is contained in:
Michal Simek 2023-06-02 15:07:05 +02:00 committed by Akshay Belsare
parent 9b5c0fcdba
commit 3efee73d52

View file

@ -212,7 +212,7 @@ static void prepare_dtb(void)
/* Reserve memory used by Trusted Firmware. */
if (fdt_add_reserved_memory(dtb, "tf-a", BL31_BASE,
BL31_LIMIT - BL31_BASE + 1)) {
(size_t) (BL31_LIMIT - BL31_BASE))) {
WARN("Failed to add reserved memory nodes for BL31 to DT.\n");
}