config: am335x_evm: detect Black Wireless using BWA
authorrobertcnelson@gmail.com <robertcnelson@gmail.com>
Thu, 30 Mar 2017 19:29:52 +0000 (14:29 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:26:51 +0000 (09:26 -0400)
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>
board/ti/am335x/board.c
include/configs/am335x_evm.h

index 8eaf3e9a5c95023246387bc8fb1b9f615a839088..304ae34fb7d4ef93fccd9bd1917650ca61727398 100644 (file)
@@ -651,6 +651,13 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
        char *name = NULL;
 
+       if (board_is_bone_lt()) {
+               /* BeagleBoard.org BeagleBone Black Wireless: */
+               if (!strncmp(board_ti_get_rev(), "BWA", 3)) {
+                       name = "BBBW";
+               }
+       }
+
        if (board_is_bbg1())
                name = "BBG1";
        set_board_info_env(name);
index 27126871f7315d343edbdf23e9bd8452aa4b1255..dcac2f5816269cb7fe369c26a186e4b4c2b9c411 100644 (file)
                        "setenv fdtfile am335x-bone.dtb; fi; " \
                "if test $board_name = A335BNLT; then " \
                        "setenv fdtfile am335x-boneblack.dtb; fi; " \
+               "if test $board_name = BBBW; then " \
+                       "setenv fdtfile am335x-boneblack-wireless.dtb; fi; " \
                "if test $board_name = BBG1; then " \
                        "setenv fdtfile am335x-bonegreen.dtb; fi; " \
                "if test $board_name = A33515BB; then " \