From: Daniel Schultz Date: Thu, 23 Jan 2025 14:43:50 +0000 (-0800) Subject: board: phytec: common: k3: Expose product infos to Linux X-Git-Tag: v2025.04-rc2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=058ed281faed1bac6005d3ebc126fae825309158;p=pandora-u-boot.git board: phytec: common: k3: Expose product infos to Linux Call 'phytec_ft_board_fixup' in the common K3 board code to expose the product name and part number to Linux. Signed-off-by: Daniel Schultz Reviewed-by: Wadim Egorov --- diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c index ebdd5fb2abe..9d833456810 100644 --- a/board/phytec/common/k3/board.c +++ b/board/phytec/common/k3/board.c @@ -258,9 +258,21 @@ fixup_error: int ft_board_setup(void *blob, struct bd_info *bd) { + struct phytec_eeprom_data data; + int ret; + fdt_apply_som_overlays(blob); fdt_copy_fixed_partitions(blob); + ret = phytec_eeprom_data_setup(&data, 0, EEPROM_ADDR); + if (ret || !data.valid) + return 0; + + ret = phytec_ft_board_fixup(&data, blob); + if (ret) + pr_err("%s: Failed to add PHYTEC information to fdt.\n", + __func__); + return 0; } #endif