From: Paul Barker <paul.barker@sancloud.com>
To: u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>
Cc: Paul Barker <paul.barker@sancloud.com>
Subject: [PATCH 3/3] board: ti: am335x: Add support for BBE Extended WiFi
Date: Mon, 11 Apr 2022 15:42:01 +0000 [thread overview]
Message-ID: <20220411154201.1084080-3-paul.barker@sancloud.com> (raw)
In-Reply-To: <20220411154201.1084080-1-paul.barker@sancloud.com>
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>
---
board/ti/am335x/board.c | 10 ++++++++--
include/configs/am335x_evm.h | 2 ++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index dd54f4d457a6..7c0545892c95 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 746d11b0a9b2..fd5b209a52db 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 " \
--
2.32.0
next prev parent reply other threads:[~2022-04-11 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-11 15:41 [PATCH 1/3] arm: dts: Resync dts for BeagleBone and derivatives Paul Barker
2022-04-11 15:42 ` [PATCH 2/3] board: ti: am335x: Add BBE Lite support Paul Barker
2022-04-21 15:44 ` Tom Rini
2022-04-11 15:42 ` Paul Barker [this message]
2022-04-21 15:44 ` [PATCH 3/3] board: ti: am335x: Add support for BBE Extended WiFi Tom Rini
2022-04-21 15:44 ` [PATCH 1/3] arm: dts: Resync dts for BeagleBone and derivatives Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220411154201.1084080-3-paul.barker@sancloud.com \
--to=paul.barker@sancloud.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox