board: phytec: common: Add product information to FTD
authorDaniel Schultz <d.schultz@phytec.de>
Thu, 23 Jan 2025 14:43:49 +0000 (06:43 -0800)
committerTom Rini <trini@konsulko.com>
Fri, 31 Jan 2025 17:08:04 +0000 (11:08 -0600)
commit9c46b8c4e075fb093642e0fc692c16833647a912
tree3662fa83cf83c70cc6229dbb506ad49870337647
parent2beaa3425206706f98a75b3033e5d22ad188c45b
board: phytec: common: Add product information to FTD

ft_board_setup inside the board code allows to alter
device-tree during the boot process.

Introduce a new function for the PHYTEC SOM detection
to read the product name and part number from the EEPROM
content and include both into the device-tree as
* phytec,som-part-number
* phytec,som-product-name

This function can be called from the board code when those
values should be exposed to Linux.

This patch also updates the phytec_print_som_info
function and changes the output.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
board/phytec/common/phytec_som_detection.c
board/phytec/common/phytec_som_detection.h