Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mtd/nand/raw/
H A Ddavinci_nand.c256 unsigned short ecc10[8]; in nand_davinci_correct_4bit() local
270 ecc10[0] = (ecc16[0] >> 0) & 0x3ff; in nand_davinci_correct_4bit()
271 ecc10[1] = ((ecc16[0] >> 10) & 0x3f) | ((ecc16[1] << 6) & 0x3c0); in nand_davinci_correct_4bit()
272 ecc10[2] = (ecc16[1] >> 4) & 0x3ff; in nand_davinci_correct_4bit()
273 ecc10[3] = ((ecc16[1] >> 14) & 0x3) | ((ecc16[2] << 2) & 0x3fc); in nand_davinci_correct_4bit()
274 ecc10[4] = (ecc16[2] >> 8) | ((ecc16[3] << 8) & 0x300); in nand_davinci_correct_4bit()
275 ecc10[5] = (ecc16[3] >> 2) & 0x3ff; in nand_davinci_correct_4bit()
276 ecc10[6] = ((ecc16[3] >> 12) & 0xf) | ((ecc16[4] << 4) & 0x3f0); in nand_davinci_correct_4bit()
277 ecc10[7] = (ecc16[4] >> 6) & 0x3ff; in nand_davinci_correct_4bit()
281 davinci_nand_writel(info, NAND_4BIT_ECC_LOAD_OFFSET, ecc10[i]); in nand_davinci_correct_4bit()