On 8/28/2026 7:27 PM, Richard Genoud (TI) wrote:
> From: "Thomas Richard (TI)" <[email protected]>
>
> Add functions that implements retention exit sequence of DDR.
>
> Typical DDR resume sequence is:
> - exit DDR from retention
> - de-assert the DDR_RET pin
> - restore DDR max frequency
> - exit DDR from low power
>
> We have to separate each action in order to de-assert the DDR_RET pins
> at the right time, because the DDR_RET pins are all tied together
> in hardware.
> Additional interleaving to be taken care and configuring of PMIC differs
> device to device depending on number of PMIC.
>
> Signed-off-by: Thomas Richard (TI) <[email protected]>
> Co-developed-by: Richard Genoud (TI) <[email protected]>
> Signed-off-by: Richard Genoud (TI) <[email protected]>
> ---
> arch/arm/mach-k3/include/mach/k3-ddr.h | 16 ++
> drivers/ram/k3-ddrss/k3-ddrss.c | 253 +++++++++++++++++++++++++
> drivers/ram/k3-ddrss/lpddr4_k3_reg.h | 94 +++++++++
> 3 files changed, 363 insertions(+)
> create mode 100644 drivers/ram/k3-ddrss/lpddr4_k3_reg.h
>
> diff --git a/arch/arm/mach-k3/include/mach/k3-ddr.h
> b/arch/arm/mach-k3/include/mach/k3-ddr.h
> index 6ac7f682fb80..5dd4025bdbb7 100644
> --- a/arch/arm/mach-k3/include/mach/k3-ddr.h
> +++ b/arch/arm/mach-k3/include/mach/k3-ddr.h
> @@ -7,6 +7,7 @@
> #define _K3_DDR_H_
>
> #include <spl.h>
> [..]> +#define lpddr4_k3_clr_phy(_ddrss, _reg, _mask) \
> + _lpddr4_k3_clr(phy, _ddrss, _reg, _mask)
> +
> +#endif /* LPDDR4_K3_REG */
Reviewed-by: Udit Kumar <[email protected]>
Hello Neha,
please review, if you have some additional comments