summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-05-05 19:21:39 +0200
committerSimon Glass <sjg@chromium.org>2017-06-07 07:29:18 -0600
commit9415b9a7d85c6c77698a551c47765720c2caef91 (patch)
treef608112d20de98e360fed76ccbb8ab7f77e61301 /include
parent49cd8e85eb70b5af4a27c7e006fbdd46d5796b2c (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/puma_rk3399.h4
1 files changed, 4 insertions, 0 deletions
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