From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Mon, 07 Jul 2008 12:27:33 +0200 Subject: [U-Boot-Users] [PATCH 04/10] [ARM] TQMA31: add new board with i.MX31 processor In-Reply-To: <20080704145007.12049.51458.stgit@tq-sewsrv-4.tq-net.de> (Jens Gehrlein's message of "Fri, 04 Jul 2008 16:50:07 +0200") References: <20080704144552.12049.55374.stgit@tq-sewsrv-4.tq-net.de> <20080704145007.12049.51458.stgit@tq-sewsrv-4.tq-net.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jens, > +int dram_init (void) > +{ > + gd->bd->bi_dram[0].start = PHYS_SDRAM_1; > + gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; > + > + return 0; > +} Can't you use autodetection code like we do on many (hopefully most) PowerPC boards? Cheers Detlev -- If we knew what it was we were doing, we wouldn't call it research. -- Einstein -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de