]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am335x: Add BBE Lite support
authorPaul Barker <paul.barker@sancloud.com>
Mon, 11 Apr 2022 15:42:00 +0000 (15:42 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 21 Apr 2022 13:08:57 +0000 (09:08 -0400)
The Sancloud BeagleBone Enhanced Lite (BBE Lite) 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
include/configs/am335x_evm.h

index 9b7067040a689f93d74bf9e4298b090bf4e27e5f..dd54f4d457a69b1d8c46c77d29d5b53467eb5358 100644 (file)
@@ -825,8 +825,14 @@ int board_late_init(void)
 
        if (board_is_bbg1())
                name = "BBG1";
-       if (board_is_bben())
-               name = "BBEN";
+       if (board_is_bben()) {
+               char subtype_id = board_ti_get_config()[1];
+
+               if (subtype_id == 'L')
+                       name = "BBELITE";
+               else
+                       name = "BBEN";
+       }
        set_board_info_env(name);
 
        /*
index cbb7b91139d0c9c76f91b487c5dde6169dd90436..746d11b0a9b2ef285907a6fb6bd749648ef56c31 100644 (file)
                        "setenv fdtfile am335x-boneblue.dtb; fi; " \
                "if test $board_name = BBEN; then " \
                        "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 = A33515BB; then " \
                        "setenv fdtfile am335x-evm.dtb; fi; " \
                "if test $board_name = A335X_SK; then " \