[U-Boot] [PATCH v3 0/3] NXP WaARP7 set serial# from OTP fuses for USB iSerial

Bryan O'Donoghue bryan.odonoghue at linaro.org
Mon Mar 26 14:27:31 UTC 2018


V3:
- Add RB-tag from Fabio

V2:
- Fix compilation path for CONFIG_SERIAL_TAG
  Currently this is broken for imx7

- Add description of tester registers to arch/arm/mach-imx/mx7/soc.c

- Utilise existing get_board_serial() instead of my previous patch
  ("warp7: usb: Introduce a get method for serial number")

V1:
Greetings.

These two patches add support for automatic setting of the serial#
environment variable based on OTP fuse settings. Once the serial# field is
set then subsequent USB gadget mode instances of WaARP7 will export the
serial number based on the OTP fuse settings.

This feature gives a handy output like this:

usb 1-1.1.1: new high-speed USB device number 17 using xhci_hcd
usb 1-1.1.1: New USB device found, idVendor=0525, idProduct=a4a5
usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.1.1: Product: USB download gadget
usb 1-1.1.1: Manufacturer: FSL
usb 1-1.1.1: SerialNumber: WaRP7-0xf42400d3000001d4

The 64 bit value post-fixed to the WaARP7 string is based on OTP fuses
which provide a unique serial number for each NXP i.MX7 SoC.

We make use of this feature when discerning a unique identifier for WaARP7
boards in our automated LAVA testing environment, hopefully its useful and
acceptable to others.

Bryan O'Donoghue (3):
  imx: mx7: Fix CONFIG_SERIAL_TAG compilation
  imx: mx7: Add comment to describe OTP TESTER registers
  warp7: Set u-boot serial# based on OTP value

 arch/arm/mach-imx/mx7/soc.c | 22 ++++++++++++++++++++++
 board/warp7/warp7.c         | 14 ++++++++++++++
 include/configs/warp7.h     |  3 +++
 3 files changed, 39 insertions(+)

-- 
2.7.4



More information about the U-Boot mailing list