Skip to contentSkip to conversation

mx6sabresd: Make checkboard respect CONFIG_NXP_BOARD_REVISION

PATCH New [email protected] 1 participant 1 message Jul 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx6sabresd: Make checkboard respect CONFIG_NXP_BOARD_REVISION

Quoted 15 lines

The default implementation of checkboard() calls the nxp_board_rev_string() function
to retrieve a character representing the revision number of the board. However, this
attempt to retrieve the revision number may fail in certain situations or be otherwise undesirable.
There is already a configuration option to avoid retrieving the revision number of
the board: CONFIG_NXP_BOARD_REVISION. In fact, if this option is enabled, the nxp_board_rev_string() function's definition will be omitted entirely, meaning that the previous implementation of checkboard() would result in a linker error.
This changeset makes the default implementation of checkboard() respect the CONFIG_NXP_BOARD_REVISION configuration option, only attempting to retrieve the board revision number if that option is defined.

Quoted 1 line

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================