diff mbox

[U-Boot,6/8] config: env: Set AM335x-ICEv2 board specific env

Message ID 1462871035-28255-7-git-send-email-lokeshvutla@ti.com
State Accepted
Commit 426af3848fdd383e0cb141142b3f0d9a7edb334e
Delegated to: Tom Rini
Headers show

Commit Message

Lokesh Vutla May 10, 2016, 9:03 a.m. UTC
Populate the right dtb file and console for AM335x-ICEv2 board.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 include/configs/am335x_evm.h | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Tom Rini May 13, 2016, 8:45 p.m. UTC | #1
On Tue, May 10, 2016 at 02:33:53PM +0530, Lokesh Vutla wrote:

> Populate the right dtb file and console for AM335x-ICEv2 board.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox

Patch

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 7c7f197..ba4c215 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -91,6 +91,7 @@ 
 
 #define CONFIG_BOOTCOMMAND \
 	"run findfdt; " \
+	"run init_console; " \
 	"run envboot; " \
 	"run distro_bootcmd"
 
@@ -169,8 +170,16 @@ 
 			"setenv fdtfile am335x-evm.dtb; fi; " \
 		"if test $board_name = A335X_SK; then " \
 			"setenv fdtfile am335x-evmsk.dtb; fi; " \
+		"if test $board_name = A335_ICE; then " \
+			"setenv fdtfile am335x-icev2.dtb; fi; " \
 		"if test $fdtfile = undefined; then " \
 			"echo WARNING: Could not determine device tree to use; fi; \0" \
+	"init_console=" \
+		"if test $board_name = A335_ICE; then "\
+			"setenv console ttyO3,115200n8;" \
+		"else " \
+			"setenv console ttyO0,115200n8;" \
+		"fi;\0" \
 	NANDARGS \
 	NETARGS \
 	DFUARGS \