From: Paul Barker Date: Mon, 11 Apr 2022 15:42:00 +0000 (+0000) Subject: board: ti: am335x: Add BBE Lite support X-Git-Tag: v2022.07-rc1~15^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde726442b244029d99965695a25ce198e14fbbb;p=pandora-u-boot.git board: ti: am335x: Add BBE Lite support 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 --- diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 9b7067040a6..dd54f4d457a 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -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); /* diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index cbb7b91139d..746d11b0a9b 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -134,6 +134,8 @@ "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 " \