]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
config: env: Set AM335x-ICEv2 board specific env
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 16 May 2016 06:17:27 +0000 (11:47 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:47:53 +0000 (15:47 -0400)
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>
include/configs/am335x_evm.h

index 7c7f197cab7f72201fd3c769a6affcdf37f215cf..ba4c215463f24b718619d8e78b62c81452d00617 100644 (file)
@@ -91,6 +91,7 @@
 
 #define CONFIG_BOOTCOMMAND \
        "run findfdt; " \
+       "run init_console; " \
        "run envboot; " \
        "run distro_bootcmd"
 
                        "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 \