[PATCH v3 1/2] board: phytec: common: Add product information to FTD
Wadim Egorov
w.egorov at phytec.de
Mon Jan 27 10:55:31 CET 2025
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 at 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 at phytec.de>
Tested-by: Wadim Egorov <w.egorov at phytec.de>
More information about the U-Boot
mailing list