Lines Matching refs:nand_chip
173 struct nand_chip nand_chip; member
278 struct nand_chip *nand_chip = mtd->priv; in lpc32xx_nand_cmd_ctrl() local
279 struct lpc32xx_nand_host *host = nand_chip->priv; in lpc32xx_nand_cmd_ctrl()
294 struct nand_chip *nand_chip = mtd->priv; in lpc32xx_nand_device_ready() local
295 struct lpc32xx_nand_host *host = nand_chip->priv; in lpc32xx_nand_device_ready()
319 static int lpc32xx_waitfunc_nand(struct mtd_info *mtd, struct nand_chip *chip) in lpc32xx_waitfunc_nand()
339 struct nand_chip *chip) in lpc32xx_waitfunc_controller()
358 static int lpc32xx_waitfunc(struct mtd_info *mtd, struct nand_chip *chip) in lpc32xx_waitfunc()
392 struct nand_chip *chip = mtd->priv; in lpc32xx_xmit_dma()
431 static int lpc32xx_read_page(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_page()
497 struct nand_chip *chip, in lpc32xx_write_page_lowlevel()
543 static int lpc32xx_read_oob(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_read_oob()
554 static int lpc32xx_write_oob(struct mtd_info *mtd, struct nand_chip *chip, in lpc32xx_write_oob()
647 struct nand_chip *nand_chip; in lpc32xx_nand_probe() local
665 nand_chip = &host->nand_chip; in lpc32xx_nand_probe()
684 nand_chip->priv = host; /* link the private data structures */ in lpc32xx_nand_probe()
685 mtd->priv = nand_chip; in lpc32xx_nand_probe()
697 nand_chip->cmd_ctrl = lpc32xx_nand_cmd_ctrl; in lpc32xx_nand_probe()
698 nand_chip->dev_ready = lpc32xx_nand_device_ready; in lpc32xx_nand_probe()
699 nand_chip->chip_delay = 25; /* us */ in lpc32xx_nand_probe()
700 nand_chip->IO_ADDR_R = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
701 nand_chip->IO_ADDR_W = MLC_DATA(host->io_base); in lpc32xx_nand_probe()
709 nand_chip->ecc.hwctl = lpc32xx_ecc_enable; in lpc32xx_nand_probe()
710 nand_chip->ecc.read_page_raw = lpc32xx_read_page; in lpc32xx_nand_probe()
711 nand_chip->ecc.read_page = lpc32xx_read_page; in lpc32xx_nand_probe()
712 nand_chip->ecc.write_page_raw = lpc32xx_write_page_lowlevel; in lpc32xx_nand_probe()
713 nand_chip->ecc.write_page = lpc32xx_write_page_lowlevel; in lpc32xx_nand_probe()
714 nand_chip->ecc.write_oob = lpc32xx_write_oob; in lpc32xx_nand_probe()
715 nand_chip->ecc.read_oob = lpc32xx_read_oob; in lpc32xx_nand_probe()
716 nand_chip->ecc.strength = 4; in lpc32xx_nand_probe()
717 nand_chip->waitfunc = lpc32xx_waitfunc; in lpc32xx_nand_probe()
719 nand_chip->options = NAND_NO_SUBPAGE_WRITE; in lpc32xx_nand_probe()
720 nand_chip->bbt_options = NAND_BBT_USE_FLASH | NAND_BBT_NO_OOB; in lpc32xx_nand_probe()
721 nand_chip->bbt_td = &lpc32xx_nand_bbt; in lpc32xx_nand_probe()
722 nand_chip->bbt_md = &lpc32xx_nand_bbt_mirror; in lpc32xx_nand_probe()
753 nand_chip->ecc.mode = NAND_ECC_HW; in lpc32xx_nand_probe()
754 nand_chip->ecc.size = mtd->writesize; in lpc32xx_nand_probe()
755 nand_chip->ecc.layout = &lpc32xx_nand_oob; in lpc32xx_nand_probe()