]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: board: puma_rk3399: add support for serial# and cpuid# via efuses
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 5 May 2017 17:21:39 +0000 (19:21 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 13:29:18 +0000 (07:29 -0600)
commit4ec1bce197fab1636466817b5510221a7de833ba
treef608112d20de98e360fed76ccbb8ab7f77e61301
parent4a182daf0027e4ff9854a0b4fc7b32eb5321d1a1
rockchip: board: puma_rk3399: add support for serial# and cpuid# via efuses

With our efuse driver for the RK3399 ready, we can add the
board-specific code that consumes the cpuid from the efuse block and
postprocesses it into the system serial (using the same CRC32 based
derivation as in Linux).

We expose the cpuid via two distinct environment variables:
   serial# - the serial number, as derived in Linux
   cpuid#  - the raw 16 byte CPU id field from the fuse block

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
board/theobroma-systems/puma_rk3399/puma-rk3399.c
include/configs/puma_rk3399.h