Skip to contentSkip to conversation

Bug in AT91RM9200.h

U-Boot-Users Steven Scholz 1 participant 2 messages Oct 10, 2005 2 messages not in the archive

lore
Share & tools
lore

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]

#2 lore raw

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 Width

and drivers/pcmcia/at91_cf.c uses 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

#3 lore raw

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