Commit 4015949f1f3fe6af8cb88f3f449f0f8a3bf4778a
Committed by
Tom Rini
1 parent
dc11d83a2e
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
config: am335x_evm: detect Black Wireless using BWA
BeagleBone Black Wireless is clone of the BeagleBone Black (BBB) with the Ethernet replaced by a TI wl1835 wireless module. This board can be indentified by the BWAx value after A335BNLT (BBB) in the at24 eeprom: BWAx [aa 55 33 ee 41 33 33 35 42 4e 4c 54 42 57 41 35 |.U3.A335BNLTBWA5|] http://beagleboard.org/black-wireless https://github.com/beagleboard/beaglebone-black-wireless firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware wl18xx mac address: /proc/device-tree/ocp/ethernet@4a100000/slave@4a100200/mac-address Signed-off-by: Robert Nelson <robertcnelson@gmail.com> CC: Tom Rini <trini@konsulko.com> CC: Jason Kridner <jkridner@beagleboard.org> CC: Will Newton <willn@resin.io> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 2 changed files with 9 additions and 0 deletions Side-by-side Diff
board/ti/am335x/board.c
... | ... | @@ -651,6 +651,13 @@ |
651 | 651 | #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG |
652 | 652 | char *name = NULL; |
653 | 653 | |
654 | + if (board_is_bone_lt()) { | |
655 | + /* BeagleBoard.org BeagleBone Black Wireless: */ | |
656 | + if (!strncmp(board_ti_get_rev(), "BWA", 3)) { | |
657 | + name = "BBBW"; | |
658 | + } | |
659 | + } | |
660 | + | |
654 | 661 | if (board_is_bbg1()) |
655 | 662 | name = "BBG1"; |
656 | 663 | set_board_info_env(name); |
include/configs/am335x_evm.h
... | ... | @@ -138,6 +138,8 @@ |
138 | 138 | "setenv fdtfile am335x-bone.dtb; fi; " \ |
139 | 139 | "if test $board_name = A335BNLT; then " \ |
140 | 140 | "setenv fdtfile am335x-boneblack.dtb; fi; " \ |
141 | + "if test $board_name = BBBW; then " \ | |
142 | + "setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \ | |
141 | 143 | "if test $board_name = BBG1; then " \ |
142 | 144 | "setenv fdtfile am335x-bonegreen.dtb; fi; " \ |
143 | 145 | "if test $board_name = A33515BB; then " \ |