]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp: add support of STM32MP15x Rev.Y
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 27 Apr 2023 13:36:33 +0000 (15:36 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 16 Jun 2023 09:16:31 +0000 (11:16 +0200)
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>
arch/arm/mach-stm32mp/include/mach/sys_proto.h
arch/arm/mach-stm32mp/stm32mp15x.c

index 0d39b67178e41e5b48133455ceb0c4d9696ff017..83fb32a45fccbe71f62d8fb2536934440d77ff9f 100644 (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);
index 660c907a6ba3340ce2a5531ad1ee20e3320aa361..afc56b02eea451636bce270349502dce45d8591a 100644 (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;