diff options
author | Tim Lunn <tim@feathertop.org> | 2023-10-31 13:07:15 +1100 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2023-11-09 11:19:05 +0800 |
commit | c1f66e923e6be79c7e0be3b751aca993b91f591d (patch) | |
tree | 38679334354e1b605585c6648ffbdd14c736e4e8 | |
parent | cab454fd368e92bb3ac841a8af8b95007b65c224 (diff) | |
download | u-boot-c1f66e923e6be79c7e0be3b751aca993b91f591d.zip u-boot-c1f66e923e6be79c7e0be3b751aca993b91f591d.tar.gz u-boot-c1f66e923e6be79c7e0be3b751aca993b91f591d.tar.bz2 |
rockchip: rv1126: Read cpuid from otp and set ethaddr
Provide configuration to read cpuid and generate a persistant
MAC address in ethaddr
Signed-off-by: Tim Lunn <tim@feathertop.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r-- | arch/arm/dts/rv1126-u-boot.dtsi | 12 | ||||
-rw-r--r-- | arch/arm/mach-rockchip/Kconfig | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/dts/rv1126-u-boot.dtsi b/arch/arm/dts/rv1126-u-boot.dtsi index 918c307..4485980 100644 --- a/arch/arm/dts/rv1126-u-boot.dtsi +++ b/arch/arm/dts/rv1126-u-boot.dtsi @@ -15,6 +15,18 @@ compatible = "rockchip,rv1126-dmc"; bootph-all; }; + + otp: otp@ff5c0000 { + compatible = "rockchip,rv1126-otp"; + reg = <0xff5c0000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + status = "okay"; + + cpu_id: id@7 { + reg = <0x07 0x10>; + }; + }; }; &gpio0 { diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index a6c69c3..5e99338 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -359,6 +359,8 @@ config ROCKCHIP_RV1126 select BOARD_LATE_INIT imply ROCKCHIP_COMMON_BOARD imply OF_LIBFDT_OVERLAY + imply ROCKCHIP_OTP + imply MISC_INIT_R imply TPL_DM imply TPL_LIBCOMMON_SUPPORT imply TPL_LIBGENERIC_SUPPORT |