Lines Matching refs:nand
14 #include <nand.h>
41 .compatible = "nvidia,tegra20-nand",
504 * @param chip nand chip info structure
656 * @param chip nand chip info structure
672 * @param chip nand chip info structure
688 * @param chip nand chip info structure
705 * @param chip nand chip info structure
720 * @param chip nand chip info structure
825 * @param chip nand chip info structure
840 * @param chip nand chip info structure
912 config->width = dev_read_u32_default(dev, "nvidia,nand-width", 8);
928 struct nand_chip *nand = &tegra->nand_chip;
935 printf("Could not decode nand-flash in device tree\n");
941 nand->ecc.mode = NAND_ECC_HW;
942 nand->ecc.layout = &eccoob;
944 nand->options = LP_OPTIONS;
945 nand->cmdfunc = nand_command;
946 nand->read_byte = read_byte;
947 nand->read_buf = read_buf;
948 nand->ecc.read_page = nand_read_page_hwecc;
949 nand->ecc.write_page = nand_write_page_hwecc;
950 nand->ecc.read_page_raw = nand_read_page_raw;
951 nand->ecc.write_page_raw = nand_write_page_raw;
952 nand->ecc.read_oob = nand_read_oob;
953 nand->ecc.write_oob = nand_write_oob;
954 nand->ecc.strength = 1;
955 nand->select_chip = nand_select_chip;
956 nand->dev_ready = nand_dev_ready;
957 nand_set_controller_data(nand, &tegra->nand_ctrl);
960 nand->options |= NAND_NO_SUBPAGE_WRITE;
970 our_mtd = nand_to_mtd(nand);
975 nand->ecc.size = our_mtd->writesize;
976 nand->ecc.bytes = our_mtd->oobsize;
992 .name = "tegra-nand",