]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: rk3308: Generate ethaddr based on cpu id
authorJonas Karlman <jonas@kwiboo.se>
Mon, 8 Apr 2024 18:14:01 +0000 (18:14 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 26 Apr 2024 07:47:03 +0000 (15:47 +0800)
commit9ae4a86f1ebfac0fd8a901a615e3856e88ff0e72
treec1daf047685701adf39db4b03cbbf1db72060d82
parent12e07033c77d52a99682778e078ef63be619052d
rockchip: rk3308: Generate ethaddr based on cpu id

Like other Rockchip SoCs the RK3308 has cpu id programmed into OTP
memory. The rockchip_otp driver already support the RK3308 variant.
However, the device tree is missing a node to enable use of OTP.

Add the missing otp node to soc u-boot.dtsi, enable the rockchip_otp
driver and enable use of misc_init_r() to set ethaddr based on cpu id.

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