[v2 03/22] x86: galileo: Use devicetree for SMBIOS settings

Siew Chin Lim elly.siew.chin.lim at intel.com
Tue Nov 10 06:55:14 CET 2020


From: Simon Glass <sjg at chromium.org>

Add settings and enable the default sysinfo driver so that these can come
from the device tree.

Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
---
 arch/x86/dts/galileo.dts    | 28 ++++++++++++++++++++++++++++
 board/intel/galileo/Kconfig | 11 -----------
 2 files changed, 28 insertions(+), 11 deletions(-)

diff --git a/arch/x86/dts/galileo.dts b/arch/x86/dts/galileo.dts
index 5de4568679..501047124e 100644
--- a/arch/x86/dts/galileo.dts
+++ b/arch/x86/dts/galileo.dts
@@ -164,4 +164,32 @@
 		};
 	};
 
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+
+		/*
+		 * Override the default product name U-Boot reports in the
+		 * SMBIOS table, to be compatible with the Intel provided UEFI
+		 * BIOS, as Linux kernel drivers
+		 * (drivers/mfd/intel_quark_i2c_gpio.c and
+		 * drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c) make use of
+		 * it to do different board level configuration.
+		 *
+		 * This can be "Galileo" for GEN1 Galileo board.
+		 */
+		smbios {
+			system {
+				product = "GalileoGen2";
+			};
+
+			baseboard {
+				product = "GalileoGen2";
+			};
+
+			chassis {
+				product = "GalileoGen2";
+			};
+		};
+	};
+
 };
diff --git a/board/intel/galileo/Kconfig b/board/intel/galileo/Kconfig
index 1416c891e8..fb8d94fb5b 100644
--- a/board/intel/galileo/Kconfig
+++ b/board/intel/galileo/Kconfig
@@ -22,15 +22,4 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	select BOARD_ROMSIZE_KB_1024
 	select SPI_FLASH_WINBOND
 
-config SMBIOS_PRODUCT_NAME
-	default "GalileoGen2"
-	help
-	  Override the default product name U-Boot reports in the SMBIOS
-	  table, to be compatible with the Intel provided UEFI BIOS, as
-	  Linux kernel drivers (drivers/mfd/intel_quark_i2c_gpio.c and
-	  drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c) make use of
-	  it to do different board level configuration.
-
-	  This can be "Galileo" for GEN1 Galileo board.
-
 endif
-- 
2.13.0



More information about the U-Boot mailing list