summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonas Karlman <[email protected]>2023-02-22 22:44:41 +0000
committerKever Yang <[email protected]>2023-02-28 18:07:28 +0800
commit2eedb6d93fcbb5a2038c687faada51bb92aec6ea (patch)
tree06949568edd28df52b237a4f51bff9d8f7bdeb37 /include
parent628fb0683b65269a121c1cbc3a0d4f5adb4ecf13 (diff)
rockchip: rk3568: Read cpuid from otp
The cpuid on RK3568 is located at 0xa instead of 0x7 as all other SoCs. Add and use a CFG_CPUID_OFFSET to define this offset. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/rk3568_common.h2
-rw-r--r--include/configs/rockchip-common.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/rk3568_common.h b/include/configs/rk3568_common.h
index ae360105d50..a5e1dde5088 100644
--- a/include/configs/rk3568_common.h
+++ b/include/configs/rk3568_common.h
@@ -6,6 +6,8 @@
#ifndef __CONFIG_RK3568_COMMON_H
#define __CONFIG_RK3568_COMMON_H
+#define CFG_CPUID_OFFSET 0xa
+
#include "rockchip-common.h"
#define CFG_IRAM_BASE 0xfdcc0000
diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index ff8123dabd6..b7c5c663439 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -7,6 +7,10 @@
#define _ROCKCHIP_COMMON_H_
#include <linux/sizes.h>
+#ifndef CFG_CPUID_OFFSET
+#define CFG_CPUID_OFFSET 0x7
+#endif
+
/* ((CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 64) * 512) */
#ifndef CONFIG_SPL_BUILD