On 8/28/2026 7:27 PM, Richard Genoud (TI) wrote:
> Add support for resuming from suspend in board_init_f.
> The resume state of the SOC is identified and lpm resume
> sequence is followed accordingly.
>
> First, add the board specific part of the exit retention sequence for
> k3-ddrss following the DDR resume sequence:
> - exit DDR from retention
> - de-assert the DDR_RET pin
> - restore DDR max frequency
> - exit DDR from low power
>
> The self-refresh exit sequence is performed in a loop for each DDR
> controller. (J784S4 has 4 DDR controllers and J742S2 has only 2)
>
> Select the number of ddr controllers on the basis of
> CONFIG_TARGET_J742S2_R5_EVM build flag.
>
> Then:
> - Extract context address from devicetree and send to TIFS.
> - Power on the rproc cluster.
> - Replay the certificates attached to saved images of ATF and OPTEE.
> - Resume sequence for context restore and rproc resume.
> - Image entry to DM firmware.
> (All those steps are done in do_resume())
>
> The context address area is firewalled by TIFS to protect it from
> other hosts.
Please specify at what stage TIFS firewalls context area
>
> Co-developed-by: Gregory CLEMENT (TI) <[email protected]>
> Signed-off-by: Gregory CLEMENT (TI) <[email protected]>
> Signed-off-by: Thomas Richard (TI) <[email protected]>
> Co-developed-by: Prasanth Babu Mantena <[email protected]>
> Signed-off-by: Prasanth Babu Mantena <[email protected]>
> Co-developed-by: Abhash Kumar Jha <[email protected]>
> Signed-off-by: Abhash Kumar Jha <[email protected]>
> Signed-off-by: Richard Genoud (TI) <[email protected]>
> ---
> arch/arm/mach-k3/j784s4/j784s4_init.c | 44 +++++++++++++++++++++++++--
> board/ti/j784s4/evm.c | 3 +-
[..]