summaryrefslogtreecommitdiff
path: root/include/configs/am335x_evm.h
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2013-06-06 13:27:06 -0500
committerTom Rini <trini@ti.com>2013-06-18 10:43:29 -0400
commita71432151f9ca10ef235b96a083c3bdb1fbb97cb (patch)
treef15600e5cee280ab8f8b3b673d080df976e01e73 /include/configs/am335x_evm.h
parent7ea7f689cab5bf715255e22c31aeefb23259afe5 (diff)
downloadu-boot-imx-a71432151f9ca10ef235b96a083c3bdb1fbb97cb.zip
u-boot-imx-a71432151f9ca10ef235b96a083c3bdb1fbb97cb.tar.gz
u-boot-imx-a71432151f9ca10ef235b96a083c3bdb1fbb97cb.tar.bz2
arm: omap: Add check for fdtfile in the findfdt macro
In the omap4, omap5 and am335x common files add a check to ensure that the fdtfile is defined after the findfdt macro has run. If the file is not defined then warn the user that the dtb file is not defined. Signed-off-by: Dan Murphy <dmurphy@ti.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/configs/am335x_evm.h')
-rw-r--r--include/configs/am335x_evm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index b286ffc..7cc3ef2 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -60,7 +60,7 @@
"rdaddr=0x81000000\0" \
"bootdir=/boot\0" \
"bootfile=uImage\0" \
- "fdtfile=\0" \
+ "fdtfile=undefined\0" \
"console=ttyO0,115200n8\0" \
"optargs=\0" \
"mtdids=" MTDIDS_DEFAULT "\0" \
@@ -145,8 +145,9 @@
"if test $board_name = A33515BB; then " \
"setenv fdtfile am335x-evm.dtb; fi; " \
"if test $board_name = A335X_SK; then " \
- "setenv fdtfile am335x-evmsk.dtb; fi\0" \
-
+ "setenv fdtfile am335x-evmsk.dtb; fi " \
+ "if test $fdtfile = undefined; then " \
+ "echo WARNING: Could not determine device tree to use; fi; \0"
#endif
#define CONFIG_BOOTCOMMAND \