[PATCH] arm64: zynqmp: Generate dfu_alt_info based on multiboot register

Michal Simek michal.simek at amd.com
Thu Jan 4 09:52:29 CET 2024



On 12/18/23 14:41, Michal Simek wrote:
> Commit 2c8a09219cdb ("arm64: zynqmp: Add multiboot support for SPL/SPI
> offset calculation") enabled u-boot.itb offset calculation based on
> multiboot register. It is also good to reflect location of u-boot.itb image
> for dfu_alt generation.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
>   board/xilinx/zynqmp/zynqmp.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
> index 59feaaf6f32f..e3700f076bc1 100644
> --- a/board/xilinx/zynqmp/zynqmp.c
> +++ b/board/xilinx/zynqmp/zynqmp.c
> @@ -670,7 +670,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
>   		len += snprintf(buf + len, DFU_ALT_BUF_LEN,
>   			       ";%s raw 0x%x 0x500000",
>   			       CONFIG_SPL_FS_LOAD_PAYLOAD_NAME,
> -			       CONFIG_SYS_SPI_U_BOOT_OFFS);
> +			       multiboot * SZ_32K + CONFIG_SYS_SPI_U_BOOT_OFFS);
>   #endif
>   		break;
>   	default:

Applied.
M


More information about the U-Boot mailing list