stm32mp: add support of STM32MP15x Rev.Y

Add support of STM32MP15x Rev.Y for the Silicon revision REV_ID = 0x2003.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
Patrick Delaunay 2023-04-27 15:36:33 +02:00 committed by Patrice Chotard
parent 0e136ec7fa
commit 6bdef5b767
2 changed files with 5 additions and 1 deletions

View file

@ -44,6 +44,7 @@ u32 get_cpu_dev(void);
#define CPU_REV1_2 0x1003
#define CPU_REV2 0x2000
#define CPU_REV2_1 0x2001
#define CPU_REV2_2 0x2003
/* return Silicon revision = REV_ID[15:0] of Device Version */
u32 get_cpu_rev(void);

View file

@ -266,7 +266,7 @@ static const char * const soc_type[] = {
};
static const char * const soc_pkg[] = { "??", "AD", "AC", "AB", "AA" };
static const char * const soc_rev[] = { "?", "A", "B", "Z" };
static const char * const soc_rev[] = { "?", "A", "B", "Z", "Y"};
static void get_cpu_string_offsets(unsigned int *type, unsigned int *pkg,
unsigned int *rev)
@ -307,6 +307,9 @@ static void get_cpu_string_offsets(unsigned int *type, unsigned int *pkg,
case CPU_REV2_1:
*rev = 3;
break;
case CPU_REV2_2:
*rev = 4;
break;
default:
*rev = 0;
break;