Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-18 Thread Alessandro Rubini
>> So, with the current code base, you can't autodetect ram size on the >> atmel 926x. > > Argh. So this should be fixed. Yes. > Other architectures (like PPC) do all this in C. This should be > possible on ARM, too. Everything is possible. I fear it's not trivial to make a generic ARM

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-17 Thread Wolfgang Denk
Dear Alessandro Rubini, In message <20090716164143.ga9...@mail.gnudd.com> you wrote: > > 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 w

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-17 Thread Wolfgang Denk
Dear =?ISO-8859-1?Q?Eric_B=E9nard?=, In message <4a5f4f09.2090...@eukrea.com> you wrote: > > After checking the datasheet, I don't understand how we can change the > geometry of this SDRAM controler while running from SDRAM : each time we > increase the colum number, the address are modified th

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-16 Thread Eric Bénard
Hi Alessandro, Alessandro Rubini a écrit : > 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 c

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-16 Thread Alessandro Rubini
> 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.

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-16 Thread Eric Bénard
Dear Wolfgang, Wolfgang Denk a écrit : >> I'm not sure it's possible to use a generic geometry/timings there else >> u-boot may never relocate. >> How would you do this ? > > Well, normally you have 2 or 3 row/col combinations that have to be > considered; you try these in turn until you find on

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-16 Thread Wolfgang Denk
Dear =?ISO-8859-1?Q?Eric_B=E9nard?=, In message <4a5f20db.2000...@eukrea.com> you wrote: > > > How about using get_ram_size() for auto-sizing and testing? > > > the RAM needs to be properly initialized in low level before being able > to test it so its geometry (rom/columns) and timings must be

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-16 Thread Eric Bénard
Dear Wolfgang Denk, Wolfgang Denk a écrit : > In message <1247735589-15527-1-git-send-email-e...@eukrea.com> you wrote: >> CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR >> flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 >> Ethernet PHY in RMII mode. > .

Re: [U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

2009-07-16 Thread Wolfgang Denk
Dear Eric Benard, In message <1247735589-15527-1-git-send-email-e...@eukrea.com> you wrote: > CPUAT91 is built around Atmel's AT91SAM9260 and has up to 64MB of NOR > flash, up to 128MB of SDRAM, up to 2GB of NAND and includes a 10/100 > Ethernet PHY in RMII mode. ... > +int dram_init(void) > +{ >