Lines Matching refs:nand

57 	const u32 *nand = chip->IO_ADDR_R;  in nand_davinci_read_buf()  local
63 *buf = readb(nand); in nand_davinci_read_buf()
71 *(u16 *)buf = readw(nand); in nand_davinci_read_buf()
80 *(u32 *)buf = __raw_readl(nand); in nand_davinci_read_buf()
88 *(u16 *)buf = readw(nand); in nand_davinci_read_buf()
94 *buf = readb(nand); in nand_davinci_read_buf()
102 const u32 *nand = chip->IO_ADDR_W; in nand_davinci_write_buf() local
108 writeb(*buf, nand); in nand_davinci_write_buf()
116 writew(*(u16 *)buf, nand); in nand_davinci_write_buf()
125 __raw_writel(*(u32 *)buf, nand); in nand_davinci_write_buf()
133 writew(*(u16 *)buf, nand); in nand_davinci_write_buf()
139 writeb(*buf, nand); in nand_davinci_write_buf()
770 void davinci_nand_init(struct nand_chip *nand) in davinci_nand_init() argument
782 nand->write_page = nand_davinci_write_page; in davinci_nand_init()
783 nand->ecc.read_page = nand_davinci_read_page_hwecc; in davinci_nand_init()
785 nand->chip_delay = 0; in davinci_nand_init()
787 nand->bbt_options |= NAND_BBT_USE_FLASH; in davinci_nand_init()
790 nand->options |= NAND_NO_SUBPAGE_WRITE; in davinci_nand_init()
793 nand->options |= NAND_BUSWIDTH_16; in davinci_nand_init()
796 nand->ecc.mode = NAND_ECC_HW; in davinci_nand_init()
797 nand->ecc.size = 512; in davinci_nand_init()
798 nand->ecc.bytes = 3; in davinci_nand_init()
799 nand->ecc.strength = 1; in davinci_nand_init()
800 nand->ecc.calculate = nand_davinci_calculate_ecc; in davinci_nand_init()
801 nand->ecc.correct = nand_davinci_correct_data; in davinci_nand_init()
802 nand->ecc.hwctl = nand_davinci_enable_hwecc; in davinci_nand_init()
804 nand->ecc.mode = NAND_ECC_SOFT; in davinci_nand_init()
807 nand->ecc.mode = NAND_ECC_HW_OOB_FIRST; in davinci_nand_init()
808 nand->ecc.size = 512; in davinci_nand_init()
809 nand->ecc.bytes = 10; in davinci_nand_init()
810 nand->ecc.strength = 4; in davinci_nand_init()
811 nand->ecc.calculate = nand_davinci_4bit_calculate_ecc; in davinci_nand_init()
812 nand->ecc.correct = nand_davinci_4bit_correct_data; in davinci_nand_init()
813 nand->ecc.hwctl = nand_davinci_4bit_enable_hwecc; in davinci_nand_init()
814 nand->ecc.layout = &nand_davinci_4bit_layout_oobfirst; in davinci_nand_init()
817 nand->cmd_ctrl = nand_davinci_hwcontrol; in davinci_nand_init()
819 nand->read_buf = nand_davinci_read_buf; in davinci_nand_init()
820 nand->write_buf = nand_davinci_write_buf; in davinci_nand_init()
822 nand->dev_ready = nand_davinci_dev_ready; in davinci_nand_init()