[U-Boot-Users] Re: Some puzzles on dram_size()

SAM SONG samsongshu at yahoo.com.cn
Thu Jan 8 16:56:31 CET 2004


Hi,Chris,

Chris you wrote:
> Did you remember to change the AM bits in the OR?
> If you want to test 128MB the memory controller must
> be given 128MB for the SDRAM chip select.

Sorry for neglecting the key point.When I added
it,u-boot worked fine.Thanks for your hints.
 
> Most board specific files include/configs/<board>.h
> have a line like:
> #define CFG_OR1_PRELIM   (CFG_PRELIM_OR_AM |
> CFG_OR_TIMING_SDRAM )
> 
> Maybe it should be changed to
> #define CFG_OR_AM_SDRAM  (- (SDRAM_MAX_SIZE &
> 0xffff8000))
> #define CFG_OR1_PRELIM   (CFG_OR_AM_SDRAM |
> CFG_OR_TIMING_SDRAM )

Yeah,I tested it.It did work well when I set
SDRAM_MAX_SIZE bigger than or same as actual RAM size.

Thanks for your notes again!

Best regards,

Sam


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the U-Boot mailing list