aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2024-01-15 15:05:53 +0100
committerPatrice Chotard <patrice.chotard@foss.st.com>2024-01-19 14:38:59 +0100
commitebf32b2548b69923d439f58c637fa2b3b10e24c5 (patch)
tree24399a062bb565fe34c83bd8ace910253785561f
parent4d58bb32d1062ee953cf390d679f17224456766d (diff)
downloadu-boot-ebf32b2548b69923d439f58c637fa2b3b10e24c5.zip
u-boot-ebf32b2548b69923d439f58c637fa2b3b10e24c5.tar.gz
u-boot-ebf32b2548b69923d439f58c637fa2b3b10e24c5.tar.bz2
stm32mp: activate the command stboard for stm32mp25 boards
Activate the command stboard for stm32mp25 STMicroelectronics boards, add the default used OTP identifier and the associated board identifier: - stm32mp25xx-ev1 = MB1936 - stm32mp25xx-dk = MB1605 Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
-rw-r--r--arch/arm/mach-stm32mp/include/mach/stm32.h1
-rw-r--r--board/st/common/Kconfig2
-rw-r--r--board/st/common/cmd_stboard.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/stm32.h b/arch/arm/mach-stm32mp/include/mach/stm32.h
index 45c929a..726c390 100644
--- a/arch/arm/mach-stm32mp/include/mach/stm32.h
+++ b/arch/arm/mach-stm32mp/include/mach/stm32.h
@@ -198,6 +198,7 @@ enum forced_boot_mode {
#define BSEC_OTP_SERIAL 5
#define BSEC_OTP_RPN 9
#define BSEC_OTP_PKG 122
+#define BSEC_OTP_BOARD 246
#define BSEC_OTP_MAC 247
#endif
diff --git a/board/st/common/Kconfig b/board/st/common/Kconfig
index c1c254d..f40d1a7 100644
--- a/board/st/common/Kconfig
+++ b/board/st/common/Kconfig
@@ -1,7 +1,7 @@
config CMD_STBOARD
bool "stboard - command for OTP board information"
depends on ARCH_STM32MP
- default y if TARGET_ST_STM32MP15x || TARGET_ST_STM32MP13x
+ default y if TARGET_ST_STM32MP25X || TARGET_ST_STM32MP15x || TARGET_ST_STM32MP13x
help
This compile the stboard command to
read and write the board in the OTP.
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c
index 853ab78..cb103e6 100644
--- a/board/st/common/cmd_stboard.c
+++ b/board/st/common/cmd_stboard.c
@@ -49,7 +49,9 @@ static bool check_stboard(u16 board)
0x1298,
0x1341,
0x1497,
+ 0x1605, /* stm32mp25xx-dk */
0x1635,
+ 0x1936, /* stm32mp25xx-ev1 */
};
for (i = 0; i < ARRAY_SIZE(st_board_id); i++)