summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-16 08:44:51 +0800
committerSimon Glass <sjg@chromium.org>2015-10-23 09:42:28 -0600
commit545dfd101400637219b7024ce0fc02728663380e (patch)
tree60e9b0327470b041080355a8345c6a62aead7891 /common
parent2419cd16a1357a6d0f394b4631ea07b4f9e85ac7 (diff)
downloadu-boot-imx-545dfd101400637219b7024ce0fc02728663380e.zip
u-boot-imx-545dfd101400637219b7024ce0fc02728663380e.tar.gz
u-boot-imx-545dfd101400637219b7024ce0fc02728663380e.tar.bz2
env: export fdt_blob to the environment variable
Export fdt_blob to the environment variable. So that we may use it to boot Linux. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index f8c1baa..0a4dfe4 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -446,6 +446,9 @@ static int initr_env(void)
env_relocate();
else
set_default_env(NULL);
+#ifdef CONFIG_OF_CONTROL
+ setenv_addr("fdtcontroladdr", gd->fdt_blob);
+#endif
/* Initialize from environment */
load_addr = getenv_ulong("loadaddr", 16, load_addr);