Re: [U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-08-12 Thread Scott Wood
On Tue, Aug 11, 2009 at 02:32:54AM +0400, Ilya Yanok wrote: > Driver for NFC NAND controller found on Freescale's MX2 and MX3 > processors. Ported from Linux. Tested only with i.MX27 but should > works with other MX2 and MX3 processors too. > > Signed-off-by: Ilya Yanok Applied to u-boot-nand-fl

[U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-08-10 Thread Ilya Yanok
Driver for NFC NAND controller found on Freescale's MX2 and MX3 processors. Ported from Linux. Tested only with i.MX27 but should works with other MX2 and MX3 processors too. Signed-off-by: Ilya Yanok --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/mxc_nand.c | 880 ++

Re: [U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-08-04 Thread Scott Wood
On Mon, Aug 03, 2009 at 05:45:14AM +0400, Ilya Yanok wrote: > + if (this->options & NAND_BUSWIDTH_16) { > + void __iomem *main_buf = host->regs->main_area0; > + /* compress the ID info */ > + writeb(readb(main_buf + 2), main_buf + 1); > + writeb(r

Re: [U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-08-03 Thread Scott Wood
On Mon, Aug 03, 2009 at 06:01:03AM +0400, Ilya Yanok wrote: > >> + return; > >> + } > >> + > >> + if (chip == -1) { > >> + writew(readw(&host->regs->nfc_config1) & ~NFC_CE, > >> + &host->regs->nfc_config1); > >> + return; > >> + } > >> + > >> +

Re: [U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-08-02 Thread Ilya Yanok
Hi Scott, thanks for the review. Scott Wood wrote: >> +/* OOB placement block for use with hardware ecc generation */ >> +static struct nand_ecclayout nand_hw_eccoob = { >> +.eccbytes = 5, >> +.eccpos = {6, 7, 8, 9, 10}, >> +.oobfree = {{0, 5}, {11, 5}, } >> +}; >> + >> +#ifndef CONFI

[U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-08-02 Thread Ilya Yanok
Driver for NFC NAND controller found on Freescale's MX2 and MX3 processors. Ported from Linux. Tested only with i.MX27 but should works with other MX2 and MX3 processors too. Signed-off-by: Ilya Yanok --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/mxc_nand.c | 902 ++

Re: [U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-07-28 Thread Scott Wood
On Fri, Jul 17, 2009 at 02:53:55PM +0400, Ilya Yanok wrote: > +/* OOB placement block for use with hardware ecc generation */ > +static struct nand_ecclayout nand_hw_eccoob = { > + .eccbytes = 5, > + .eccpos = {6, 7, 8, 9, 10}, > + .oobfree = {{0, 5}, {11, 5}, } > +}; > + > +#ifndef CON

Re: [U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-07-22 Thread Jean-Christophe PLAGNIOL-VILLARD
On 14:53 Fri 17 Jul , Ilya Yanok wrote: > Driver for NFC NAND controller found on Freescale's MX2 and MX3 > processors. Ported from Linux. Tested only with i.MX27 but should > works with other MX2 and MX3 processors too. > > Signed-off-by: Ilya Yanok > --- > drivers/mtd/nand/Makefile |

[U-Boot] [PATCH] mxc_nand: add nand driver for MX2/MX3

2009-07-17 Thread Ilya Yanok
Driver for NFC NAND controller found on Freescale's MX2 and MX3 processors. Ported from Linux. Tested only with i.MX27 but should works with other MX2 and MX3 processors too. Signed-off-by: Ilya Yanok --- drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/mxc_nand.c | 902 ++