[U-Boot] [PATCH] common/memsize.c: restore content of the base address

Wolfgang Denk wd at denx.de
Thu Dec 21 09:14:47 UTC 2017


Dear Patrick,

In message <94c2391ea4e943fb9f65e7b0943c9a96 at SFHDAG6NODE3.st.com> you wrote:
> 
> example for physical size limited to 128MB = bit 0 to 26 mapped to the memory, bit 27 used
> access to 0x0000000 => physical access to 0x00000000
> acesss to 0x7FFFFFFF => physical access to 0x7FFFFFFF
> access to 0x8000000 => physical access to 0x00000000 overlap detected here by the code !

Correct - this is the way how we detect the real memory size of
devices which can have miltiple configurations - the memory
controller gets programmed for maxium size, and then we run
get_ram_size() (eventually repeatedly for differept possible
row/column combinations).

> Ok, I will do it but only in background...
> I will propose a V2 and I will crosscheck with previously broken board if it is still the case.

Thanks a lot.  Please ping me (if needed PM or on jabber) if I
should not react.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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
KLB is an acronym for `Known Lazy Bastard', aka non-FAQ  reader,  aka
person  who  would  rather  make  someone  take their time to explain
something basic than look it up in a  FAQ.
         -- Tom Christiansen in <6aq547$mnr$2 at csnews.cs.colorado.edu>


More information about the U-Boot mailing list