Lines Matching refs:pmecc
39 struct pmecc_regs __iomem *pmecc; member
169 value = pmecc_readl(host->pmecc, rem_port[sector].rem[i / 2]); in pmecc_gen_syndrome()
538 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_RST); in atmel_nand_pmecc_read_page()
539 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_DISABLE); in atmel_nand_pmecc_read_page()
540 pmecc_writel(host->pmecc, cfg, ((pmecc_readl(host->pmecc, cfg)) in atmel_nand_pmecc_read_page()
543 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_ENABLE); in atmel_nand_pmecc_read_page()
544 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_DATA); in atmel_nand_pmecc_read_page()
550 if (!(pmecc_readl(host->pmecc, sr) & PMECC_SR_BUSY)) in atmel_nand_pmecc_read_page()
561 stat = pmecc_readl(host->pmecc, isr); in atmel_nand_pmecc_read_page()
578 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_RST); in atmel_nand_pmecc_write_page()
579 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_DISABLE); in atmel_nand_pmecc_write_page()
581 pmecc_writel(host->pmecc, cfg, (pmecc_readl(host->pmecc, cfg) | in atmel_nand_pmecc_write_page()
584 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_ENABLE); in atmel_nand_pmecc_write_page()
585 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_DATA); in atmel_nand_pmecc_write_page()
590 if (!(pmecc_readl(host->pmecc, sr) & PMECC_SR_BUSY)) in atmel_nand_pmecc_write_page()
607 pmecc_readb(host->pmecc, ecc_port[i].ecc[j]); in atmel_nand_pmecc_write_page()
622 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_RST); in atmel_pmecc_core_init()
623 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_DISABLE); in atmel_pmecc_core_init()
668 pmecc_writel(host->pmecc, cfg, val); in atmel_pmecc_core_init()
671 pmecc_writel(host->pmecc, sarea, mtd->oobsize - 1); in atmel_pmecc_core_init()
672 pmecc_writel(host->pmecc, saddr, ecc_layout->eccpos[0]); in atmel_pmecc_core_init()
673 pmecc_writel(host->pmecc, eaddr, in atmel_pmecc_core_init()
676 pmecc_writel(host->pmecc, clk, PMECC_CLK_133MHZ); in atmel_pmecc_core_init()
677 pmecc_writel(host->pmecc, idr, 0xff); in atmel_pmecc_core_init()
678 pmecc_writel(host->pmecc, ctrl, PMECC_CTRL_ENABLE); in atmel_pmecc_core_init()
868 host->pmecc = (struct pmecc_regs __iomem *) ATMEL_BASE_PMECC; in atmel_pmecc_nand_init_params()