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

2010-03-22 Thread Nikolay Petukhov
2010/3/19 Scott Wood : > 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 >> +              * NAN

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

2010-03-19 Thread Scott Wood
On Fri, Mar 19, 2010 at 10:49:27AM +0500, Nikolay Petukhov wrote: > 2010/3/19 Scott Wood : > > Is the second RNDOUT OK on small page NAND? > > > > I have NAND chip with 2K page size. > NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB > 3,3V 8-bit) > > Here, the positive resu

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

2010-03-18 Thread Scott Wood
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 >

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

2010-03-18 Thread Nikolay Petukhov
Hi, all. This is a patch to use the hardware ECC controller of the AT91SAM9260 for the AT91 nand. Taken from the kernel 2.6.33. To use this it is necessary to add two definitions in config: CONFIG_ATMEL_NAND_HWECC CONFIG_SYS_NAND_ECC_BASE (AT91_ECC for the AT91SAM9260 and AT91_ECC0 for the AT91SA