/* returns 0 if the nand is busy, 1 if it is ready  */
static int bf5xx_nand_devready(struct mtd_info *mtd)
/* returns 0 if the nand is busy, 1 if it is ready  */
static int bf5xx_nand_devready(struct mtd_info *mtd)
{
	unsigned short val = bfin_read_NFC_IRQSTAT();
	if ((val & NBUSYIRQ) == NBUSYIRQ)
		return 1;
	else
		return 0;
}