mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-03 03:31:37 +02:00
rockchip: rv1126: Read cpuid from otp and set ethaddr
Provide configuration to read cpuid and generate a persistent MAC address in ethaddr Signed-off-by: Tim Lunn <tim@feathertop.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
455ad75cb2
commit
b01adfe59d
@ -15,6 +15,18 @@
|
|||||||
compatible = "rockchip,rv1126-dmc";
|
compatible = "rockchip,rv1126-dmc";
|
||||||
bootph-all;
|
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 {
|
&gpio0 {
|
||||||
|
@ -359,6 +359,8 @@ config ROCKCHIP_RV1126
|
|||||||
select BOARD_LATE_INIT
|
select BOARD_LATE_INIT
|
||||||
imply ROCKCHIP_COMMON_BOARD
|
imply ROCKCHIP_COMMON_BOARD
|
||||||
imply OF_LIBFDT_OVERLAY
|
imply OF_LIBFDT_OVERLAY
|
||||||
|
imply ROCKCHIP_OTP
|
||||||
|
imply MISC_INIT_R
|
||||||
imply TPL_DM
|
imply TPL_DM
|
||||||
imply TPL_LIBCOMMON_SUPPORT
|
imply TPL_LIBCOMMON_SUPPORT
|
||||||
imply TPL_LIBGENERIC_SUPPORT
|
imply TPL_LIBGENERIC_SUPPORT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user