[U-Boot] [PATH] at91: add hwecc method for nand

Scott Wood scottwood at freescale.com
Thu Mar 18 23:46:46 CET 2010


On Thu, Mar 18, 2010 at 11:55:29AM +0500, Nikolay Petukhov wrote:
> +	/* move to ECC position if needed */
> +	if (eccpos[0] != 0) {
> +		/* This only works on large pages
> +		 * because the ECC controller waits for
> +		 * NAND_CMD_RNDOUTSTART after the
> +		 * NAND_CMD_RNDOUT.
> +		 * anyway, for small pages, the eccpos[0] == 0
> +		 */
> +		chip->cmdfunc(mtd, NAND_CMD_RNDOUT,
> +				mtd->writesize + eccpos[0], -1);
> +	}
[snip]
> +	/* get back to oob start (end of page) */
> +	chip->cmdfunc(mtd, NAND_CMD_RNDOUT, mtd->writesize, -1);

Is the second RNDOUT OK on small page NAND?

> +	//struct atmel_nand_host *host = nand_chip->priv;

Just remove the line.

-Scott


More information about the U-Boot mailing list