nand_wait

Name

nand_wait --  [DEFAULT] wait until the command is done

Synopsis

int nand_wait (struct mtd_info * mtd, struct nand_chip * this, int state);

Arguments

mtd

MTD device structure

this

NAND chip structure

state

state to select the max. timeout value

Description

Wait for command done. This applies to erase and program only Erase can take up to 400ms and program up to 20ms according to general NAND and SmartMedia specs