Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Boris Brezillon
Hi Michal, On Fri, 31 Jul 2015 16:25:00 +0200 Michal Suchanek hramr...@gmail.com wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33 +0200, Piotr Zierhoffer wrote: +int

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Hans de Goede
Hi, On 31-07-15 16:25, Michal Suchanek wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Michal Suchanek
On 31 July 2015 at 16:41, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Michal, On Fri, 31 Jul 2015 16:25:00 +0200 Michal Suchanek hramr...@gmail.com wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Scott Wood
On Fri, 2015-07-31 at 16:41 +0200, Boris Brezillon wrote: Hi Michal, On Fri, 31 Jul 2015 16:25:00 +0200 Michal Suchanek hramr...@gmail.com wrote: On 31 July 2015 at 11:24, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Hans de Goede
Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33 +0200, Piotr Zierhoffer wrote: +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dest) +{ + void *current_dest; + uint32_t count; + uint32_t current_count; + uint32_t ecc_errors = 0; + +

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-31 Thread Boris Brezillon
Hi Hans, On Fri, 31 Jul 2015 10:36:43 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 31-07-15 02:47, Scott Wood wrote: On Thu, 2015-07-23 at 14:33 +0200, Piotr Zierhoffer wrote: +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dest) +{ + void *current_dest;

Re: [U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-30 Thread Scott Wood
On Thu, 2015-07-23 at 14:33 +0200, Piotr Zierhoffer wrote: +int nand_spl_load_image(uint32_t offs, unsigned int size, void *dest) +{ + void *current_dest; + uint32_t count; + uint32_t current_count; + uint32_t ecc_errors = 0; + + memset(dest, 0x0, size); /* clean

[U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-23 Thread Piotr Zierhoffer
This driver adds NAND support to SPL. It was tested on Allwinner A20. Signed-off-by: Peter Gielda pgie...@antmicro.com Signed-off-by: Tomasz Gorochowik tgorocho...@antmicro.com Signed-off-by: Mateusz Holenko mhole...@antmicro.com Signed-off-by: Piotr Zierhoffer pzierhof...@antmicro.com