Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dsunxi_nand.c708 u32 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config() local
714 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config()
716 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL) & ~NFC_RANDOM_SEED_MSK; in sunxi_nfc_randomizer_config()
717 writel(ecc_ctl | NFC_RANDOM_SEED(state), nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config()
776 u32 ecc_ctl; in sunxi_nfc_hw_ecc_enable() local
778 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_hw_ecc_enable()
779 ecc_ctl &= ~(NFC_ECC_MODE_MSK | NFC_ECC_PIPELINE | in sunxi_nfc_hw_ecc_enable()
781 ecc_ctl |= NFC_ECC_EN | NFC_ECC_MODE(data->mode) | NFC_ECC_EXCEPTION; in sunxi_nfc_hw_ecc_enable()
784 ecc_ctl |= NFC_ECC_BLOCK_512; in sunxi_nfc_hw_ecc_enable()
786 writel(ecc_ctl, nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_hw_ecc_enable()
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Dsunxi_nand.c616 u32 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config() local
622 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config()
624 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL) & ~NFC_RANDOM_SEED_MSK; in sunxi_nfc_randomizer_config()
625 writel(ecc_ctl | NFC_RANDOM_SEED(state), nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_randomizer_config()
681 u32 ecc_ctl; in sunxi_nfc_hw_ecc_enable() local
683 ecc_ctl = readl(nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_hw_ecc_enable()
684 ecc_ctl &= ~(NFC_ECC_MODE_MSK | NFC_ECC_PIPELINE | in sunxi_nfc_hw_ecc_enable()
686 ecc_ctl |= NFC_ECC_EN | NFC_ECC_MODE(data->mode) | NFC_ECC_EXCEPTION | in sunxi_nfc_hw_ecc_enable()
690 ecc_ctl |= NFC_ECC_BLOCK_512; in sunxi_nfc_hw_ecc_enable()
692 writel(ecc_ctl, nfc->regs + NFC_REG_ECC_CTL); in sunxi_nfc_hw_ecc_enable()