From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 19 Feb 2013 20:27:23 +0100 Subject: [U-Boot] [PATCH 2/2] ARM: highbank: remove DRAM bank setup In-Reply-To: <1359085160-28675-2-git-send-email-robherring2@gmail.com> References: <1359085160-28675-1-git-send-email-robherring2@gmail.com> <1359085160-28675-2-git-send-email-robherring2@gmail.com> Message-ID: <20130219192723.75779200530@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Rob Herring, In message <1359085160-28675-2-git-send-email-robherring2@gmail.com> you wrote: > > The memory sizes in highbank dtb's are already correct, so remove the DRAM > bank setup so the memory node is not fixed up by u-boot. I think you do more here... > -void dram_init_banksize(void) > -{ > - gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE; > - gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; > -} ... > -#define CONFIG_NR_DRAM_BANKS 1 > +#define CONFIG_NR_DRAM_BANKS 0 I think this is a very bad idea, as you will now be no longer possible to get information about memory sizes from U-Boot. For exmaple, "bdinfo" will not print any reasonable value any more. Please don't do that! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Ever try. Ever fail. No matter. Try again. Fail again. Fail better. -- S. Beckett