diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2023-01-06 13:20:18 +0100 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@foss.st.com> | 2023-01-12 16:37:13 +0100 |
commit | 4b002d962850d07ee640fbfa8d699202ac9edd15 (patch) | |
tree | 8dae8ff49b0638ac553b72bc612ef71487ea8776 | |
parent | 7de0d10ca7167d0b0ac2d28a98b3a4e725c2d3b8 (diff) | |
download | u-boot-4b002d962850d07ee640fbfa8d699202ac9edd15.zip u-boot-4b002d962850d07ee640fbfa8d699202ac9edd15.tar.gz u-boot-4b002d962850d07ee640fbfa8d699202ac9edd15.tar.bz2 |
board: st: Add support of STM32MP13x boards in stm32board cmd
Add board identifiers for STMicroelectronics STM32MP13x boards:
- DISCO board: MB1635
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
-rw-r--r-- | board/st/common/Kconfig | 2 | ||||
-rw-r--r-- | board/st/common/cmd_stboard.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/board/st/common/Kconfig b/board/st/common/Kconfig index 2f57118..aba3590 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 + default y if 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 213fb5d..853ab78 100644 --- a/board/st/common/cmd_stboard.c +++ b/board/st/common/cmd_stboard.c @@ -2,8 +2,8 @@ /* * Copyright (C) 2019, STMicroelectronics - All Rights Reserved * - * the st command stboard supports the STMicroelectronics board identification - * saved in OTP 59. + * the command stboard supports the STMicroelectronics board identification + * saved in OTP_BOARD. * * The ST product codification have several element * - "Commercial Product Name" (CPN): type of product board (DKX, EVX) @@ -18,7 +18,7 @@ * - Finished Good = EVA32MP157A1$AU1 * * Both information are written on board and these information are also saved - * in OTP59, with: + * in OTP_BOARD (59 for STM32MP15x or 60 for STM32MP13x), with: * bit [31:16] (hex) => Board id, MBxxxx * bit [15:12] (dec) => Variant CPN (1....15) * bit [11:8] (dec) => Revision board (index with A = 1, Z = 26) @@ -49,6 +49,7 @@ static bool check_stboard(u16 board) 0x1298, 0x1341, 0x1497, + 0x1635, }; for (i = 0; i < ARRAY_SIZE(st_board_id); i++) |