]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/gateworks/gw_ventana/gw_ventana.c
imx: ventana: add mem_mb dynamic env var
[karo-tx-uboot.git] / board / gateworks / gw_ventana / gw_ventana.c
index 2906dccf466ff0d08b4f0e1353fe8b8e6068036e..307ffa583e2be440874fe3fdc32a79e01739058e 100644 (file)
@@ -1498,6 +1498,10 @@ int misc_init_r(void)
                /* board serial-number */
                sprintf(str, "%6d", info->serial);
                setenv("serial#", str);
+
+               /* memory MB */
+               sprintf(str, "%d", (int) (gd->ram_size >> 20));
+               setenv("mem_mb", str);
        }