Bug in AT91RM9200.h
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Guys,
A while ago I sent the following the the linux arm ML. I am sure this applies to U-Boot as well!
Quoted 8 lines
I just noticed the following:
in
incluse/asm-arm/mach-at91rm9200/AT91RM9200.h#define
AT91C_SMC2_DBW(0x1<< 13) // (SMC2) Data Bus Widthand
drivers/pcmcia/at91_cf.cuses code like
Quoted 8 lines
csr &= ~AT91C_SMC2_DBW;BUT:
According to the User Man the "DBW: Data Bus Width" field is _TWO_ bits. Thus it should be
#define
AT91C_SMC2_DBW(0x3<< 13) // (SMC2) Data Bus Width
So please apply this trivial.
* Fix define in AT91RM9200.h
Patch by Steven Scholz, 10 Oct 2005
--
Steven
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: at91rm9200.h.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20051010/b3f32431/attachment.txt
Ladies,
there's another wrong define in AT91RM9200.
According the (my) User Man the RWHOLD field of SMC_CSR0..SMC_CSR7 starts at bit 28. Thus
#define AT91C_SMC2_RWHOLD ((unsigned int) 0x7 << 29) /*
(SMC2) Read and Write Signal Hold Time */
is rubbish!
So please apply this trivial patch instead if my previous one:
* Fix defines AT91C_SMC2_DBW and AT91C_SMC2_RWHOLD in AT91RM9200.h Patch by Steven Scholz, 10 Oct 2005
(Machine generate header file - ha, ha!)
--
Steven
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: at91rm9200.h.patch
Url: http://lists.denx.de/pipermail/u-boot/attachments/20051010/e0933ea8/attachment.txt