Lines Matching refs:bch_regs
317 ret = mxs_wait_mask_set(&nand_info->bch_regs->hw_bch_ctrl_reg, in mxs_nand_wait_for_bch_complete()
320 writel(BCH_CTRL_COMPLETE_IRQ, &nand_info->bch_regs->hw_bch_ctrl_clr); in mxs_nand_wait_for_bch_complete()
668 struct mxs_bch_regs *bch_regs = nand_info->bch_regs; in mxs_nand_ecc_read_page() local
788 if (readl(&bch_regs->hw_bch_debug1)) in mxs_nand_ecc_read_page()
1150 struct mxs_bch_regs *bch_regs = nand_info->bch_regs; in mxs_nand_setup_ecc() local
1163 mxs_reset_block(&bch_regs->hw_bch_ctrl_reg); in mxs_nand_setup_ecc()
1172 writel(tmp, &bch_regs->hw_bch_flash0layout0); in mxs_nand_setup_ecc()
1181 writel(tmp, &bch_regs->hw_bch_flash0layout1); in mxs_nand_setup_ecc()
1188 &bch_regs->hw_bch_mode); in mxs_nand_setup_ecc()
1191 writel(0, &bch_regs->hw_bch_layoutselect); in mxs_nand_setup_ecc()
1194 writel(BCH_CTRL_COMPLETE_IRQ_EN, &bch_regs->hw_bch_ctrl_set); in mxs_nand_setup_ecc()
1284 mxs_reset_block(&info->bch_regs->hw_bch_ctrl_reg); in mxs_nand_init_dma()
1323 nand_info->bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE; in mxs_nand_init_spl()
1443 nand_info->bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE; in board_nand_init()
1470 struct mxs_bch_regs *bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE; in mxs_nand_get_layout() local
1473 tmp = readl(&bch_regs->hw_bch_flash0layout0); in mxs_nand_get_layout()
1479 tmp = readl(&bch_regs->hw_bch_flash0layout1); in mxs_nand_get_layout()
1498 struct mxs_bch_regs *bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE; in mxs_nand_mode_fcb_62bit() local
1516 writel(tmp, &bch_regs->hw_bch_flash0layout0); in mxs_nand_mode_fcb_62bit()
1525 writel(tmp, &bch_regs->hw_bch_flash0layout1); in mxs_nand_mode_fcb_62bit()
1534 struct mxs_bch_regs *bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE; in mxs_nand_mode_fcb_40bit() local
1553 writel(tmp, &bch_regs->hw_bch_flash0layout0); in mxs_nand_mode_fcb_40bit()
1562 writel(tmp, &bch_regs->hw_bch_flash0layout1); in mxs_nand_mode_fcb_40bit()
1570 struct mxs_bch_regs *bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE; in mxs_nand_mode_normal() local
1579 writel(nand_info->bch_flash0layout0, &bch_regs->hw_bch_flash0layout0); in mxs_nand_mode_normal()
1580 writel(nand_info->bch_flash0layout1, &bch_regs->hw_bch_flash0layout1); in mxs_nand_mode_normal()