[U-Boot] [PATCH v3] NAND: DaVinci:Adding 4 BIT ECC support

Wolfgang Denk wd at denx.de
Tue Aug 18 23:17:30 CEST 2009


Dear s-paulraj at ti.com,

In message <1250613233-3362-1-git-send-email-s-paulraj at ti.com> you wrote:
> From: Sandeep Paulraj <s-paulraj at ti.com>
> 
> 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 <s-paulraj at ti.com>
> ---
^^^^^^^ 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


More information about the U-Boot mailing list