[9/9] stm32mp1: support of STM32MP15x Rev.Z
diff mbox series

Message ID 20200128091106.28552-6-patrick.delaunay@st.com
State Accepted
Delegated to: Patrick Delaunay
Headers show
Series
  • stm32mp1 devicetre-tree and board update
Related show

Commit Message

Patrick Delaunay Jan. 28, 2020, 9:11 a.m. UTC
Add support for Rev.Z of STM32MP15x cpu.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 arch/arm/mach-stm32mp/cpu.c                    | 3 +++
 arch/arm/mach-stm32mp/include/mach/sys_proto.h | 1 +
 2 files changed, 4 insertions(+)

Comments

Patrice CHOTARD Feb. 13, 2020, 12:34 p.m. UTC | #1
On 1/28/20 10:11 AM, Patrick Delaunay wrote:
> Add support for Rev.Z of STM32MP15x cpu.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
>  arch/arm/mach-stm32mp/cpu.c                    | 3 +++
>  arch/arm/mach-stm32mp/include/mach/sys_proto.h | 1 +
>  2 files changed, 4 insertions(+)
>
> diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c
> index de7891b5c4..ea0bd94605 100644
> --- a/arch/arm/mach-stm32mp/cpu.c
> +++ b/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;
> diff --git a/arch/arm/mach-stm32mp/include/mach/sys_proto.h b/arch/arm/mach-stm32mp/include/mach/sys_proto.h
> index 47e57922d1..da46c11573 100644
> --- a/arch/arm/mach-stm32mp/include/mach/sys_proto.h
> +++ b/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);

Reviewed-by: Patrice Chotard <patrice.chotard@st.com>

Thanks
Patrick Delaunay Feb. 14, 2020, 10:29 a.m. UTC | #2
Hi,

> From: Patrick DELAUNAY <patrick.delaunay@st.com>
> Sent: mardi 28 janvier 2020 10:11
> 
> Add support for Rev.Z of STM32MP15x cpu.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---

Applied to u-boot-stm32/master, thanks!

Regards
Patrick

Patch
diff mbox series

diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c
index de7891b5c4..ea0bd94605 100644
--- a/arch/arm/mach-stm32mp/cpu.c
+++ b/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;
diff --git a/arch/arm/mach-stm32mp/include/mach/sys_proto.h b/arch/arm/mach-stm32mp/include/mach/sys_proto.h
index 47e57922d1..da46c11573 100644
--- a/arch/arm/mach-stm32mp/include/mach/sys_proto.h
+++ b/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);