]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3588: Read cpuid from otp
authorJonas Karlman <jonas@kwiboo.se>
Wed, 22 Feb 2023 22:44:41 +0000 (22:44 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:29 +0000 (18:07 +0800)
Read cpuid from otp and set ethaddr for RK3588.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3588s-u-boot.dtsi
arch/arm/mach-rockchip/Kconfig

index b58aef4c4d386e55499e766afc8023c903ee46aa..1e225d71efc2378b7ffce8f6ba34ab34cad0e504 100644 (file)
                pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>;
                status = "disabled";
        };
+
+       otp: nvmem@fecc0000 {
+               compatible = "rockchip,rk3588-otp";
+               reg = <0x0 0xfecc0000 0x0 0x400>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               status = "okay";
+
+               cpu_id: id@7 {
+                       reg = <0x07 0x10>;
+               };
+       };
 };
 
 &xin24m {
index 88be06811c535d96f0fb506af428c27b4974f8e0..0390431601f9fa74b9de796c5432a40ddb7915b7 100644 (file)
@@ -310,6 +310,8 @@ config ROCKCHIP_RK3588
        select SYSCON
        select BOARD_LATE_INIT
        imply ROCKCHIP_COMMON_BOARD
+       imply ROCKCHIP_OTP
+       imply MISC_INIT_R
        help
          The Rockchip RK3588 is a ARM-based SoC with quad-core Cortex-A76 and
          quad-core Cortex-A55 including NEON and GPU, 6TOPS NPU, Mali-G610 MP4,