mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
committed by
Kever Yang
parent
628fb0683b
commit
2eedb6d93f
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user