From a3f97f66c36e987a6617f1f39c3b9e64b763212c Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 9 May 2022 17:01:11 +0200 Subject: [PATCH] feat(stm32mp1): manage STM32MP13 rev.Y The new SoC version for STM32MP13 is the revision Y. The register SYSCFG_IDC is updated for this new version with the value 0x1003. The function stm32mp_get_soc_name() should also be updated to manage this new SoC revision. Signed-off-by: Yann Gautier Change-Id: I4f2fa5f1503f17db93d8413c79c2b7a18d279f9b --- plat/st/stm32mp1/stm32mp1_def.h | 1 + plat/st/stm32mp1/stm32mp1_private.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/plat/st/stm32mp1/stm32mp1_def.h b/plat/st/stm32mp1/stm32mp1_def.h index 8ca61239d..542895aec 100644 --- a/plat/st/stm32mp1/stm32mp1_def.h +++ b/plat/st/stm32mp1/stm32mp1_def.h @@ -71,6 +71,7 @@ #define STM32MP1_REV_B U(0x2000) #if STM32MP13 +#define STM32MP1_REV_Y U(0x1003) #define STM32MP1_REV_Z U(0x1001) #endif #if STM32MP15 diff --git a/plat/st/stm32mp1/stm32mp1_private.c b/plat/st/stm32mp1/stm32mp1_private.c index 86b9f237a..c40e045e8 100644 --- a/plat/st/stm32mp1/stm32mp1_private.c +++ b/plat/st/stm32mp1/stm32mp1_private.c @@ -493,6 +493,11 @@ void stm32mp_get_soc_name(char name[STM32_SOC_NAME_SIZE]) case STM32MP1_REV_B: cpu_r = "B"; break; +#if STM32MP13 + case STM32MP1_REV_Y: + cpu_r = "Y"; + break; +#endif case STM32MP1_REV_Z: cpu_r = "Z"; break; -- 2.39.5