aboutsummaryrefslogtreecommitdiff
path: root/board/ti/am335x/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/ti/am335x/board.c')
-rw-r--r--board/ti/am335x/board.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 2cb5b1cb3fc..b97fedddd5e 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -966,10 +966,20 @@ int board_fit_config_name_match(const char *name)
return 0;
else if (board_is_icev2() && !strcmp(name, "am335x-icev2"))
return 0;
- else if (board_is_bben() && !strcmp(name, "am335x-sancloud-bbe"))
- return 0;
- else
- return -1;
+ else if (board_is_bben()) {
+ char subtype_id = board_ti_get_config()[1];
+
+ if (subtype_id == 'L') {
+ if (!strcmp(name, "am335x-sancloud-bbe-lite"))
+ return 0;
+ } else if (subtype_id == 'I') {
+ if (!strcmp(name, "am335x-sancloud-bbe-extended-wifi"))
+ return 0;
+ } else if (!strcmp(name, "am335x-sancloud-bbe")) {
+ return 0;
+ }
+ }
+ return -1;
}
#endif