Different nand interface
Charles Manning
manningc2 at actrix.gen.nz
Sat Oct 25 03:29:25 EDT 2003
On Friday 24 October 2003 10:33, Alice Hennessy wrote:
> Hi,
>
> I need some advice on how to support a board that has a hardware state
> machine
> that creates a parallel bus style interface to the NAND chip. It is
> totally
> different from the standard 8 IO signal controls. It can do write_byte
> and read_byte
> put requires the offset into the flash as a parameter. nand.c is
> fairly modular, allowing
> several functions to be coded in the hardware file but there is no
> current method of
> passing an offset into, say, read_byte and write_byte unless the
> nand_chip priv field
> can be used (via mtd->priv). Do you think the standard nand.c can be
> used in this
> case or should I create a specific one for this board?
>
> Any advice would be appreciated.
I would expect the existing nand.c can be used though you might have to do
some clever stuff to hide your flash behind it.
This is definitely the prefered way to get going in the beginning because it
will help comparmentalise things that inevitably go wrong when bringing up
new hardware.
Once your system is up and running you might find that you want to replace
nand.c for efficiency reasons or whatever, but quite likely this won't be
required (and at least you'll have a way better understanding of where you
need to go).
G'luck
-- CHarles
More information about the linux-mtd
mailing list