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>
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 2cb5b1c..b97fedd 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -966,10 +966,20 @@
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