On 1/15/24 15:05, Patrick Delaunay wrote: > Change OTP number to 364 for STM32MP25 as it is done in bsec driver. > > Signed-off-by: Patrick Delaunay <patrick.delau...@foss.st.com> > --- > > (no changes since v1) > > arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h > b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h > index ae4bd8842f53..eda98eb61d76 100644 > --- a/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h > +++ b/arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h > @@ -28,7 +28,15 @@ > #else > #define OTP_SIZE_SMC 0 > #endif > -#define OTP_SIZE_TA 776 > +/* size of the OTP struct in NVMEM PTA */ > +#define _OTP_SIZE_TA(otp) (((otp) * 2 + 2) * 4) > +#if defined(CONFIG_STM32MP13x) || defined(CONFIG_STM32MP15x) > +/* STM32MP1 with BSEC2 */ > +#define OTP_SIZE_TA _OTP_SIZE_TA(96) > +#else > +/* STM32MP2 with BSEC3 */ > +#define OTP_SIZE_TA _OTP_SIZE_TA(368) > +#endif > #define PMIC_SIZE 8 > > enum stm32prog_target { Reviewed-by: Patrice Chotard <patrice.chot...@foss.st.com> Thanks Patrice
- [PATCH v2 03/14] stm32mp: bsec: add driver data Patrick Delaunay
- Re: [PATCH v2 03/14] stm32mp: bsec: add driver data Patrice CHOTARD
- [PATCH v2 04/14] stm32mp: bsec: add support of stm32mp25 Patrick Delaunay
- Re: [PATCH v2 04/14] stm32mp: bsec: add support of s... Patrice CHOTARD
- [PATCH v2 05/14] configs: stm32mp25: add support of fuse ... Patrick Delaunay
- Re: [PATCH v2 05/14] configs: stm32mp25: add support... Patrice CHOTARD
- [PATCH v2 06/14] stm32mp: add soc.c file Patrick Delaunay
- Re: [PATCH v2 06/14] stm32mp: add soc.c file Igor Opaniuk
- Re: [PATCH v2 06/14] stm32mp: add soc.c file Patrice CHOTARD
- [PATCH v2 09/14] stm32mp: stm32prog: add support of stm32... Patrick Delaunay
- Re: [PATCH v2 09/14] stm32mp: stm32prog: add support... Patrice CHOTARD
- [PATCH v2 08/14] smt32mp: add setup_mac_address for stm32... Patrick Delaunay
- Re: [PATCH v2 08/14] smt32mp: add setup_mac_address ... Patrice CHOTARD
- [PATCH v2 07/14] stm32mp: add setup_serial_number for stm... Patrick Delaunay
- Re: [PATCH v2 07/14] stm32mp: add setup_serial_numbe... Igor Opaniuk
- Re: [PATCH v2 07/14] stm32mp: add setup_serial_n... Patrice CHOTARD
- [PATCH v2 11/14] board: st: stm32mp2: add checkboard Patrick Delaunay
- Re: [PATCH v2 11/14] board: st: stm32mp2: add checkb... Patrice CHOTARD
- [PATCH v2 10/14] stm32mp: activate the command stboard fo... Patrick Delaunay
- Re: [PATCH v2 10/14] stm32mp: activate the command s... Patrice CHOTARD
- [PATCH v2 12/14] board: st: stm32mp2: display the board i... Patrick Delaunay