board: ti: am57xx-idk: Choose the right DTB based on detected LCD Panel

The board file sets the 'idk_lcd' environment variable based on
what LCD panel was detected. We just need to choose the right
DTB based on that.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
This commit is contained in:
Roger Quadros 2021-09-03 17:24:36 +02:00 committed by Praneeth Bajjuri
parent 788d2a65d4
commit 7a7db34da0
1 changed files with 13 additions and 3 deletions

View File

@ -209,16 +209,26 @@
"setenv fdtfile am57xx-beagle-x15-revc.dtb; fi;" \
"if test $board_name = am5729_beagleboneai; then " \
"setenv fdtfile am5729-beagleboneai.dtb; fi;" \
"if test $board_name = am572x_idk; then " \
"if test $board_name = am572x_idk && test $idk_lcd = no; then " \
"setenv fdtfile am572x-idk.dtb; fi;" \
"if test $board_name = am574x_idk; then " \
"if test $board_name = am572x_idk && test $idk_lcd = osd101t2045; then " \
"setenv fdtfile am572x-idk-lcd-osd101t2045.dtb; fi;" \
"if test $board_name = am572x_idk && test $idk_lcd = osd101t2587; then " \
"setenv fdtfile am572x-idk-lcd-osd101t2587.dtb; fi;" \
"if test $board_name = am574x_idk && test $idk_lcd = no; then " \
"setenv fdtfile am574x-idk.dtb; fi;" \
"if test $board_name = am574x_idk && test $idk_lcd = osd101t2587; then " \
"setenv fdtfile am574x-idk-lcd-osd101t2587.dtb; fi;" \
"if test $board_name = am57xx_evm; then " \
"setenv fdtfile am57xx-evm.dtb; fi;" \
"if test $board_name = am57xx_evm_reva3; then " \
"setenv fdtfile am57xx-evm-reva3.dtb; fi;" \
"if test $board_name = am571x_idk; then " \
"if test $board_name = am571x_idk && test $idk_lcd = no; then " \
"setenv fdtfile am571x-idk.dtb; fi;" \
"if test $board_name = am571x_idk && test $idk_lcd = osd101t2045; then " \
"setenv fdtfile am571x-idk-lcd-osd101t2045.dtb; fi;" \
"if test $board_name = am571x_idk && test $idk_lcd = osd101t2587; then " \
"setenv fdtfile am571x-idk-lcd-osd101t2587.dtb; fi;" \
"if test $fdtfile = undefined; then " \
"echo WARNING: Could not determine device tree to use; fi; \0"