[PATCH v3 2/2] board: phytec: common: k3: Expose product infos to Linux
Daniel Schultz
d.schultz at phytec.de
Thu Jan 23 15:43:50 CET 2025
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 <d.schultz at phytec.de>
Reviewed-by: Wadim Egorov <w.egorov at phytec.de>
---
Changes in v2:
* Removed 'return 0' right before leaving with the same return code anyways.
* Added Wadim's Reviewed-by.
No changes in v3
board/phytec/common/k3/board.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c
index 9ff861cd3f4..3f70dcddf45 100644
--- a/board/phytec/common/k3/board.c
+++ b/board/phytec/common/k3/board.c
@@ -252,9 +252,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
--
2.25.1
More information about the U-Boot
mailing list