[PATCH 03/10] stm32mp: add support of STM32MP13x Rev.Y

Patrick DELAUNAY patrick.delaunay at foss.st.com
Mon Jun 20 17:46:24 CEST 2022


Hi,

On 6/20/22 11:17, Patrick Delaunay wrote:
> Add support of STM32MP13x Rev.Y for the Silicon revision REV_ID = 0x1002.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
>
>   arch/arm/mach-stm32mp/include/mach/sys_proto.h | 1 +
>   arch/arm/mach-stm32mp/stm32mp13x.c             | 3 +++
>   2 files changed, 4 insertions(+)
>
> diff --git a/arch/arm/mach-stm32mp/include/mach/sys_proto.h b/arch/arm/mach-stm32mp/include/mach/sys_proto.h
> index 4b564e86dc5..02debea5469 100644
> --- a/arch/arm/mach-stm32mp/include/mach/sys_proto.h
> +++ b/arch/arm/mach-stm32mp/include/mach/sys_proto.h
> @@ -41,6 +41,7 @@ u32 get_cpu_dev(void);
>   
>   #define CPU_REV1	0x1000
>   #define CPU_REV1_1	0x1001
> +#define CPU_REV1_2	0x1002

Bad value for register decoding, REV_ID[15:0]: Silicon revision

as minor version is a bitfield:

#define CPU_REV1_2	0x1003


I will update this value in V2.


>   #define CPU_REV2	0x2000
>   #define CPU_REV2_1	0x2001
>   
> diff --git a/arch/arm/mach-stm32mp/stm32mp13x.c b/arch/arm/mach-stm32mp/stm32mp13x.c
> index bd3f24c349a..845d973ad1b 100644
> --- a/arch/arm/mach-stm32mp/stm32mp13x.c
> +++ b/arch/arm/mach-stm32mp/stm32mp13x.c
> @@ -126,6 +126,9 @@ void get_soc_name(char name[SOC_NAME_SIZE])
>   	case CPU_REV1_1:
>   		cpu_r = "Z";
>   		break;
> +	case CPU_REV1_2:
> +		cpu_r = "Y";
> +		break;
>   	default:
>   		cpu_r = "?";
>   		break;


Regards


Patrick



More information about the U-Boot mailing list