diff options
author | Kory Maincent <kory.maincent@bootlin.com> | 2025-03-27 11:31:12 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-03-28 09:55:08 -0600 |
commit | f364ea8c2571540c10ecc9fab456760936eb7fc6 (patch) | |
tree | 727a6b493f3d04f1ef480298b6736e598c2da82b | |
parent | 3f9e0349c3e8afe45d5bdb2328a16512cfbc2ef1 (diff) |
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>
-rw-r--r-- | board/ti/am335x/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 774ef7ac5e3..f738cba7bd1 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -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; |