
27 Jan
2025
27 Jan
'25
10:55 a.m.
Am 23.01.25 um 21:43 schrieb Daniel Schultz:
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
Changes in v2:
- Removed 'struct bd_info' as argument in function phytec_ft_board_fixup
Changes in v3:
- Removed not required check if variable data is valid in new functions.
- Moved '+1' from string length definitions to snprintf calls.
- Define more string lenghts to check snprintf result.
- Return -EINVAL instead of -1.
Reviewed-by: Wadim Egorov w.egorov@phytec.de Tested-by: Wadim Egorov w.egorov@phytec.de