]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/fdt_support.c
karo: merge with Ka-Ro specific tree for secure boot support
[karo-tx-uboot.git] / common / fdt_support.c
index 8266bca7d6489a2ca8fb6f1015064184b137d2dd..897ace6295bf831e10bbe7c52820c43f105d6e15 100644 (file)
@@ -532,7 +532,8 @@ int fdt_shrink_to_minimum(void *blob)
        ret = fdt_add_mem_rsv(blob, (uintptr_t)blob, actualsize);
        if (ret < 0)
                return ret;
-
+       if (getenv("fdtsize"))
+               setenv_hex("fdtsize", actualsize);
        return actualsize;
 }
 
@@ -1085,7 +1086,7 @@ static u64 __of_translate_address(void *blob, int node_offset, const fdt32_t *in
                goto bail;
        bus = &of_busses[0];
 
-       /* Cound address cells & copy address locally */
+       /* Count address cells & copy address locally */
        bus->count_cells(blob, parent, &na, &ns);
        if (!OF_CHECK_COUNTS(na, ns)) {
                printf("%s: Bad cell count for %s\n", __FUNCTION__,