From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Thu, 16 Jul 2009 18:41:45 +0200 Subject: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC In-Reply-To: <4A5F4F09.2090406@eukrea.com> References: <4A5F4F09.2090406@eukrea.com> <1247735589-15527-1-git-send-email-eric@eukrea.com> <20090716122936.08360832E416@gemini.denx.de> <4A5F20DB.2000009@eukrea.com> <20090716142229.C66BC832E416@gemini.denx.de> Message-ID: <20090716164143.GA9954@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > I've tried something very close to what is done in tqm8xx but I don't > manage to get something reliable : either it hangs or I get data abort. > > After checking the datasheet, I don't understand how we can change the > geometry of this SDRAM controler while running from SDRAM No, you can't. That part must be done while you run from flash. Actually, this is done in cpu/arm926ejs/at91/lowlevel_init.S, in the table SMRDATA1. So, with the current code base, you can't autodetect ram size on the atmel 926x. I have the same problem, as I have boards that ship as either 64M or 128M. I'd configure for 128M and look for aliases, reconfiguring for 64M if needed. This can be done in lowlevel_init.S or by setting up a temporary C environment with sp in static RAM and doing it in C. In both cases, this doesn't fit the current code base and some refactoring would be needed to go mainline. /alessandro