public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] cm4008: set gd->ram_size in dram_init
@ 2012-07-04 13:08 Yann Vernier
  2012-07-05 10:02 ` Andreas Bießmann
  0 siblings, 1 reply; 4+ messages in thread
From: Yann Vernier @ 2012-07-04 13:08 UTC (permalink / raw)
  To: u-boot

Leave dram_init_banksize to set up the bank info data.
ram_size was previously uninitialized.

Signed-off-by: Yann Vernier <yann.vernier@orsoc.se>
---
 board/cm4008/cm4008.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/cm4008/cm4008.c b/board/cm4008/cm4008.c
index ed493a8..557cd8e 100644
--- a/board/cm4008/cm4008.c
+++ b/board/cm4008/cm4008.c
@@ -97,8 +97,7 @@ int board_init (void)
 
 int dram_init (void)
 {
-	gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-	gd->bd->bi_dram[0].size  = PHYS_SDRAM_1_SIZE;
+	gd->ram_size  = PHYS_SDRAM_1_SIZE;
 
 	return (0);
 }
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-05 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-04 13:08 [U-Boot] [PATCH 1/3] cm4008: set gd->ram_size in dram_init Yann Vernier
2012-07-05 10:02 ` Andreas Bießmann
2012-07-05 12:11   ` [U-Boot] [PATCH v2] arm: cm4008, cm41xx: " Yann Vernier
2012-07-05 14:48     ` Andreas Bießmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox