diff mbox series

[v4,09/13] imx: Use devicetree for SMBIOS settings on MYiR MYS-6ULX

Message ID 20201022141949.711984-9-sjg@chromium.org
State Superseded
Delegated to: Bin Meng
Headers show
Series x86: Updates to SMBIOS | expand

Commit Message

Simon Glass Oct. 22, 2020, 2:19 p.m. UTC
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>
---

(no changes since v1)

 .../dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts | 25 +++++++++++++++++++
 configs/myir_mys_6ulx_defconfig               |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts

Comments

Bin Meng Nov. 3, 2020, 8:51 a.m. UTC | #1
On Thu, Oct 22, 2020 at 10:21 PM Simon Glass <sjg@chromium.org> wrote:
>
> 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>
> ---
>
> (no changes since v1)
>
>  .../dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts | 25 +++++++++++++++++++
>  configs/myir_mys_6ulx_defconfig               |  3 ++-
>  2 files changed, 27 insertions(+), 1 deletion(-)
>  create mode 100644 arch/arm/dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff mbox series

Patch

diff --git a/arch/arm/dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts b/arch/arm/dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts
new file mode 100644
index 00000000000..378e4fa58dc
--- /dev/null
+++ b/arch/arm/dts/imx6ull-myir-mys-6ulx-eval-u-boot.dts
@@ -0,0 +1,25 @@ 
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2020 Linumiz
+ * Author: Parthiban Nallathambi <parthiban@linumiz.com>
+ */
+
+/ {
+	smbios {
+		compatible = "u-boot,sysinfo-smbios";
+
+		smbios {
+			system {
+				manufacturer = "MYiR";
+			};
+
+			baseboard {
+				manufacturer = "MYiR";
+			};
+
+			chassis {
+				manufacturer = "MYiR";
+			};
+		};
+	};
+};
diff --git a/configs/myir_mys_6ulx_defconfig b/configs/myir_mys_6ulx_defconfig
index 02b2060874a..4ba817ab1e9 100644
--- a/configs/myir_mys_6ulx_defconfig
+++ b/configs/myir_mys_6ulx_defconfig
@@ -67,4 +67,5 @@  CONFIG_MXC_UART=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
-CONFIG_SMBIOS_MANUFACTURER="MYiR"
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y