From: Wolfgang Denk Date: Tue, 18 Aug 2009 23:17:30 +0200 Subject: [U-Boot] [PATCH v3] NAND: DaVinci:Adding 4 BIT ECC support In-Reply-To: <1250613233-3362-1-git-send-email-s-paulraj@ti.com> References: <1250613233-3362-1-git-send-email-s-paulraj@ti.com> Message-ID: <20090818211730.120EA833DBD2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear s-paulraj at ti.com, In message <1250613233-3362-1-git-send-email-s-paulraj@ti.com> you wrote: > From: Sandeep Paulraj > > This patch adds 4 BIT ECC support in the DaVinci NAND > driver. Tested on both the DM355 and DM365. > > V3 version of the patch resolves compilation warnings pointed to by > Scott Wood. These compilation warnings occur when 4 BIT ECC support > is not enabled Such commetns must go _below_ the "---" line. > Signed-off-by: Sandeep Paulraj > --- ^^^^^^^ This is where commetns belong. > For feature completeness this patch should be used along with > [PATCH v2] ARM: DaVinci DM355: Updating the DM355 EVM config > that i just sent to the mailing list > drivers/mtd/nand/davinci_nand.c | 283 +++++++++++++++++++++++++++++- > include/asm-arm/arch-davinci/emif_defs.h | 10 + > 2 files changed, 291 insertions(+), 2 deletions(-) ... > +static u32 nand_davinci_4bit_readecc(struct mtd_info *mtd, unsigned int ecc[4]) > +{ > + ecc[0] = emif_regs->NAND4BITECC1 & NAND_4BITECC_MASK; > + ecc[1] = emif_regs->NAND4BITECC2 & NAND_4BITECC_MASK; > + ecc[2] = emif_regs->NAND4BITECC3 & NAND_4BITECC_MASK; > + ecc[3] = emif_regs->NAND4BITECC4 & NAND_4BITECC_MASK; Please use I/O accessors. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Celestial navigation is based on the premise that the Earth is the center of the universe. The premise is wrong, but the navigation works. An incorrect model can be a useful tool. - Kelvin Throop III