[PATCH] arm64: zynqmp: Corrected pcap_prog register address

Michal Simek michal.simek at amd.com
Fri Sep 15 13:32:15 CEST 2023



On 9/15/23 11:39, lukas.funke-oss at weidmueller.com wrote:
> From: Lukas Funke <lukas.funke at weidmueller.com>
> 
> Currently the pcap_prog struct variable is pointing to 0x3004 which is
> incorrect according to [1]. The variable should point to 0x3000.
> 
> [1] https://www.xilinx.com/htmldocs/registers/ug1087/ug1087-zynq-ultrascale-registers.html#csu___pcap_prog.html
> 
> Signed-off-by: Lukas Funke <lukas.funke at weidmueller.com>
> ---
> 
>   arch/arm/mach-zynqmp/include/mach/hardware.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-zynqmp/include/mach/hardware.h b/arch/arm/mach-zynqmp/include/mach/hardware.h
> index 634bf169c6..8cb6494e52 100644
> --- a/arch/arm/mach-zynqmp/include/mach/hardware.h
> +++ b/arch/arm/mach-zynqmp/include/mach/hardware.h
> @@ -166,7 +166,7 @@ struct csu_regs {
>   	u32 jtag_dap_cfg;
>   	u32 idcode;
>   	u32 version;
> -	u32 reserved2[3055];
> +	u32 reserved2[3054];
>   	u32 pcap_prog;
>   };
>   

Good catch.
Applied.
M


More information about the U-Boot mailing list