Lines Matching refs:nand

660 	struct nand_chip *nand;  in fsl_elbc_chip_init()  local
699 nand = &priv->chip; in fsl_elbc_chip_init()
700 mtd = nand_to_mtd(nand); in fsl_elbc_chip_init()
706 nand->read_byte = fsl_elbc_read_byte; in fsl_elbc_chip_init()
707 nand->write_buf = fsl_elbc_write_buf; in fsl_elbc_chip_init()
708 nand->read_buf = fsl_elbc_read_buf; in fsl_elbc_chip_init()
709 nand->select_chip = fsl_elbc_select_chip; in fsl_elbc_chip_init()
710 nand->cmdfunc = fsl_elbc_cmdfunc; in fsl_elbc_chip_init()
711 nand->waitfunc = fsl_elbc_wait; in fsl_elbc_chip_init()
714 nand->bbt_td = &bbt_main_descr; in fsl_elbc_chip_init()
715 nand->bbt_md = &bbt_mirror_descr; in fsl_elbc_chip_init()
718 nand->options = NAND_NO_SUBPAGE_WRITE; in fsl_elbc_chip_init()
719 nand->bbt_options = NAND_BBT_USE_FLASH; in fsl_elbc_chip_init()
721 nand->controller = &elbc_ctrl->controller; in fsl_elbc_chip_init()
722 nand_set_controller_data(nand, priv); in fsl_elbc_chip_init()
724 nand->ecc.read_page = fsl_elbc_read_page; in fsl_elbc_chip_init()
725 nand->ecc.write_page = fsl_elbc_write_page; in fsl_elbc_chip_init()
726 nand->ecc.write_subpage = fsl_elbc_write_subpage; in fsl_elbc_chip_init()
732 nand->ecc.mode = NAND_ECC_HW; in fsl_elbc_chip_init()
734 nand->ecc.layout = (priv->fmr & FMR_ECCM) ? in fsl_elbc_chip_init()
738 nand->ecc.size = 512; in fsl_elbc_chip_init()
739 nand->ecc.bytes = 3; in fsl_elbc_chip_init()
740 nand->ecc.steps = 1; in fsl_elbc_chip_init()
741 nand->ecc.strength = 1; in fsl_elbc_chip_init()
745 nand->ecc.mode = NAND_ECC_SOFT_BCH; in fsl_elbc_chip_init()
747 nand->ecc.mode = NAND_ECC_SOFT; in fsl_elbc_chip_init()
762 nand->badblock_pattern = &largepage_memorybased; in fsl_elbc_chip_init()
773 nand->ecc.steps = 4; in fsl_elbc_chip_init()
774 nand->ecc.layout = (priv->fmr & FMR_ECCM) ? in fsl_elbc_chip_init()