On Wed, 3 Jun 2026 at 03:55, Richard Genoud (TI)
<[email protected]> wrote:
>
> For J7200, J784s4, J721e, j722s, j721s2 SoCs, the everything is shutdown
> at suspend but the PMIC and the DDR.
> In order for U-Boot SPL to know that it is resuming from suspend and not
> booting, a flag is set in a PMIC register.
> So, at startup, U-Boot will read the PMIC register and deduce if the
> board is resuming from suspend or not.
>
> This state (resuming or not) is consulted at several places (in
> board_init_f() and in k3_ddrss_probe().
> As it takes some time to read a i2c register, it's best to cache the
> information.
> But, as stated by the README, in board_init_f(), the BSS is not
> available, so we cannot use global/static variables, only stack
> variables and global_data.
>
> Thus, we use gd to store the resume state of the board.
>
> Signed-off-by: Richard Genoud (TI) <[email protected]>
> ---
>  arch/arm/include/asm/global_data.h | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to