odroid-c2: Use devicetree for SMBIOS settings
authorSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 13:32:14 +0000 (06:32 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 6 Nov 2020 02:18:20 +0000 (10:18 +0800)
Add settings and enable the default sysinfo driver so that these can come
from the device tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi
configs/odroid-c2_defconfig

index 484b40504dc3898c510c55fd3f2894a40c0e7fc2..90087b00dba40519ab27804d94f8ba921b994d0b 100644 (file)
@@ -6,6 +6,29 @@
 
 #include "meson-gx-u-boot.dtsi"
 
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "Hardkernel Co., Ltd.";
+                               product = "ODROID-C2";
+                       };
+
+                       baseboard {
+                               manufacturer = "Hardkernel Co., Ltd.";
+                               product = "ODROID-C2";
+                       };
+
+                       chassis {
+                               manufacturer = "Hardkernel Co., Ltd.";
+                               product = "ODROID-C2";
+                       };
+               };
+       };
+};
+
 &usb0 {
        status = "disabled";
 };
index 5fdce3b4638831483b46e95d958f502dabf19c83..f2c9fa727787bbfba99672f8694f80164ffb1b2c 100644 (file)
@@ -8,7 +8,6 @@ CONFIG_DEBUG_UART_BASE=0xc81004c0
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_IDENT_STRING=" odroid-c2"
 CONFIG_DEFAULT_DEVICE_TREE="meson-gxbb-odroidc2"
-CONFIG_SMBIOS_PRODUCT_NAME="ODROID-C2"
 CONFIG_DEBUG_UART=y
 CONFIG_OF_BOARD_SETUP=y
 # CONFIG_DISPLAY_CPUINFO is not set
@@ -64,4 +63,5 @@ CONFIG_BMP_16BPP=y
 CONFIG_BMP_24BPP=y
 CONFIG_BMP_32BPP=y
 CONFIG_OF_LIBFDT_OVERLAY=y
-CONFIG_SMBIOS_MANUFACTURER="Hardkernel Co., Ltd."
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y