aboutsummaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2023-02-22 22:44:41 +0000
committerKever Yang <kever.yang@rock-chips.com>2023-02-28 18:07:28 +0800
commit2eedb6d93fcbb5a2038c687faada51bb92aec6ea (patch)
tree06949568edd28df52b237a4f51bff9d8f7bdeb37 /include/configs
parent628fb0683b65269a121c1cbc3a0d4f5adb4ecf13 (diff)
downloadu-boot-2eedb6d93fcbb5a2038c687faada51bb92aec6ea.zip
u-boot-2eedb6d93fcbb5a2038c687faada51bb92aec6ea.tar.gz
u-boot-2eedb6d93fcbb5a2038c687faada51bb92aec6ea.tar.bz2
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 <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'include/configs')
-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 ae36010..a5e1dde 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 ff8123d..b7c5c66 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