From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 29 Apr 2017 21:48:47 -0600 Subject: [U-Boot] [PATCH v2 3/5] rockchip: board: puma_rk3399: add support for serial# and cpuid# via efuses In-Reply-To: <1493392319-52041-4-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1493392319-52041-1-git-send-email-philipp.tomsich@theobroma-systems.com> <1493392319-52041-4-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 28 April 2017 at 09:11, Philipp Tomsich wrote: > 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 > Tested-by: Klaus Goger > --- > > Changes in v2: None > > board/theobroma-systems/puma_rk3399/puma-rk3399.c | 79 +++++++++++++++++++++++ > include/configs/puma_rk3399.h | 4 ++ > 2 files changed, 83 insertions(+) Reviewed-by: Simon Glass Similar comment to the previous patch about finding the right device.