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)
commit9415b9a7d85c6c77698a551c47765720c2caef91
treef608112d20de98e360fed76ccbb8ab7f77e61301
parent49cd8e85eb70b5af4a27c7e006fbdd46d5796b2c
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