]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp: activate the command stboard for stm32mp25 boards
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 15 Jan 2024 14:05:53 +0000 (15:05 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 19 Jan 2024 13:38:59 +0000 (14:38 +0100)
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>
arch/arm/mach-stm32mp/include/mach/stm32.h
board/st/common/Kconfig
board/st/common/cmd_stboard.c

index 45c929aa605dc455bf9e99e894b2aa9330a26227..726c390977e3882a8ed8c79fb4c1eb2edc5dc24c 100644 (file)
@@ -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
 
index c1c254d07354955d0bca5fdc37f201f68dda6647..f40d1a78ca36655963f13db7acc5d08e072f971b 100644 (file)
@@ -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.
index 853ab78bbf167cb5e832a39991d1150953f0179c..cb103e69b369187fa1dfa77ef7fc316b7490e708 100644 (file)
@@ -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++)