u-boot-brain/board/st
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
..
common board: stm32mp1: add finished good in board identifier OTP 2020-03-24 14:14:40 +01:00
stih410-b2260 common: Move some cache and MMU functions out of common.h 2019-12-02 18:23:55 -05:00
stm32f429-discovery common: Drop global inclusion of status_led.h 2019-12-02 18:23:06 -05:00
stm32f429-evaluation board: stm32: use bi_dram[0].start instead of hardcoded value 2018-08-13 14:03:57 -04:00
stm32f469-discovery board: stm32: use bi_dram[0].start instead of hardcoded value 2018-08-13 14:03:57 -04:00
stm32f746-disco common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
stm32h743-disco common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
stm32h743-eval common: Move some board functions out of common.h 2019-12-02 18:25:21 -05:00
stm32mp1 board: stm32mp1: add finished good in board identifier OTP 2020-03-24 14:14:40 +01:00
stv0991 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00