address lines

David Woodhouse dwmw2 at infradead.org
Sat Nov 3 07:46:14 EDT 2007


On Sat, 2007-11-03 at 11:54 +0100, M8 (Servaes Joordens) wrote:
> I took a closer look at the bank-switching problem. The situation is:
> 
> - I have an 4Mb Flash chip MT28F320J3FS-11
> - A0-A19 are connected to the data-bus
> - A20 is connected to GPIO PF4
> 
> So the hardware probe detects 4MB flash in 1 chip and tries to access
> it 
> in a normal manner. How should I solve this? I got a patch from the 
> manufacturer of the hardware for the file cfi_cmdset_0001.c, but I do 
> wonder if that is the correct way to do it?

No, it isn't. The correct way to do it is a fairly trivial 'complex
mapping' driver, which ensures that the GPIO is set appropriately for
the high bit of the address, before each access. Didn't I already point
you to examples?

-- 
dwmw2




More information about the linux-mtd mailing list