aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2021-11-18 10:28:20 +0100
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2021-11-18 10:28:20 +0100
commitc0db39cefc094fffa138e81a7499f2fb030de2fd (patch)
tree4042845c8c4ff46ee353ac636699623f1cf3c296
parent637fd777bcc8287a9e5474571626f677753537fc (diff)
parent5869ebd0e87f1de987e51994103440fa8c77b26f (diff)
downloadarm-trusted-firmware-c0db39cefc094fffa138e81a7499f2fb030de2fd.tar.gz
Merge "fix(plat/arm): fix a VERBOSE trace" into integration
-rw-r--r--plat/arm/common/fconf/arm_fconf_sp.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/plat/arm/common/fconf/arm_fconf_sp.c b/plat/arm/common/fconf/arm_fconf_sp.c
index 552393c9b..95e08730c 100644
--- a/plat/arm/common/fconf/arm_fconf_sp.c
+++ b/plat/arm/common/fconf/arm_fconf_sp.c
@@ -66,6 +66,15 @@ int fconf_populate_arm_sp(uintptr_t config)
}
arm_sp.uuids[index] = uuid_helper;
+
+ /* Read Load address */
+ err = fdt_read_uint32(dtb, sp_node, "load-address", &val32);
+ if (err < 0) {
+ ERROR("FCONF: cannot read SP load address\n");
+ return -1;
+ }
+ arm_sp.load_addr[index] = val32;
+
VERBOSE("FCONF: %s UUID"
" %02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x"
" load_addr=%lx\n",
@@ -82,14 +91,6 @@ int fconf_populate_arm_sp(uintptr_t config)
uuid_helper.uuid_struct.node[4], uuid_helper.uuid_struct.node[5],
arm_sp.load_addr[index]);
- /* Read Load address */
- err = fdt_read_uint32(dtb, sp_node, "load-address", &val32);
- if (err < 0) {
- ERROR("FCONF: cannot read SP load address\n");
- return -1;
- }
- arm_sp.load_addr[index] = val32;
-
/* Read owner field only for dualroot CoT */
#if defined(ARM_COT_dualroot)
/* Owner is an optional field, no need to catch error */