board: ti: am335x: Fix selection of BeagleBone Green
authorKory Maincent <kory.maincent@bootlin.com>
Thu, 27 Mar 2025 10:31:12 +0000 (11:31 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Mar 2025 15:55:08 +0000 (09:55 -0600)
commitf364ea8c2571540c10ecc9fab456760936eb7fc6
tree727a6b493f3d04f1ef480298b6736e598c2da82b
parent3f9e0349c3e8afe45d5bdb2328a16512cfbc2ef1
board: ti: am335x: Fix selection of BeagleBone Green

The BeagleBone Green board is a revision of the BoneBlack board.
Having BeagleBone Black devicetree listed before BeagleBone Green will
select always the BeagleBone Black devicetree following the functioning of
board_fit_config_name_match().

Fix it by changing the test condition and selecting BoneBlack board only
if it is not a revision of this board.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
board/ti/am335x/board.c