[PATCH] arm64: zynqmp: Add debug messages to bl2_plat_get_bl31_params()
Michal Simek
monstr at monstr.eu
Mon Jun 6 09:37:30 CEST 2022
st 18. 5. 2022 v 13:02 odesílatel Michal Simek <monstr at monstr.eu> napsal:
>
> It is useful to get information about BL type and entry address that's why
> add some debug messages.
>
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
>
> arch/arm/mach-zynqmp/handoff.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/mach-zynqmp/handoff.c b/arch/arm/mach-zynqmp/handoff.c
> index 31346d9b2e21..b9e0c6c536be 100644
> --- a/arch/arm/mach-zynqmp/handoff.c
> +++ b/arch/arm/mach-zynqmp/handoff.c
> @@ -79,7 +79,10 @@ struct bl31_params *bl2_plat_get_bl31_params(uintptr_t bl32_entry,
> atfhandoffparams->magic[2] = 'N';
> atfhandoffparams->magic[3] = 'X';
>
> + debug("Creating handoff:\n");
> +
> if (bl32_entry) {
> + debug(" to BL32 at 0x%x EL-1, Secure\n", (u32)bl32_entry);
> atfhandoffparams->partition[index].entry_point = bl32_entry;
> atfhandoffparams->partition[index].flags = FSBL_FLAGS_EL1 << FSBL_FLAGS_EL_SHIFT |
> FSBL_FLAGS_SECURE << FSBL_FLAGS_TZ_SHIFT;
> @@ -87,6 +90,7 @@ struct bl31_params *bl2_plat_get_bl31_params(uintptr_t bl32_entry,
> }
>
> if (bl33_entry) {
> + debug(" to BL33 at 0x%x EL-2\n", (u32)bl33_entry);
> atfhandoffparams->partition[index].entry_point = bl33_entry;
> atfhandoffparams->partition[index].flags = FSBL_FLAGS_EL2 <<
> FSBL_FLAGS_EL_SHIFT;
> --
> 2.36.0
>
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
More information about the U-Boot
mailing list