Lines Matching refs:ndcr
342 u32 ndcr; member
548 u32 ndcr; in marvell_nfc_force_byte_access() local
559 ndcr = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_force_byte_access()
562 ndcr &= ~(NDCR_DWIDTH_M | NDCR_DWIDTH_C); in marvell_nfc_force_byte_access()
564 ndcr |= NDCR_DWIDTH_M | NDCR_DWIDTH_C; in marvell_nfc_force_byte_access()
566 writel_relaxed(ndcr, nfc->regs + NDCR); in marvell_nfc_force_byte_access()
610 u32 ndcr, val; in marvell_nfc_prepare_cmd() local
620 ndcr = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_prepare_cmd()
624 writel_relaxed(ndcr | NDCR_ND_RUN, nfc->regs + NDCR); in marvell_nfc_prepare_cmd()
776 writel_relaxed(ndcr_generic | marvell_nand->ndcr, nfc->regs + NDCR); in marvell_nfc_select_target()
819 u32 ndcr = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_enable_hw_ecc() local
821 if (!(ndcr & NDCR_ECC_EN)) { in marvell_nfc_enable_hw_ecc()
822 writel_relaxed(ndcr | NDCR_ECC_EN, nfc->regs + NDCR); in marvell_nfc_enable_hw_ecc()
836 u32 ndcr = readl_relaxed(nfc->regs + NDCR); in marvell_nfc_disable_hw_ecc() local
838 if (ndcr & NDCR_ECC_EN) { in marvell_nfc_disable_hw_ecc()
839 writel_relaxed(ndcr & ~NDCR_ECC_EN, nfc->regs + NDCR); in marvell_nfc_disable_hw_ecc()
2515 marvell_nand->ndcr = NDCR_PAGE_SZ(mtd->writesize); in marvell_nand_attach_chip()
2517 marvell_nand->ndcr |= NDCR_DWIDTH_M | NDCR_DWIDTH_C; in marvell_nand_attach_chip()
2527 marvell_nand->ndcr |= NDCR_RA_START; in marvell_nand_attach_chip()