projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e369f
)
imx: ventana: add mem_mb dynamic env var
author
Tim Harvey
<tharvey@gateworks.com>
Wed, 8 Apr 2015 19:54:51 +0000
(12:54 -0700)
committer
Stefano Babic
<sbabic@denx.de>
Wed, 22 Apr 2015 12:39:10 +0000
(14:39 +0200)
Certain OS bootscripts need to know how much memory a board has to adjust
kernel parameters (namely Android). This allows those boards to determine
mem size in MB.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c
patch
|
blob
|
history
diff --git
a/board/gateworks/gw_ventana/gw_ventana.c
b/board/gateworks/gw_ventana/gw_ventana.c
index
2906dcc
..
307ffa5
100644
(file)
--- a/
board/gateworks/gw_ventana/gw_ventana.c
+++ b/
board/gateworks/gw_ventana/gw_ventana.c
@@
-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);
}