Commit 426af3848fdd383e0cb141142b3f0d9a7edb334e
Committed by
Tom Rini
1 parent
97f3a178b2
Exists in
v2017.01-smarct4x
and in
25 other branches
config: env: Set AM335x-ICEv2 board specific env
Populate the right dtb file and console for AM335x-ICEv2 board. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff
include/configs/am335x_evm.h
... | ... | @@ -91,6 +91,7 @@ |
91 | 91 | |
92 | 92 | #define CONFIG_BOOTCOMMAND \ |
93 | 93 | "run findfdt; " \ |
94 | + "run init_console; " \ | |
94 | 95 | "run envboot; " \ |
95 | 96 | "run distro_bootcmd" |
96 | 97 | |
97 | 98 | |
... | ... | @@ -169,8 +170,16 @@ |
169 | 170 | "setenv fdtfile am335x-evm.dtb; fi; " \ |
170 | 171 | "if test $board_name = A335X_SK; then " \ |
171 | 172 | "setenv fdtfile am335x-evmsk.dtb; fi; " \ |
173 | + "if test $board_name = A335_ICE; then " \ | |
174 | + "setenv fdtfile am335x-icev2.dtb; fi; " \ | |
172 | 175 | "if test $fdtfile = undefined; then " \ |
173 | 176 | "echo WARNING: Could not determine device tree to use; fi; \0" \ |
177 | + "init_console=" \ | |
178 | + "if test $board_name = A335_ICE; then "\ | |
179 | + "setenv console ttyO3,115200n8;" \ | |
180 | + "else " \ | |
181 | + "setenv console ttyO0,115200n8;" \ | |
182 | + "fi;\0" \ | |
174 | 183 | NANDARGS \ |
175 | 184 | NETARGS \ |
176 | 185 | DFUARGS \ |