From: Patrick DELAUNAY Date: Wed, 25 Mar 2020 08:17:58 +0000 Subject: [PATCH v3] board: stm32mp1: add finished good in board identifier OTP In-Reply-To: <20200324133605.8786-1-patrick.delaunay@st.com> References: <20200324133605.8786-1-patrick.delaunay@st.com> Message-ID: <2e0e2f498a964dec89eb126917476e98@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, > From: Patrick DELAUNAY > Sent: mardi 24 mars 2020 14:36 > > 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] > > And the displayed STMicroelectronics board identification is: > Board: MB Var. Rev.- > > Signed-off-by: Patrick Delaunay > Reviewed-by: Patrice Chotard > --- > > Changes in v3: > - fix comment after Patrice Chotard review > > Changes in v2: > - update commit message > - add comments in cmd_stboard.c > Applied to u-boot-stm/next, thanks! Regards Patrick