diff options
author | Jonas Karlman <jonas@kwiboo.se> | 2023-02-22 22:44:41 +0000 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2023-02-28 18:07:28 +0800 |
commit | 2eedb6d93fcbb5a2038c687faada51bb92aec6ea (patch) | |
tree | 06949568edd28df52b237a4f51bff9d8f7bdeb37 /include/configs | |
parent | 628fb0683b65269a121c1cbc3a0d4f5adb4ecf13 (diff) | |
download | u-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.h | 2 | ||||
-rw-r--r-- | include/configs/rockchip-common.h | 4 |
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 |