[PATCH 1/4] arm: mach-k3: Allow for calling get_reset_reason() twice
Anshul Dalal
anshuld at ti.com
Tue May 12 07:53:29 CEST 2026
On Mon, 11 May 2026 22:12:30 +0200, A. Sverdlin <alexander.sverdlin at siemens.com> wrote:
> diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h
> index b2ec450f900..c2b20a1dde6 100644
> --- a/arch/arm/include/asm/global_data.h
> +++ b/arch/arm/include/asm/global_data.h
> @@ -105,6 +105,9 @@ struct arch_global_data {
> #ifdef CONFIG_ARCH_IMX8ULP
> bool m33_handshake_done;
> #endif
> +#ifdef CONFIG_ARCH_K3
> + u32 reset_src; /* Cached reset source register */
> +#endif
Since we're trying to make this an architecture agnostic hook that users can
override, I don't think we should have it conditional on CONFIG_ARCH_K3.
IMO having it in bd_info while making it accessible to user via 'bdinfo' command
could be better instead of only displaying it at U-Boot splash as we do now.
--
Anshul Dalal <anshuld at ti.com>
More information about the U-Boot
mailing list