Home
last modified time | relevance | path

Searched refs:ecc_ctl (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/mtd/nand/raw/
Dsunxi_nand.c714 u32 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config() local
720 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config()
722 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL) & ~NFC_RANDOM_SEED_MSK; in sunxi_nfc_randomizer_config()
723 writel(ecc_ctl | NFC_RANDOM_SEED(state), nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config()
782 u32 ecc_ctl; in sunxi_nfc_hw_ecc_enable() local
784 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_hw_ecc_enable()
785 ecc_ctl &= ~(NFC_ECC_MODE_MSK | NFC_ECC_PIPELINE | in sunxi_nfc_hw_ecc_enable()
787 ecc_ctl |= NFC_ECC_EN | NFC_ECC_MODE(data->mode) | NFC_ECC_EXCEPTION | in sunxi_nfc_hw_ecc_enable()
791 ecc_ctl |= NFC_ECC_BLOCK_512; in sunxi_nfc_hw_ecc_enable()
793 writel(ecc_ctl, nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_hw_ecc_enable()