[PATCH v4 5/5] board: siemens: iot2050: Use sysinfo for board initialization

2025-02-17 Thread Baocheng Su
Drop the info structure parsing of the board in favor of our new sysinfo driver to avoid code duplication. Signed-off-by: Baocheng Su Signed-off-by: Li Hua Qian [Jan: rebasing, split-up, cleanup] Signed-off-by: Jan Kiszka --- (no changes since v3) Changes in v3: - reworked to align with the

[PATCH v4 4/5] sysinfo: Add driver for IOT2050 boards

2025-02-17 Thread Baocheng Su
This brings a sysinfo driver and DT entry for the IOT2050 board series. It translates the board information passed from SE-Boot to SPL into values that can be retrieved via the sysinfo API. Will is already used to fill the SMBIOS table when booting via EFI. Signed-off-by: Baocheng Su Signed-off

[PATCH v4 2/5] sysinfo: Add API for accessing data elements

2025-02-17 Thread Baocheng Su
This commit introduces a new API to the sysinfo module, allowing access to data elements. This is particularly useful for handling data with multiple instances, such as MAC addresses. Signed-off-by: Baocheng Su --- (no changes since v3) Changes in v3: - New drivers/sysinfo/sysinfo-uclass.c

[PATCH v4 3/5] sysinfo: Add SYSID_BOARD_RAM_SIZE_MB

2025-02-17 Thread Baocheng Su
Add a new field SYSID_BOARD_RAM_SIZE_MB to sysinfo structure to store the size of RAM in MB. dram_init can use this field to get the RAM size via sysinfo driver. Signed-off-by: Baocheng Su --- (no changes since v3) Changes in v3: - New include/sysinfo.h | 1 + 1 file changed, 1 insertion

[PATCH v4 1/5] smbios: Fill UUID from sysinfo when available

2025-02-17 Thread Baocheng Su
Allow for the sysinfo drivers to provide a system UUID to SMBIOS. Will be first used by the IOT2050 boards. Signed-off-by: Li Hua Qian Signed-off-by: Jan Kiszka Signed-off-by: Baocheng Su --- (no changes since v3) Changes in v3: - use sysinfo_get_data to get the SMBios UUID bin - s/strncpy

[PATCH v4 0/5] boards: siemens: iot2050: SM variant, sysinfo support, fixes & cleanups

2025-02-17 Thread Baocheng Su
master, adding the missing 6.12 cherry-picks from devicetree-rebasing Baocheng Su (5): smbios: Fill UUID from sysinfo when available sysinfo: Add API for accessing data elements sysinfo: Add SYSID_BOARD_RAM_SIZE_MB sysinfo: Add driver for IOT2050 boards board: siemens: iot2050: Use

[PATCH v3 4/5] sysinfo: Add driver for IOT2050 boards

2025-02-10 Thread Baocheng Su
This brings a sysinfo driver and DT entry for the IOT2050 board series. It translates the board information passed from SE-Boot to SPL into values that can be retrieved via the sysinfo API. Will is already used to fill the SMBIOS table when booting via EFI. Signed-off-by: Baocheng Su Signed-off

[PATCH v3 5/5] board: siemens: iot2050: Use sysinfo for board initialization

2025-02-10 Thread Baocheng Su
Drop the info structure parsing of the board in favor of our new sysinfo driver to avoid code duplication. Signed-off-by: Baocheng Su Signed-off-by: Li Hua Qian [Jan: rebasing, split-up, cleanup] Signed-off-by: Jan Kiszka --- Changes in v3: - reworked to align with the sysinfo driver updates

[PATCH v3 3/5] sysinfo: Add SYSID_BOARD_RAM_SIZE_MB

2025-02-10 Thread Baocheng Su
Add a new field SYSID_BOARD_RAM_SIZE_MB to sysinfo structure to store the size of RAM in MB. dram_init can use this field to get the RAM size via sysinfo driver. Signed-off-by: Baocheng Su --- Changes in v3: - New include/sysinfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include

[PATCH v3 2/5] sysinfo: Add API for accessing data elements

2025-02-10 Thread Baocheng Su
This commit introduces a new API to the sysinfo module, allowing access to data elements. This is particularly useful for handling data with multiple instances, such as MAC addresses. Signed-off-by: Baocheng Su --- Changes in v3: - New drivers/sysinfo/sysinfo-uclass.c | 29

[PATCH v3 1/5] smbios: Fill UUID from sysinfo when available

2025-02-10 Thread Baocheng Su
Allow for the sysinfo drivers to provide a system UUID to SMBIOS. Will be first used by the IOT2050 boards. Signed-off-by: Li Hua Qian Signed-off-by: Jan Kiszka Signed-off-by: Baocheng Su --- Changes in v3: - use sysinfo_get_data to get the SMBios UUID bin - s/strncpy/memcpy/ for the UUID

[PATCH v3 0/5] boards: siemens: iot2050: SM variant, sysinfo support, fixes & cleanups

2025-02-10 Thread Baocheng Su
Baocheng Su (5): smbios: Fill UUID from sysinfo when available sysinfo: Add API for accessing data elements sysinfo: Add SYSID_BOARD_RAM_SIZE_MB sysinfo: Add driver for IOT2050 boards board: siemens: iot2050: Use sysinfo for board initialization .../dts/k3-am65-iot2050-common-u-boot.dtsi