* MTD drivers and byte/word mode
@ 2002-09-02 17:17 Stephen Mose Aaskov
2002-09-02 17:17 ` Stephen Mose Aaskov
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Mose Aaskov @ 2002-09-02 17:17 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 833 bytes --]
I´m working on a 2.4 port to a design with FLASH devices connected through a 16 bit bus.
The FLASH (AMD) is set to word mode.
I have quite a hard time trying to understand the FLASH geometry settings and calculations of the addresses used for CFI query etc.
It looks as if the adresses calculated by cfi_build_cmd_addr() is the double of what my FLASH chips are using.
eg. the CFI query is written to 0xaa where my chip in word mode expects the query command to be written to 0x55
Is there any direct support in the MTD driver for differentiating between word/byte mode ?
The buswidth is set to 16 bits (=2), and interleave to 1 (I have two chips sharing the bus, not in parallel)
Stephen Mose Aaskov
Engineer, R&D
2M ELECTRONIC A/S
Malervej 10, DK-2630 Taastrup
Denmark
Tel: +45 43300555 Fax: +45 43300567
[-- Attachment #2: Type: text/html, Size: 1579 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* MTD drivers and byte/word mode
2002-09-02 17:17 Stephen Mose Aaskov
@ 2002-09-02 17:17 ` Stephen Mose Aaskov
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Mose Aaskov @ 2002-09-02 17:17 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 833 bytes --]
I´m working on a 2.4 port to a design with FLASH devices connected through a 16 bit bus.
The FLASH (AMD) is set to word mode.
I have quite a hard time trying to understand the FLASH geometry settings and calculations of the addresses used for CFI query etc.
It looks as if the adresses calculated by cfi_build_cmd_addr() is the double of what my FLASH chips are using.
eg. the CFI query is written to 0xaa where my chip in word mode expects the query command to be written to 0x55
Is there any direct support in the MTD driver for differentiating between word/byte mode ?
The buswidth is set to 16 bits (=2), and interleave to 1 (I have two chips sharing the bus, not in parallel)
Stephen Mose Aaskov
Engineer, R&D
2M ELECTRONIC A/S
Malervej 10, DK-2630 Taastrup
Denmark
Tel: +45 43300555 Fax: +45 43300567
[-- Attachment #2: Type: text/html, Size: 1579 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MTD drivers and byte/word mode
@ 2002-09-03 8:28 Jon Burgess
0 siblings, 0 replies; 3+ messages in thread
From: Jon Burgess @ 2002-09-03 8:28 UTC (permalink / raw)
To: Stephen Mose Aaskov; +Cc: linux-mips
> It looks as if the adresses calculated by
> cfi_build_cmd_addr() is the double of what my FLASH
> chips are using.
> eg. the CFI query is written to 0xaa where my chip
> in word mode expects the query command to be written
> to 0x55
We have just such a setup working in our product with a 16 bit AMD flash using
the CFI diver.
The 0xAA address as far as the programmer is concerned looks wrong, but the
flash chip is expecting addresses of 16bit data which are shifted 1 address line
from the address of 8 bit data. On our board the generic 8/16 bit bus address
lines are connected to the 16 bit flash as:
Bus A0 -> Unused
Bus A1 -> Flash A0,
Bus A2 -> Flash A1
etc,
When the CPU accesses addres 0xAA the flash will see 0x55.
Jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-03 8:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-03 8:28 MTD drivers and byte/word mode Jon Burgess
-- strict thread matches above, loose matches on Subject: below --
2002-09-02 17:17 Stephen Mose Aaskov
2002-09-02 17:17 ` Stephen Mose Aaskov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox