u-boot/board/st/stm32mp1
Patrick Delaunay 888dc68136 board: stm32mp1: add finished good in board identifier OTP
Update the command stboard to support the updated coding of OTP 59 with
finished good.

The ST product codification have several element
- "Commercial Product Name" (CPN): type of product board (DKX, EVX)
  associated to the board ID "MBxxxx"
- "Finished Good" or "Finish Good" (FG):
  effective content of the product without chip STM32MP1 (LCD, Wifi, …)
- BOM: cost variant for same FG
  (for example, several provider of the same component)

For example
- commercial product = STM32MP157C-EV1
- Finished Good = EVA32MP157A1$AU1

Booth information are written on board and these information is also saved
in OTP59:

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)
bit [7:4]   (dec) => Variant FG : finished good (NEW)
bit [3:0]   (dec) => BOM (01, .... 255)

The updated command is:
  stboard [-y] <Board> <VarCPN> <Revision> <VarFG> <BOM>

And the displayed STMicroelectronics board identification is:
  Board: MB<Board> Var<VarCPN>.<VarFG> Rev.<Revision>-<BOM>

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
2020-03-24 14:14:40 +01:00
..
board.c stm32mp1: ram: add support for LPDDR2/LPDDR3 2019-05-23 11:38:11 +02:00
extlinux.conf stm32mp1: add example files for FIT generation 2019-08-27 11:19:23 +02:00
fit_copro_kernel_dtb.its stm32mp1: add example files for FIT generation 2019-08-27 11:19:23 +02:00
fit_kernel_dtb.its stm32mp1: add example files for FIT generation 2019-08-27 11:19:23 +02:00
Kconfig stm32mp1: split board and SOC support for STM32MP15x family 2020-01-17 13:58:27 +01:00
MAINTAINERS MAINTAINERS: update ARM STM STM32MP and STM32MP1 BOARD 2019-08-27 11:19:23 +02:00
Makefile stm32mp1: move stboard command in board/st/common directory 2020-01-17 13:58:27 +01:00
README doc: add board documentation for stm32mp1 2020-03-02 09:41:32 +01:00
spl.c stpmic1: program pmic to keep only the debug unit on 2019-08-27 09:36:56 +02:00
stm32mp1.c board: stm32mp1: add finished good in board identifier OTP 2020-03-24 14:14:40 +01:00

see doc/board/st/stm32mp1.rst