]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: mvebu: Use devicetree for SMBIOS settings on uDPU
authorSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 13:32:15 +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/armada-3720-uDPU-u-boot.dtsi
configs/uDPU_defconfig

index ef178bdc86ede331643a185b18ea9820250a35e3..fdad90ad123fea937d76286fab486a82b555563d 100644 (file)
@@ -1,5 +1,25 @@
 // SPDX-License-Identifier: GPL-2.0+
 
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               product = "uDPU";
+                       };
+
+                       baseboard {
+                               product = "uDPU";
+                       };
+
+                       chassis {
+                               product = "uDPU";
+                       };
+               };
+       };
+};
+
 &spi0 {
        u-boot,dm-pre-reloc;
 
index dfab2b306bb6282ed7c1cbdb2ff055785e56f1be..ec97489523d6b851d0d2ce7ef738f57d8bfc0136 100644 (file)
@@ -11,7 +11,6 @@ CONFIG_DM_GPIO=y
 CONFIG_DEBUG_UART_BASE=0xd0012000
 CONFIG_DEBUG_UART_CLOCK=25804800
 CONFIG_DEFAULT_DEVICE_TREE="armada-3720-uDPU"
-CONFIG_SMBIOS_PRODUCT_NAME="uDPU"
 CONFIG_DEBUG_UART=y
 CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
@@ -97,3 +96,5 @@ CONFIG_USB_ETHER_RTL8152=y
 CONFIG_USB_ETHER_SMSC95XX=y
 CONFIG_LZO=y
 CONFIG_SPL_LZO=y
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y