From: Paul Barker <paul.barker@sancloud.com>
Date: Mon, 11 Apr 2022 15:42:01 +0000 (+0000)
Subject: board: ti: am335x: Add support for BBE Extended WiFi
X-Git-Tag: v2025.01-rc5-pxa1908~1447^2~1
X-Git-Url: http://git.dujemihanovic.xyz/img/login.html?a=commitdiff_plain;h=a95cd68d516a547b09e6060b664e101e03706365;p=u-boot.git

board: ti: am335x: Add support for BBE Extended WiFi

The Sancloud BeagleBone Enhanced Extended WiFi (BBE Extended WiFi) has
its own devicetree file and the board can be identified by the 2nd
letter of the config string within the common EEPROM.

Signed-off-by: Paul Barker <paul.barker@sancloud.com>
---

diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index dd54f4d457..7c0545892c 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -828,10 +828,16 @@ int board_late_init(void)
 	if (board_is_bben()) {
 		char subtype_id = board_ti_get_config()[1];
 
-		if (subtype_id == 'L')
+		switch (subtype_id) {
+		case 'L':
 			name = "BBELITE";
-		else
+			break;
+		case 'I':
+			name = "BBE_EX_WIFI";
+			break;
+		default:
 			name = "BBEN";
+		}
 	}
 	set_board_info_env(name);
 
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 746d11b0a9..fd5b209a52 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -136,6 +136,8 @@
 			"setenv fdtfile am335x-sancloud-bbe.dtb; fi; " \
 		"if test $board_name = BBELITE; then " \
 			"setenv fdtfile am335x-sancloud-bbe-lite.dtb; fi; " \
+		"if test $board_name = BBE_EX_WIFI; then " \
+			"setenv fdtfile am335x-sancloud-bbe-extended-wifi.dtb; fi; " \
 		"if test $board_name = A33515BB; then " \
 			"setenv fdtfile am335x-evm.dtb; fi; " \
 		"if test $board_name = A335X_SK; then " \