From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 17 Jun 2013 19:08:44 -0500 Subject: [U-Boot] [PATCH v5 05/14] nand: add Faraday FTNANDC021 NAND controller support In-Reply-To: <1371470824-3228-6-git-send-email-dantesu@gmail.com> (from dantesu@gmail.com on Mon Jun 17 07:06:55 2013) Message-ID: <1371514124.9073.7@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/17/2013 07:06:55 AM, Kuo-Jung Su wrote: > diff --git a/README b/README > index ac1ec44..3dbb7cc 100644 > --- a/README > +++ b/README > @@ -3930,6 +3930,12 @@ Low Level (hardware related) configuration > options: > - drivers/mtd/nand/ndfc.c > - drivers/mtd/nand/mxc_nand.c > > +- CONFIG_SYS_FTNANDC021_TIMING > + This option specifies an array of customized timing > parameters > + for Faraday FTNANDC021 NAND flash controller. > + e.g. > + #define CONFIG_SYS_FTNANDC021_TIMING { 0x02240264, > 0x42054209 } But what does 0x02240264 mean? What does 0x42054209 mean? I wasn't looking for an example, but rather the name of the register you're going to use each array element to initialize. > + off = 0; > + while (off < len && priv->col < mtd->writesize) { > + ftnandc021_pio_wait(priv); > + *(uint32_t *)(buf + off) = readl(®s->dr); This looks like illegal type-punning. Use memcpy. Likewise elsewhere. -Scott