/* Check hardware register for wait status. Returns 1 if device is ready, 0 if it is still busy.  */
static int nand_davinci_dev_ready(struct mtd_info *mtd)
/* Check hardware register for wait status. Returns 1 if device is ready, 0 if it is still busy.  */
static int nand_davinci_dev_ready(struct mtd_info *mtd)
{
	struct davinci_nand_info *info = to_davinci_nand(mtd);
	return davinci_nand_readl(info, NANDFSR_OFFSET) & BIT(0);
}