aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSekhar Nori2017-04-06 14:52:55 +0530
committerTom Rini2017-04-08 21:32:50 -0400
commit6e8069616e43dc6d386e3793e6df422c109f1353 (patch)
tree8e0e2d4e12569ae85ba70ad56e26de3b65b64d72 /include
parent11b3156007e26b191b329385ce2873ec68696e34 (diff)
davinci: omapl138_lcdk: use environment variables for memory addresses
Use environment variables for various memory addresses used on OMAP-L138 LCDK board. This makes it easy to customize the boot process. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/omapl138_lcdk.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h
index eab80e30638..36bb27f2f5f 100644
--- a/include/configs/omapl138_lcdk.h
+++ b/include/configs/omapl138_lcdk.h
@@ -265,15 +265,21 @@
"if mmc rescan; then " \
"run mmcboot; "
"fi"
-#define CONFIG_EXTRA_ENV_SETTINGS \
+
+#define DEFAULT_LINUX_BOOT_ENV \
+ "loadaddr=0xc0700000\0" \
"fdtaddr=0xc0600000\0" \
+ "scriptaddr=0xc0600000\0"
+
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ DEFAULT_LINUX_BOOT_ENV \
"fdtfile=da850-lcdk.dtb\0" \
- "fdtboot=bootz 0xc0700000 - ${fdtaddr};\0" \
+ "fdtboot=bootz ${loadaddr} - ${fdtaddr};\0" \
"mmcboot=" \
- "if fatload mmc 0 0xc0600000 boot.scr; then " \
- "source 0xc0600000; " \
+ "if fatload mmc 0 ${scriptaddr} boot.scr; then " \
+ "source ${scriptaddr}; " \
"else " \
- "fatload mmc 0 0xc0700000 " \
+ "fatload mmc 0 ${loadaddr} " \
__stringify(CONFIG_BOOTFILE) "; " \
"fatload mmc 0 ${fdtaddr} ${fdtfile}; " \
"run fdtboot; " \