summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormatwey.kornilov@gmail.com <matwey.kornilov@gmail.com>2014-12-27 22:10:44 +0300
committerTom Rini <trini@ti.com>2015-01-13 15:26:10 -0500
commit1ee9c6c0c0cbf515a3f975da11f6e032b4673532 (patch)
treefd92f72e17ebcb285bf107591a25d71bdc40f159 /include
parent403d70abd9dff451661e884e5b3c75fc611b2425 (diff)
downloadu-boot-imx-1ee9c6c0c0cbf515a3f975da11f6e032b4673532.zip
u-boot-imx-1ee9c6c0c0cbf515a3f975da11f6e032b4673532.tar.gz
u-boot-imx-1ee9c6c0c0cbf515a3f975da11f6e032b4673532.tar.bz2
pcm051: Add boot script support to pcm051
This patch adds boot script support to pcm051 Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/pcm051.h29
1 files changed, 18 insertions, 11 deletions
diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h
index 7d102a4..c0bb227 100644
--- a/include/configs/pcm051.h
+++ b/include/configs/pcm051.h
@@ -45,6 +45,9 @@
"root=${mmcroot} " \
"rootfstype=${mmcrootfstype}\0" \
"bootenv=uEnv.txt\0" \
+ "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
+ "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
+ "source ${loadaddr}\0" \
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"importbootenv=echo Importing environment from mmc ...; " \
"env import -t $loadaddr $filesize\0" \
@@ -65,17 +68,21 @@
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev}; if mmc rescan; then " \
"echo SD/MMC found on device ${mmcdev};" \
- "if run loadbootenv; then " \
- "echo Loaded environment from ${bootenv};" \
- "run importbootenv;" \
- "fi;" \
- "if test -n $uenvcmd; then " \
- "echo Running uenvcmd ...;" \
- "run uenvcmd;" \
- "fi;" \
- "if run loaduimage; then " \
- "run mmcboot;" \
- "fi;" \
+ "if run loadbootscript; then " \
+ "run bootscript;" \
+ "else " \
+ "if run loadbootenv; then " \
+ "echo Loaded environment from ${bootenv};" \
+ "run importbootenv;" \
+ "fi;" \
+ "if test -n $uenvcmd; then " \
+ "echo Running uenvcmd ...;" \
+ "run uenvcmd;" \
+ "fi;" \
+ "if run loaduimage; then " \
+ "run mmcboot;" \
+ "fi;" \
+ "fi ;" \
"fi;" \
/* Clock Defines */