]> git.sur5r.net Git - u-boot/commitdiff
config: am335x_evm: detect Green Wireless using GW1
authorrobertcnelson@gmail.com <robertcnelson@gmail.com>
Thu, 30 Mar 2017 19:29:53 +0000 (14:29 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:26:52 +0000 (09:26 -0400)
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>
board/ti/am335x/board.c
include/configs/am335x_evm.h

index 304ae34fb7d4ef93fccd9bd1917650ca61727398..54589638b31a82f82dcf8c7ff9658c539a049c16 100644 (file)
@@ -656,6 +656,10 @@ int board_late_init(void)
                if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
                        name = "BBBW";
                }
+               /* SeeedStudio BeagleBone Green Wireless */
+               if (!strncmp(board_ti_get_rev(), "GW1", 3)) {
+                       name = "BBGW";
+               }
        }
 
        if (board_is_bbg1())
index dcac2f5816269cb7fe369c26a186e4b4c2b9c411..d90c5156d31eb7d0f6bba80813fc29c77892d4a4 100644 (file)
                        "setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
                "if test $board_name = BBG1; then " \
                        "setenv fdtfile am335x-bonegreen.dtb; fi; " \
+               "if test $board_name = BBGW; then " \
+                       "setenv fdtfile am335x-bonegreen-wireless.dtb; fi; " \
                "if test $board_name = A33515BB; then " \
                        "setenv fdtfile am335x-evm.dtb; fi; " \
                "if test $board_name = A335X_SK; then " \