summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2016-03-16 16:12:09 -0500
committerVishal Mahaveer2016-03-16 16:12:09 -0500
commit6780ba912b0d64592da34a54da21398f3817d200 (patch)
tree1a2e47a709074ed6098e2e31ea6e2bc3da3bc07e /fastboot.sh
parent3f8a835a363ccb7ab9f617cab894fc98c7ca9d26 (diff)
downloaddevice-ti-jacinto6evm-6780ba912b0d64592da34a54da21398f3817d200.tar.gz
device-ti-jacinto6evm-6780ba912b0d64592da34a54da21398f3817d200.tar.xz
device-ti-jacinto6evm-6780ba912b0d64592da34a54da21398f3817d200.zip
jacinto6evm: add option to flash osd panel
Use board revision to decide on which dtb to flash. Change-Id: If33594d54dd52c7b6e22843527d6ec1464ca8f17 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Diffstat (limited to 'fastboot.sh')
-rwxr-xr-xfastboot.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/fastboot.sh b/fastboot.sh
index 4c3320a..77449dd 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -63,6 +63,7 @@ fi
63#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'` 63#product=`${FASTBOOT} getvar product 2>&1 | grep product | awk '{print$2}'`
64cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'` 64cpu=`${FASTBOOT} getvar cpu 2>&1 | grep cpu | awk '{print$2}'`
65cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'` 65cputype=`${FASTBOOT} getvar secure 2>&1 | grep secure | awk '{print$2}'`
66boardrev=`${FASTBOOT} getvar board_rev 2>&1 | grep board_rev | awk '{print$2}'`
66 67
67 68
68# Make EMU = HS 69# Make EMU = HS
@@ -77,11 +78,19 @@ elif [ ${cputype} = "" ] || [ ${cputype} = "GP" ]; then
77 uboot="${PRODUCT_OUT}u-boot.img" 78 uboot="${PRODUCT_OUT}u-boot.img"
78fi 79fi
79 80
80# Based on cpu, decide the dtb to flash, default fall back to J6 81# Based on cpu, decide the dtb to flash, default fall back to J6 and LCD 10
81if [ ${cpu} = "J6ECO" ]; then 82if [ ${cpu} = "J6ECO" ]; then
82 environment="${PRODUCT_OUT}dra72-evm-lcd10.dtb" 83 if [ ${boardrev} = "C" ]; then
84 environment="${PRODUCT_OUT}dra72-evm-lcd-osd.dtb"
85 else
86 environment="${PRODUCT_OUT}dra72-evm-lcd10.dtb"
87 fi
83else 88else
84 environment="${PRODUCT_OUT}dra7-evm-lcd10.dtb" 89 if [ ${boardrev} = "H" ]; then
90 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb"
91 else
92 environment="${PRODUCT_OUT}dra7-evm-lcd10.dtb"
93 fi
85fi 94fi
86 95
87# Create the filename 96# Create the filename