aboutsummaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorPaul Barker2022-07-08 10:25:46 +0100
committerTom Rini2022-07-25 13:02:03 -0400
commit390d9e2c8c7202f2153eba5e71cfe13803d44e73 (patch)
tree998720b637214977dd891811747ac223f82be861 /board/ti
parent21acb843db24ec8fc743bf78b8e253fc69c20e27 (diff)
board: ti: am335x: Use correct dtbs for SanCloud boards
We have different dtbs for the Lite and Extended WiFi variants of the SanCloud BBE. Signed-off-by: Paul Barker <paul.barker@sancloud.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti')
-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