Re: address lines

David Woodhouse
2007-11-03T11:46:14Z

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