Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-09 Thread Stefan Agner
On 2015-03-09 10:58, Sascha Hauer wrote: > On Fri, Mar 06, 2015 at 02:31:51PM +0100, Stefan Agner wrote: >> On 2015-03-06 07:15, Sascha Hauer wrote: >> > Hi Stefan, >> > >> > On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: >> >> + >> >> +static int vf610_nfc_probe_dt(struct device

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-09 Thread Sascha Hauer
On Fri, Mar 06, 2015 at 02:31:51PM +0100, Stefan Agner wrote: > On 2015-03-06 07:15, Sascha Hauer wrote: > > Hi Stefan, > > > > On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: > >> + > >> +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config > >> *cfg) > >> +{

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-09 Thread Stefan Agner
On 2015-03-06 16:32, Bill Pringlemeir wrote: > On 6 Mar 2015, ste...@agner.ch wrote: > >> On 2015-03-06 07:15, Sascha Hauer wrote: >>> Hi Stefan, > >>> On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: + +static int vf610_nfc_probe_dt(struct device *dev, struct

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-09 Thread Stefan Agner
On 2015-03-09 10:58, Sascha Hauer wrote: On Fri, Mar 06, 2015 at 02:31:51PM +0100, Stefan Agner wrote: On 2015-03-06 07:15, Sascha Hauer wrote: Hi Stefan, On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: + +static int vf610_nfc_probe_dt(struct device *dev, struct

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-09 Thread Stefan Agner
On 2015-03-06 16:32, Bill Pringlemeir wrote: On 6 Mar 2015, ste...@agner.ch wrote: On 2015-03-06 07:15, Sascha Hauer wrote: Hi Stefan, On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: + +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config *cfg) +{ +

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-09 Thread Sascha Hauer
On Fri, Mar 06, 2015 at 02:31:51PM +0100, Stefan Agner wrote: On 2015-03-06 07:15, Sascha Hauer wrote: Hi Stefan, On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: + +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config *cfg) +{ + struct

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-06 Thread Bill Pringlemeir
On 6 Mar 2015, ste...@agner.ch wrote: > On 2015-03-06 07:15, Sascha Hauer wrote: >> Hi Stefan, >> On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: >>> + >>> +static int vf610_nfc_probe_dt(struct device *dev, struct >>> vf610_nfc_config *cfg) >>> +{ >>> + struct device_node *np =

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-06 Thread Stefan Agner
On 2015-03-06 07:15, Sascha Hauer wrote: > Hi Stefan, > > On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: >> + >> +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config >> *cfg) >> +{ >> +struct device_node *np = dev->of_node; >> +int buswidth; >> +

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-06 Thread Stefan Agner
On 2015-03-06 07:15, Sascha Hauer wrote: Hi Stefan, On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: + +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config *cfg) +{ +struct device_node *np = dev-of_node; +int buswidth; +u32 clkrate; + +

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-06 Thread Bill Pringlemeir
On 6 Mar 2015, ste...@agner.ch wrote: On 2015-03-06 07:15, Sascha Hauer wrote: Hi Stefan, On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: + +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config *cfg) +{ + struct device_node *np = dev-of_node; +

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-05 Thread Sascha Hauer
Hi Stefan, On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: > + > +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config > *cfg) > +{ > + struct device_node *np = dev->of_node; > + int buswidth; > + u32 clkrate; > + > + if (!np) > +

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-05 Thread Shawn Guo
On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: > This driver supports Freescale NFC (NAND flash controller) found on > Vybrid (VF610), MPC5125, MCF54418 and Kinetis K70. > > Limitations: > - DMA and pipelining not used > - Pages larger than 2k are not supported > - No hardware ECC

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-05 Thread Paul Bolle
On Thu, 2015-03-05 at 00:10 +0100, Stefan Agner wrote: > --- /dev/null > +++ b/drivers/mtd/nand/vf610_nfc.c > @@ -0,0 +1,730 @@ > + * This is free software; you can redistribute it and/or modify it > + * under the terms of the GNU General Public License as published by > + * the Free Software

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-05 Thread Paul Bolle
On Thu, 2015-03-05 at 00:10 +0100, Stefan Agner wrote: --- /dev/null +++ b/drivers/mtd/nand/vf610_nfc.c @@ -0,0 +1,730 @@ + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-05 Thread Sascha Hauer
Hi Stefan, On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: + +static int vf610_nfc_probe_dt(struct device *dev, struct vf610_nfc_config *cfg) +{ + struct device_node *np = dev-of_node; + int buswidth; + u32 clkrate; + + if (!np) + return 1; +

Re: [PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-05 Thread Shawn Guo
On Thu, Mar 05, 2015 at 12:10:20AM +0100, Stefan Agner wrote: This driver supports Freescale NFC (NAND flash controller) found on Vybrid (VF610), MPC5125, MCF54418 and Kinetis K70. Limitations: - DMA and pipelining not used - Pages larger than 2k are not supported - No hardware ECC The

[PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-04 Thread Stefan Agner
This driver supports Freescale NFC (NAND flash controller) found on Vybrid (VF610), MPC5125, MCF54418 and Kinetis K70. Limitations: - DMA and pipelining not used - Pages larger than 2k are not supported - No hardware ECC The driver has only been tested on Vybrid (VF610). Signed-off-by: Bill

[PATCH 1/5] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-04 Thread Stefan Agner
This driver supports Freescale NFC (NAND flash controller) found on Vybrid (VF610), MPC5125, MCF54418 and Kinetis K70. Limitations: - DMA and pipelining not used - Pages larger than 2k are not supported - No hardware ECC The driver has only been tested on Vybrid (VF610). Signed-off-by: Bill