]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: dts: rockchip: rk3399: nanopi-r4s: Provide smbios sysinfo
authorChristian Kohlschütter <christian@kohlschutter.com>
Mon, 17 Oct 2022 19:02:36 +0000 (19:02 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:26 +0000 (18:07 +0800)
Provide human-readable manufacturer and product names for the
FriendlyELEC NanoPi R4S.

Enable CONFIG_SYSINFO and CONFIG_SYSINFO_SMBIOS by default.

Signed-off-by: Christian Kohlschütter <christian@kohlschutter.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi
configs/nanopi-r4s-rk3399_defconfig

index cd1642527ba695eda5169b8eec5c6153247cf8ae..69800cc368d3bee74082d3df81372402156c39c0 100644 (file)
 
 #include "rk3399-nanopi4-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
+
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       baseboard {
+                               manufacturer = "FriendlyELEC";
+                               product = "NanoPi R4S";
+                       };
+
+                       chassis {
+                               manufacturer = "FriendlyELEC";
+                       };
+               };
+       };
+};
index 6d2a147d90bc3b92be1c3418eb858f61da6bec8c..4946e895aca0868928ae157f44612afe4b01b948 100644 (file)
@@ -72,3 +72,9 @@ CONFIG_VIDEO_ROCKCHIP=y
 CONFIG_DISPLAY_ROCKCHIP_HDMI=y
 CONFIG_SPL_TINY_MEMSET=y
 CONFIG_ERRNO_STR=y
+CONFIG_MISC=y
+CONFIG_MISC_INIT_R=y
+CONFIG_ROCKCHIP_EFUSE=y
+CONFIG_ROCKCHIP_OTP=y
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y