Lines Matching refs:fsmc_regs_p

20 static struct fsmc_regs *const fsmc_regs_p = (struct fsmc_regs *)  variable
180 writel(readl(&fsmc_regs_p->pc) | in fsmc_nand_hwcontrol()
181 FSMC_ENABLE, &fsmc_regs_p->pc); in fsmc_nand_hwcontrol()
183 writel(readl(&fsmc_regs_p->pc) & in fsmc_nand_hwcontrol()
184 ~FSMC_ENABLE, &fsmc_regs_p->pc); in fsmc_nand_hwcontrol()
201 num_err = (readl(&fsmc_regs_p->sts) >> 10) & 0xF; in fsmc_bch8_correct_data()
233 ecc1 = readl(&fsmc_regs_p->ecc1); in fsmc_bch8_correct_data()
234 ecc2 = readl(&fsmc_regs_p->ecc2); in fsmc_bch8_correct_data()
235 ecc3 = readl(&fsmc_regs_p->ecc3); in fsmc_bch8_correct_data()
236 ecc4 = readl(&fsmc_regs_p->sts); in fsmc_bch8_correct_data()
275 if (readl(&fsmc_regs_p->sts) & FSMC_CODE_RDY) in fsmc_read_hwecc()
279 ecc_tmp = readl(&fsmc_regs_p->ecc1); in fsmc_read_hwecc()
285 ecc_tmp = readl(&fsmc_regs_p->ecc2); in fsmc_read_hwecc()
291 ecc_tmp = readl(&fsmc_regs_p->ecc3); in fsmc_read_hwecc()
297 ecc_tmp = readl(&fsmc_regs_p->sts); in fsmc_read_hwecc()
302 ecc_tmp = readl(&fsmc_regs_p->ecc1); in fsmc_read_hwecc()
314 writel(readl(&fsmc_regs_p->pc) & ~FSMC_ECCPLEN_256, in fsmc_enable_hwecc()
315 &fsmc_regs_p->pc); in fsmc_enable_hwecc()
316 writel(readl(&fsmc_regs_p->pc) & ~FSMC_ECCEN, in fsmc_enable_hwecc()
317 &fsmc_regs_p->pc); in fsmc_enable_hwecc()
318 writel(readl(&fsmc_regs_p->pc) | FSMC_ECCEN, in fsmc_enable_hwecc()
319 &fsmc_regs_p->pc); in fsmc_enable_hwecc()
445 u32 peripid2 = readl(&fsmc_regs_p->peripid2); in fsmc_nand_init()
450 writel(readl(&fsmc_regs_p->ctrl) | FSMC_WP, &fsmc_regs_p->ctrl); in fsmc_nand_init()
454 &fsmc_regs_p->pc); in fsmc_nand_init()
457 &fsmc_regs_p->pc); in fsmc_nand_init()
461 writel(readl(&fsmc_regs_p->pc) | FSMC_TCLR_1 | FSMC_TAR_1, in fsmc_nand_init()
462 &fsmc_regs_p->pc); in fsmc_nand_init()
464 &fsmc_regs_p->comm); in fsmc_nand_init()
466 &fsmc_regs_p->attrib); in fsmc_nand_init()