diff options
author | Praneeth Bajjuri | 2017-10-06 17:48:58 -0500 |
---|---|---|
committer | Vishal Mahaveer | 2017-10-25 15:57:54 -0500 |
commit | 4a1d08ad6f72b60f0421b036628477972b8d965b (patch) | |
tree | 7ed13932e9c01745e518079ee3f0d009c9becd90 | |
parent | 999477e26912e4909900f418bf61f98a24256420 (diff) | |
download | device-ti-jacinto6evm-4a1d08ad6f72b60f0421b036628477972b8d965b.tar.gz device-ti-jacinto6evm-4a1d08ad6f72b60f0421b036628477972b8d965b.tar.xz device-ti-jacinto6evm-4a1d08ad6f72b60f0421b036628477972b8d965b.zip |
jacinto6evm: 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-x | fastboot.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/fastboot.sh b/fastboot.sh index 352900f..20d61b4 100755 --- a/fastboot.sh +++ b/fastboot.sh | |||
@@ -79,7 +79,8 @@ elif [ ${cputype} = "" ] || [ ${cputype} = "GP" ]; then | |||
79 | fi | 79 | fi |
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 |
82 | if [ ${cpu} = "J6ECO" ]; then | 82 | |
83 | if [ ${cpu} = "DRA722" ]; then | ||
83 | if [ ${boardrev} = "C" ]; then | 84 | if [ ${boardrev} = "C" ]; then |
84 | environment="${PRODUCT_OUT}dra72-evm-revc-lcd-osd101t2045.dtb" | 85 | environment="${PRODUCT_OUT}dra72-evm-revc-lcd-osd101t2045.dtb" |
85 | elif [ ${boardrev} = "A" ]; then | 86 | elif [ ${boardrev} = "A" ]; then |
@@ -87,12 +88,20 @@ if [ ${cpu} = "J6ECO" ]; then | |||
87 | else | 88 | else |
88 | environment="${PRODUCT_OUT}dra72-evm-lcd-lg.dtb" | 89 | environment="${PRODUCT_OUT}dra72-evm-lcd-lg.dtb" |
89 | fi | 90 | fi |
90 | else | 91 | elif [ ${cpu} = "DRA752" ]; then |
91 | if [ ${boardrev} = "H" ]; then | 92 | if [ ${boardrev} = "H" ]; then |
92 | environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb" | 93 | environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb" |
93 | else | 94 | else |
94 | environment="${PRODUCT_OUT}dra7-evm-lcd-lg.dtb" | 95 | environment="${PRODUCT_OUT}dra7-evm-lcd-lg.dtb" |
95 | fi | 96 | fi |
97 | elif [ ${cpu} = "DRA762" ]; then | ||
98 | if [ ${boardrev} = "A" ]; then | ||
99 | environment="${PRODUCT_OUT}dra76-evm.dtb" | ||
100 | fi | ||
101 | else | ||
102 | echo "CPU not detected, no matching dtb file found" | ||
103 | echo "flashing default dtb, Review and Reflash correct dtb" | ||
104 | environment="${PRODUCT_OUT}dra7-evm-lcd-osd.dtb" | ||
96 | fi | 105 | fi |
97 | 106 | ||
98 | # Create the filename | 107 | # Create the filename |