[U-Boot] [PATCH] [NAND] Fixes 16bit NAND support with the NDFC

Wolfgang Denk wd at denx.de
Thu May 19 21:50:09 CEST 2011


Dear Alex Waterman,

In message <4DD56FCF.2010306 at dawning.com> you wrote:
> From ad2238044b9abc5a2094096219a1256a8ad091b0 Mon Sep 17 00:00:00 2001
> From: Alex Waterman <awaterman at dawning.com>
> Date: Thu, 19 May 2011 15:08:36 -0400
> Subject: [PATCH] [NAND] Fixes 16bit NAND support with the NDFC
> 
> This patch adds support for 16 bit NAND devices attached to the
> NDFC on ppc4xx processors. Two config entries were added:
> 
>   CONFIG_SYS_NDFC_16        - Setting this tells the NDFC that a
>   			      16 bit device is attached.
>   CONFIG_SYS_NDFC_EBC0_CFG  - This is for the External Bus
>   			      Controller configuration register.
> 
> Also, a new ndfc_read_byte() function was added which does not
> first convert the data to little endian.
> 
> The NAND SPL was also modified to do 16bit bad block testing
> when a 16 bit chip is being used.
> 
> Signed-off-by: Alex Waterman <awaterman at dawning.com>
> Cc: Scott Wood <scottwood at freescale.com>
> Cc: Stefan Roese <sr at denx.de>
> ---
>  drivers/mtd/nand/ndfc.c |   34 +++++++++++++++++++++++++++++-----
>  nand_spl/nand_boot.c    |   11 ++++++++---
>  2 files changed, 37 insertions(+), 8 deletions(-)

Please document the new CONFIG_SYS_* options in the README.

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
"Who alone has reason to *lie  himself  out*  of  actuality?  He  who
*suffers* from it."                             - Friedrich Nietzsche


More information about the U-Boot mailing list