stm32mp: stm32prog: correctly handle OTP when SMC is not supported
As the SMC is only supported in SP-MIN for STM32MP15x, the associated partition should be absent when the TA NVMEM is not available in OPT-TEE in STM32MP13x. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:

committed by
Patrice Chotard

parent
3df19b8bec
commit
93b2d4d0bd
@@ -20,7 +20,12 @@
|
||||
#define DEFAULT_ADDRESS 0xFFFFFFFF
|
||||
|
||||
#define CMD_SIZE 512
|
||||
/* SMC is only supported in SPMIN for STM32MP15x */
|
||||
#ifdef CONFIG_STM32MP15x
|
||||
#define OTP_SIZE_SMC 1024
|
||||
#else
|
||||
#define OTP_SIZE_SMC 0
|
||||
#endif
|
||||
#define OTP_SIZE_TA 776
|
||||
#define PMIC_SIZE 8
|
||||
|
||||
|
Reference in New Issue
Block a user