]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/cmd_fdt.c
karo: tx6: fix copy/paste error
[karo-tx-uboot.git] / common / cmd_fdt.c
index 48b3e7041576495665280e3c04e32fecafaccfcb..4c18962d853283b501729d0b36c6326548c00a1c 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/global_data.h>
 #include <libfdt.h>
 #include <fdt_support.h>
+#include <mapmem.h>
 #include <asm/io.h>
 
 #define MAX_LEVEL      32              /* how deeply nested we will go */
@@ -44,7 +45,7 @@ void set_working_fdt_addr(ulong addr)
 
        buf = map_sysmem(addr, 0);
        working_fdt = buf;
-       setenv_ulong("fdtaddr", addr);
+       setenv_hex("fdtaddr", addr);
 }
 
 /*