Skip to contentSkip to conversation

board: ti: am335x: Fix selection of BeagleBone Green

PATCH In review Kory Maincent 2 participants 2 messages Mar 27, 2025 – Mar 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 board/ti/am335x/board.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/ti/am335x/board.c +2 -1
index 774ef7ac5e3..f738cba7bd1 100644
@@ -955,7 +955,8 @@ int board_fit_config_name_match(const char *name)
 		return 0;
 	else if (board_is_bone() && !strcmp(name, "am335x-bone"))
 		return 0;
-	else if (board_is_bone_lt() && !strcmp(name, "am335x-boneblack"))
+	else if (board_is_bone_lt() && !board_is_bbg1() &&
+		 !strcmp(name, "am335x-boneblack"))
 		return 0;
 	else if (board_is_pb() && !strcmp(name, "am335x-pocketbeagle"))
 		return 0;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 9 lines · Kory Maincent

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.

[...]

Applied to u-boot/master, thanks!

[1/1] board: ti: am335x: Fix selection of BeagleBone Green

      commit: f364ea8c2571540c10ecc9fab456760936eb7fc6
Signature · 1 line
Tom