Browse Source

stm32mp1: support of STM32MP15x Rev.Z

Add support for Rev.Z of STM32MP15x cpu.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Patrick Delaunay 4 years ago
parent
commit
cf0818b477
2 changed files with 4 additions and 0 deletions
  1. 3 0
      arch/arm/mach-stm32mp/cpu.c
  2. 1 0
      arch/arm/mach-stm32mp/include/mach/sys_proto.h

+ 3 - 0
arch/arm/mach-stm32mp/cpu.c

@@ -342,6 +342,9 @@ int print_cpuinfo(void)
 	case CPU_REVB:
 		cpu_r = "B";
 		break;
+	case CPU_REVZ:
+		cpu_r = "Z";
+		break;
 	default:
 		cpu_r = "?";
 		break;

+ 1 - 0
arch/arm/mach-stm32mp/include/mach/sys_proto.h

@@ -16,6 +16,7 @@ u32 get_cpu_type(void);
 
 #define CPU_REVA	0x1000
 #define CPU_REVB	0x2000
+#define CPU_REVZ	0x2001
 
 /* return CPU_REV constants */
 u32 get_cpu_rev(void);