Skip to contentSkip to conversation

nitrogen6x: Fix RAM size variable

PATCH New Fabio Estevam 1 participant 3 messages Mar 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nitrogen6x: Fix RAM size variable

From: Fabio Estevam <[email protected]>

Fix the following build error:

nitrogen6x.c:89:17: error: 'CONFIG_DDR_MB' undeclared (first use in this function)
nitrogen6x.c:89:17: note: each undeclared identifier is reported only once for each function it appears in

---
 boards.cfg |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
boards.cfg +1 -1
index 02115bf..9fd4bd6 100644
@@ -260,7 +260,7 @@ nitrogen6dl2g                arm         armv7       nitrogen6x          boundar
 nitrogen6q                   arm         armv7       nitrogen6x          boundary       mx6		nitrogen6x:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q.cfg,MX6Q,DDR_MB=1024
 nitrogen6q2g                 arm         armv7       nitrogen6x          boundary       mx6		nitrogen6x:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6q2g.cfg,MX6Q,DDR_MB=2048
 nitrogen6s                   arm         armv7       nitrogen6x          boundary       mx6		nitrogen6x:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6s.cfg,MX6S,DDR_MB=512
-nitrogen6s1g                 arm         armv7       nitrogen6x          boundary       mx6		nitrogen6x:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6s1g.cfg,MX6S,SDRAM_MB=1024
+nitrogen6s1g                 arm         armv7       nitrogen6x          boundary       mx6		nitrogen6x:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6s1g.cfg,MX6S,DDR_MB=1024
 wandboard_dl		     arm	 armv7	     wandboard		 -		mx6 wandboard:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6dl.cfg,MX6DL,DDR_MB=1024
 wandboard_solo		     arm	 armv7	     wandboard		 -		mx6 wandboard:IMX_CONFIG=board/boundary/nitrogen6x/nitrogen6s.cfg,MX6S,DDR_MB=512
 cm_t35                       arm         armv7       cm_t35              -              omap3
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 nitrogen: Use unsigned long to specify the total RAM size

From: Fabio Estevam <[email protected]>>

When building for the nitrogen boards with 2GB the following warning happens:

nitrogen6x.c:89:38: warning: integer overflow in expression [-Woverflow]

2GB can not fit in 32-bits, so use ulong instead.

---
 board/boundary/nitrogen6x/nitrogen6x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/boundary/nitrogen6x/nitrogen6x.c +1 -1
index 0dbb6d2..e5634d8 100644
@@ -86,7 +86,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-	gd->ram_size = CONFIG_DDR_MB * 1024 * 1024;
+	gd->ram_size = (ulong)(CONFIG_DDR_MB * 1024 * 1024);
 
 	return 0;
 }
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 1/1 nitrogen6x: Fix RAM size variable

In reply to Fabio Estevam
Quoted 11 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Fix the following build error:

nitrogen6x.c:89:17: error: 'CONFIG_DDR_MB' undeclared (first use in this function)
nitrogen6x.c:89:17: note: each undeclared identifier is reported only once for each function it appears in

Sorry, please discard this one.

It contains the wandboard patches.

Will use the clean u-boot-imx and generate v2.