summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2017-11-28 14:35:11 -0600
committerPraneeth Bajjuri2017-11-28 15:02:34 -0600
commit4a9d33d0c18c1a92480dfeac3fedece042378c9f (patch)
tree310baf5b16715e1eea5a84a025d58897de8be25d
parent24ce7cdbd5bfcfa0113e5c26351cef0936cd09cd (diff)
downloaddevice-ti-am57xevm-4a9d33d0c18c1a92480dfeac3fedece042378c9f.tar.gz
device-ti-am57xevm-4a9d33d0c18c1a92480dfeac3fedece042378c9f.tar.xz
device-ti-am57xevm-4a9d33d0c18c1a92480dfeac3fedece042378c9f.zip
am57xevm: fastboot.sh: update script based on new device names
device names has been changed in u-boot code now. This patch also introduces DRA76 device tree flashing capability Change-Id: I19bd427f6392a5f16231a360ca00cc5328955e29 Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rwxr-xr-xfastboot.sh33
1 files changed, 19 insertions, 14 deletions
diff --git a/fastboot.sh b/fastboot.sh
index 3b71e9f..f5a834f 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -79,30 +79,35 @@ elif [ ${cputype} = "" ] || [ ${cputype} = "GP" ]; then
79fi 79fi
80 80
81# Based on cpu, decide the dtb to flash, default fall back to J6 and LCD 10 81# Based on cpu, decide the dtb to flash, default fall back to J6 and LCD 10
82if [ ${cpu} = "J6ECO" ]; then 82
83if [ ${cpu} = "DRA722" ]; then
83 if [ ${boardrev} = "C" ]; then 84 if [ ${boardrev} = "C" ]; then
84 environment="${PRODUCT_OUT}dra72-evm-lcd-osd.dtb" 85 environment="${PRODUCT_OUT}dra72-evm-revc-lcd-osd101t2045.dtb"
86 elif [ ${boardrev} = "A" ]; then
87 environment="${PRODUCT_OUT}dra71-evm-lcd-auo-g101evn01.0.dtb"
85 elif [ ${boardrev} = "1.3A" ] || [ ${boardrev} = "1.3B" ]; then 88 elif [ ${boardrev} = "1.3A" ] || [ ${boardrev} = "1.3B" ]; then
86 environment="${PRODUCT_OUT}am571x-idk-lcd-osd101t2587.dtb" 89 environment="${PRODUCT_OUT}am571x-idk-lcd-osd101t2587.dtb"
87 else 90 else
88 environment="${PRODUCT_OUT}dra72-evm-lcd10.dtb" 91 environment="${PRODUCT_OUT}dra72-evm-lcd-lg.dtb"
89 fi 92 fi
90else 93elif [ ${cpu} = "DRA752" ]; then
91 if [ ${boardrev} = "H" ]; then 94 if [ ${boardrev} = "H" ]; then
92 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb" 95 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb"
93 else 96 elif [ ${boardrev} = "A.30" ]; then
94 environment="${PRODUCT_OUT}am57xx-evm-reva3.dtb" 97 environment="${PRODUCT_OUT}am57xx-evm-reva3.dtb"
98 else
99 environment="${PRODUCT_OUT}dra7-evm-lcd-lg.dtb"
95 fi 100 fi
96fi 101elif [ ${cpu} = "DRA762" ]; then
97 102 if [ ${boardrev} = "1.3A" ] || [ ${boardrev} = "1.3B" ]; then
98if [ ${cpu} = "J6" ]; then 103 environment="${PRODUCT_OUT}am574x-idk-lcd-osd101t2587.dtb"
99 if [ ${boardrev} = "A.30" ]; then 104 else
100 environment="${PRODUCT_OUT}am57xx-evm-reva3.dtb" 105 environment="${PRODUCT_OUT}dra76-evm.dtb"
101 elif [ ${boardrev} = "1.3A" ] || [ ${boardrev} = "1.3B" ]; then
102 environment="${PRODUCT_OUT}am572x-idk-lcd-osd101t2587.dtb"
103 elif [ ${boardrev} = "B.10" ]; then
104 environment="${PRODUCT_OUT}am57xx-beagle-x15-revb1.dtb"
105 fi 106 fi
107else
108 echo "CPU not detected, no matching dtb file found"
109 echo "flashing default dtb, Review and Reflash correct dtb"
110 environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb"
106fi 111fi
107 112
108# Create the filename 113# Create the filename