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>
This commit is contained in:
@@ -955,7 +955,8 @@ int board_fit_config_name_match(const char *name)
|
|||||||
return 0;
|
return 0;
|
||||||
else if (board_is_bone() && !strcmp(name, "am335x-bone"))
|
else if (board_is_bone() && !strcmp(name, "am335x-bone"))
|
||||||
return 0;
|
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;
|
return 0;
|
||||||
else if (board_is_pb() && !strcmp(name, "am335x-pocketbeagle"))
|
else if (board_is_pb() && !strcmp(name, "am335x-pocketbeagle"))
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user