[U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-07 Thread Mike Dunn
This patch adds a driver for the diskonchip G4 nand flash device. It is based on the driver from the linux kernel. This also includes a separate SPL driver. A separate SPL driver is used because the device operates in a different mode (reliable mode) when loading a boot image, and also because t

Re: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-07 Thread Marek Vasut
Dear Mike Dunn, > This patch adds a driver for the diskonchip G4 nand flash device. It is > based on the driver from the linux kernel. > > This also includes a separate SPL driver. A separate SPL driver is used > because the device operates in a different mode (reliable mode) when > loading a b

Re: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-08 Thread Mike Dunn
On 04/07/2013 11:25 PM, Marek Vasut wrote: [..] > Try #ifdef U_BOOT instead of #if 0, no? Marek, can you clarify? Do you mean something like... #define U_BOOT ... #ifndef U_BOOT /* Currently u-boot does not have for_each_set_bit */ unsigned long bits = ~buf[i];

Re: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-08 Thread Marek Vasut
Dear Mike Dunn, > On 04/07/2013 11:25 PM, Marek Vasut wrote: > [..] > > > Try #ifdef U_BOOT instead of #if 0, no? > > Marek, can you clarify? Do you mean something like... > > #define U_BOOT > ... > #ifndef U_BOOT /* Currently u-boot does not have for_each_set_bit */ > unsigned

Re: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-08 Thread Scott Wood
On 04/08/2013 01:25:01 AM, Marek Vasut wrote: Dear Mike Dunn, > This patch adds a driver for the diskonchip G4 nand flash device. It is > based on the driver from the linux kernel. > > This also includes a separate SPL driver. A separate SPL driver is used > because the device operates i

Re: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash

2013-04-09 Thread Mike Dunn
On 04/08/2013 05:59 PM, Scott Wood wrote: > On 04/08/2013 01:25:01 AM, Marek Vasut wrote: >> Dear Mike Dunn, >> >> > This patch adds a driver for the diskonchip G4 nand flash device. It is >> > based on the driver from the linux kernel. >> > >> > This also includes a separate SPL driver. A separa