This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Static RAM timings on Assabet/Neponset


Am Don, 28 Jun 2001 schrieben Sie:
> schuehle@t-online.de (Stefan Eletzhofer) writes:
> > I am using an Assabet Dev Board with Neponset expansion board attached. I use
> > RedBoot to boot Linux, Kernel 2.4.5-rmk6-np1. I use a precompiled version of
> > Redboot, which works fine (TFTP over CF card etc.).
> > 
> > However, when the Kernel tries to detect the SA1111 companion Chip on the
> > extension board, it cannot correctly read the chip id. People on the
> > arm-kernel list have pointed me to the fact that static ram timings has
> > to be set correctly to detect/use the sa1111. Using the BLOB bootloader
> > the kernel was able to detect the sa1111, so my hardware is ok.
> > 
> > I searched a bit and found that in hal_platform_setup.h initialization of
> > static memory control is disabled. Why? How do i best enable/change this?
> > Or am I completely wrong here?
> 
> From my recollection of trying to get sense out of the Assabet's ethernet
> device I would say you're right.  I don't recall why these might have been
> disabled.
> 
> Best way would be to use a debugger to find out what values some working
> code (eg. your BLOB bootloader?) placed in those registers.  Then uncomment
> those lines with the values that you know are good and try it!
> 
> Let us know the patch, if it works?
> 
> 	- Huge
> 
> 
> > -----------[snip]--------------
> > // DRAM controller initialization        
> > dram_table:
> >         .word   SA11X0_DRAM0_CAS_0,           0xAAAAAA7F
> >         .word   SA11X0_DRAM0_CAS_1,           0xAAAAAAAA
> >         .word   SA11X0_DRAM0_CAS_2,           0xAAAAAAAA
> > //        .word   SA11X0_STATIC_CONTROL_0,      0x4B384B38
> > //        .word   SA11X0_STATIC_CONTROL_1,      0x22212419
> >         .word   SA11X0_EXP_BUS_CONFIGURATION, 0x994A994A
> >         .word   SA11X0_REFRESH_CONFIGURATION, 0x49FC0327
> >         .word   SA11X0_DRAM2_CAS_0,           0xAAAAAA7F
> >         .word   SA11X0_DRAM2_CAS_1,           0xAAAAAAAA
> >         .word   SA11X0_DRAM2_CAS_2,           0xAAAAAAAA
> > //        .word   SA11X0_STATIC_CONTROL_2,      0x42194449
> >         .word   SA11X0_SMROM_CONFIGURATION,   0xAFCCAFCC
> >         .word   SA11X0_DRAM_CONFIGURATION,    0x72547254        // Disabled
> >         .word   0, 0
> > --------[snap]--------------------

Thank you.
I have written a little program which prints the correct values used in bootldr
(They use quite some macros to specify the value), I'll try to patch RedBoot
and get this to work. Of course I'll post the patch if it works.

Stefan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]