Commit 2b79fba6915dd89af1e13e0da07dcd8c2b962aef

Authored by robertcnelson@gmail.com
Committed by Tom Rini
1 parent 4015949f1f

config: am335x_evm: detect Green Wireless using GW1

SeeedStudio BeagleBone Green Wireless (BBGW) is an expansion of the
SeeedStudio Green (BBG) with the Ethernet replaced by a TI wl1835
wireless module.

This board can be indentified by the GW1x value after A335BNLT (BBB)
in the at24 eeprom:
GW1x [aa 55 33 ee 41 33 33 35  42 4e 4c 54 47 57 31 41  |.U3.A335BNLTGW1A|]

http://beagleboard.org/green-wireless
http://wiki.seeed.cc/BeagleBone_Green_Wireless/

firmware: https://github.com/beagleboard/beaglebone-black-wireless/tree/master/firmware
wl18xx mac address: Stored in at24 eeprom at address 5-16:
hexdump -e '8/1 "%c"' /sys/bus/i2c/devices/0-0050/eeprom | cut -b 5-16

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 6 additions and 0 deletions Side-by-side Diff

board/ti/am335x/board.c
... ... @@ -656,6 +656,10 @@
656 656 if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
657 657 name = "BBBW";
658 658 }
  659 + /* SeeedStudio BeagleBone Green Wireless */
  660 + if (!strncmp(board_ti_get_rev(), "GW1", 3)) {
  661 + name = "BBGW";
  662 + }
659 663 }
660 664  
661 665 if (board_is_bbg1())
include/configs/am335x_evm.h
... ... @@ -142,6 +142,8 @@
142 142 "setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
143 143 "if test $board_name = BBG1; then " \
144 144 "setenv fdtfile am335x-bonegreen.dtb; fi; " \
  145 + "if test $board_name = BBGW; then " \
  146 + "setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \
145 147 "if test $board_name = A33515BB; then " \
146 148 "setenv fdtfile am335x-evm.dtb; fi; " \
147 149 "if test $board_name = A335X_SK; then " \