From 9415b9a7d85c6c77698a551c47765720c2caef91 Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Fri, 5 May 2017 19:21:39 +0200 Subject: 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 Acked-by: Simon Glass --- include/configs/puma_rk3399.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/configs/puma_rk3399.h b/include/configs/puma_rk3399.h index f7787443195..ece8bba4140 100644 --- a/include/configs/puma_rk3399.h +++ b/include/configs/puma_rk3399.h @@ -22,4 +22,8 @@ #define SDRAM_BANK_SIZE (2UL << 30) +#define CONFIG_MISC_INIT_R +#define CONFIG_SERIAL_TAG +#define CONFIG_ENV_OVERWRITE + #endif -- cgit v1.2.3