Lines Matching refs:nand
875 struct nand_chip *nand; in fsl_ifc_chip_init() local
916 nand = &priv->chip; in fsl_ifc_chip_init()
917 mtd = nand_to_mtd(nand); in fsl_ifc_chip_init()
924 nand->write_buf = fsl_ifc_write_buf; in fsl_ifc_chip_init()
925 nand->read_buf = fsl_ifc_read_buf; in fsl_ifc_chip_init()
926 nand->select_chip = fsl_ifc_select_chip; in fsl_ifc_chip_init()
927 nand->cmdfunc = fsl_ifc_cmdfunc; in fsl_ifc_chip_init()
928 nand->waitfunc = fsl_ifc_wait; in fsl_ifc_chip_init()
931 nand->bbt_td = &bbt_main_descr; in fsl_ifc_chip_init()
932 nand->bbt_md = &bbt_mirror_descr; in fsl_ifc_chip_init()
935 nand->options = NAND_NO_SUBPAGE_WRITE; in fsl_ifc_chip_init()
936 nand->bbt_options = NAND_BBT_USE_FLASH; in fsl_ifc_chip_init()
939 nand->read_byte = fsl_ifc_read_byte16; in fsl_ifc_chip_init()
940 nand->options |= NAND_BUSWIDTH_16; in fsl_ifc_chip_init()
942 nand->read_byte = fsl_ifc_read_byte; in fsl_ifc_chip_init()
945 nand->controller = &ifc_ctrl->controller; in fsl_ifc_chip_init()
946 nand_set_controller_data(nand, priv); in fsl_ifc_chip_init()
948 nand->ecc.read_page = fsl_ifc_read_page; in fsl_ifc_chip_init()
949 nand->ecc.write_page = fsl_ifc_write_page; in fsl_ifc_chip_init()
952 nand->ecc.size = 512; in fsl_ifc_chip_init()
953 nand->ecc.bytes = 8; in fsl_ifc_chip_init()
957 if (nand->options & NAND_BUSWIDTH_16) { in fsl_ifc_chip_init()
967 nand->ecc.strength = 4; in fsl_ifc_chip_init()
973 nand->ecc.strength = 4; in fsl_ifc_chip_init()
981 nand->ecc.strength = 4; in fsl_ifc_chip_init()
984 nand->ecc.strength = 8; in fsl_ifc_chip_init()
985 nand->ecc.bytes = 16; in fsl_ifc_chip_init()
995 nand->ecc.strength = 4; in fsl_ifc_chip_init()
998 nand->ecc.strength = 8; in fsl_ifc_chip_init()
999 nand->ecc.bytes = 16; in fsl_ifc_chip_init()
1013 nand->ecc.mode = NAND_ECC_HW; in fsl_ifc_chip_init()
1014 nand->ecc.layout = layout; in fsl_ifc_chip_init()
1016 nand->ecc.mode = NAND_ECC_SOFT; in fsl_ifc_chip_init()