Re: [U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-24 Thread Albert ARIBAUD
Hi Scott, Le Mon, 23 Mar 2015 20:20:50 -0500, Scott Wood scottw...@freescale.com a écrit : On Mon, 2015-03-23 at 09:45 +0100, Albert ARIBAUD wrote: Bonjour Scott, Le Fri, 20 Mar 2015 17:41:11 -0500, Scott Wood scottw...@freescale.com a écrit : On Fri, 2015-03-20 at 10:35 +0100,

Re: [U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-23 Thread Albert ARIBAUD
Bonjour Scott, Le Fri, 20 Mar 2015 17:41:11 -0500, Scott Wood scottw...@freescale.com a écrit : On Fri, 2015-03-20 at 10:35 +0100, Albert ARIBAUD wrote: Hi Scott, Le Thu, 19 Mar 2015 16:39:42 -0500, Scott Wood scottw...@freescale.com a écrit : On Wed, 2015-03-18 at 10:04 +0100,

Re: [U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-23 Thread Scott Wood
On Mon, 2015-03-23 at 09:45 +0100, Albert ARIBAUD wrote: Bonjour Scott, Le Fri, 20 Mar 2015 17:41:11 -0500, Scott Wood scottw...@freescale.com a écrit : On Fri, 2015-03-20 at 10:35 +0100, Albert ARIBAUD wrote: BTW, is there a standard way to ask a NAND chip which page(s) in a bad

Re: [U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-20 Thread Albert ARIBAUD
Hi Scott, Le Thu, 19 Mar 2015 16:39:42 -0500, Scott Wood scottw...@freescale.com a écrit : On Wed, 2015-03-18 at 10:04 +0100, Albert ARIBAUD (3ADEV) wrote: +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst) +{ + int block_good; bool? + struct lpc32xx_oob oob;

Re: [U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-20 Thread Scott Wood
On Fri, 2015-03-20 at 10:35 +0100, Albert ARIBAUD wrote: Hi Scott, Le Thu, 19 Mar 2015 16:39:42 -0500, Scott Wood scottw...@freescale.com a écrit : On Wed, 2015-03-18 at 10:04 +0100, Albert ARIBAUD (3ADEV) wrote: +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst)

Re: [U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-19 Thread Scott Wood
On Wed, 2015-03-18 at 10:04 +0100, Albert ARIBAUD (3ADEV) wrote: +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst) +{ + int block_good; bool? + struct lpc32xx_oob oob; + unsigned int page, left; + + /* if starting mid-block consider block good */ +

[U-Boot] [PATCH v6 2/8] lpc32xx: mtd: nand: add MLC NAND controller

2015-03-18 Thread Albert ARIBAUD (3ADEV)
The controller's Reed-Solomon ECC hardware is used except of course for raw reads and writes. It covers in- and out-of-band data together. The SPL framework is supported. Signed-off-by: Albert ARIBAUD (3ADEV) albert.arib...@3adev.fr --- Changes in v6: - rewrite timeout loops - fix bad block