]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Use devicetree for SMBIOS settings
authorSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 13:32:12 +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/rk3328-roc-cc-u-boot.dtsi
arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi
arch/arm/dts/rk3328-rock64-u-boot.dtsi
arch/arm/dts/rk3368-lion-u-boot.dtsi
configs/lion-rk3368_defconfig
configs/roc-cc-rk3328_defconfig
configs/rock-pi-e-rk3328_defconfig
configs/rock64-rk3328_defconfig

index e929d86e306a7dcaefbfc82d8203ff32edd5d3e2..08806dfc0f9f268f65b027e0a5b0598bf0a89483 100644 (file)
@@ -9,6 +9,27 @@
        chosen {
                u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
        };
+
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "firefly";
+                               product = "roc-rk3328-cc";
+                       };
+
+                       baseboard {
+                               manufacturer = "firefly";
+                               product = "roc-rk3328-cc";
+                       };
+
+                       chassis {
+                               manufacturer = "firefly";
+                               product = "roc-rk3328-cc";
+                       };
+               };
+       };
 };
 
 &gpio0 {
index bf5b1f3adcb5dc92b664f14218d194de85da5f73..4fc055eacb7346de846568c941dd0406e5be8ef6 100644 (file)
@@ -6,6 +6,29 @@
 #include "rk3328-u-boot.dtsi"
 #include "rk3328-sdram-ddr3-666.dtsi"
 
+/ {
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "radxa";
+                               product = "rock-pi-e_rk3328";
+                       };
+
+                       baseboard {
+                               manufacturer = "radxa";
+                               product = "rock-pi-e_rk3328";
+                       };
+
+                       chassis {
+                               manufacturer = "radxa";
+                               product = "rock-pi-e_rk3328";
+                       };
+               };
+       };
+};
+
 &gpio0 {
        u-boot,dm-spl;
 };
index 7340ef95f1d71309bc3e818d62fbf4917ce14124..2af32aea05a241e82ccfb33bbcbf14428cee89f5 100644 (file)
@@ -9,6 +9,27 @@
        chosen {
                u-boot,spl-boot-order = "same-as-spl", &sdmmc, &emmc;
        };
+
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "pine64";
+                               product = "rock64_rk3328";
+                       };
+
+                       baseboard {
+                               manufacturer = "pine64";
+                               product = "rock64_rk3328";
+                       };
+
+                       chassis {
+                               manufacturer = "pine64";
+                               product = "rock64_rk3328";
+                       };
+               };
+       };
 };
 
 &gpio0 {
index edc93e438f9ecf33bc54203977549a03ba98f95d..6d54214de9c7aa9ce30d15c636d837efd4ae2b1f 100644 (file)
                u-boot,spl-boot-order = &emmc, &sdmmc;
        };
 
+       smbios {
+               compatible = "u-boot,sysinfo-smbios";
+
+               smbios {
+                       system {
+                               manufacturer = "rockchip";
+                               product = "sheep_rk3368";
+                       };
+
+                       baseboard {
+                               manufacturer = "rockchip";
+                               product = "sheep_rk3368";
+                       };
+
+                       chassis {
+                               manufacturer = "rockchip";
+                               product = "sheep_rk3368";
+                       };
+               };
+       };
 };
 
 &pinctrl {
index b5b7a0b2daa516662a79129e645ab21684a5b5c8..3287bd1c05e5bea325a6199dbb2f738cf07cb1f2 100644 (file)
@@ -16,7 +16,6 @@ CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="rk3368-lion"
-CONFIG_SMBIOS_PRODUCT_NAME="sheep_rk3368"
 CONFIG_DEBUG_UART=y
 CONFIG_ANDROID_BOOT_IMAGE=y
 CONFIG_FIT=y
@@ -89,4 +88,5 @@ CONFIG_SYSRESET=y
 CONFIG_SPL_TINY_MEMSET=y
 CONFIG_LZO=y
 CONFIG_ERRNO_STR=y
-CONFIG_SMBIOS_MANUFACTURER="rockchip"
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
index 98b11af2d9ffb75aa06142aa728f58fea9868586..946a007a798b678d50581a9f4533fb35a471ded0 100644 (file)
@@ -13,7 +13,6 @@ CONFIG_SPL_STACK_R_ADDR=0x600000
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_DEFAULT_DEVICE_TREE="rk3328-roc-cc"
-CONFIG_SMBIOS_PRODUCT_NAME="roc-rk3328-cc"
 CONFIG_DEBUG_UART=y
 CONFIG_TPL_SYS_MALLOC_F_LEN=0x800
 # CONFIG_ANDROID_BOOT_IMAGE is not set
@@ -100,4 +99,5 @@ CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_SPL_TINY_MEMSET=y
 CONFIG_TPL_TINY_MEMSET=y
 CONFIG_ERRNO_STR=y
-CONFIG_SMBIOS_MANUFACTURER="firefly"
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
index 5267691732cef7c111b41ac0b8cd566fc754d232..fae9a50c818bc128f9a30a3316159ffcf58dda53 100644 (file)
@@ -14,7 +14,6 @@ CONFIG_SPL_SYS_MALLOC_F_LEN=0x4000
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_DEFAULT_DEVICE_TREE="rk3328-rock-pi-e"
-CONFIG_SMBIOS_PRODUCT_NAME="rock-pi-e_rk3328"
 CONFIG_DEBUG_UART=y
 CONFIG_TPL_SYS_MALLOC_F_LEN=0x800
 # CONFIG_ANDROID_BOOT_IMAGE is not set
@@ -102,4 +101,5 @@ CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_SPL_TINY_MEMSET=y
 CONFIG_TPL_TINY_MEMSET=y
 CONFIG_ERRNO_STR=y
-CONFIG_SMBIOS_MANUFACTURER="radxa"
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y
index d6074adb04db081fa26b39a82579d3319118e75a..c625a47dc7d8af3e316584b3e5dbf5c162031cbc 100644 (file)
@@ -13,7 +13,6 @@ CONFIG_SPL_STACK_R_ADDR=0x600000
 CONFIG_DEBUG_UART_BASE=0xFF130000
 CONFIG_DEBUG_UART_CLOCK=24000000
 CONFIG_DEFAULT_DEVICE_TREE="rk3328-rock64"
-CONFIG_SMBIOS_PRODUCT_NAME="rock64_rk3328"
 CONFIG_DEBUG_UART=y
 CONFIG_TPL_SYS_MALLOC_F_LEN=0x800
 # CONFIG_ANDROID_BOOT_IMAGE is not set
@@ -99,4 +98,5 @@ CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_SPL_TINY_MEMSET=y
 CONFIG_TPL_TINY_MEMSET=y
 CONFIG_ERRNO_STR=y
-CONFIG_SMBIOS_MANUFACTURER="pine64"
+CONFIG_SYSINFO=y
+CONFIG_SYSINFO_SMBIOS=y