[U-Boot] [patch nand/next] davinci_nand chipselect/init cleanup

Scott Wood scottwood at freescale.com
Mon May 11 21:28:54 CEST 2009


On Sun, May 10, 2009 at 03:43:01PM -0700, David Brownell wrote:
> From: David Brownell <dbrownell at users.sourceforge.net>
> 
> Update chipselect handling in davinci_nand.c so that it can
> handle 2 GByte chips the same way Linux does:  as one device,
> even though it has two halves with independent chip selects.
> For such chips the "nand info" command reports:
> 
>   Device 0: 2x nand0, sector size 128 KiB
> 
> Switch to use the default chipselect function unless the board
> really needs its own.  The logic for the Sonata board moves out
> of the driver into board-specific code.  (Which doesn't affect
> current build breakage if its NAND support is enabled...)
> 
> Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
> ---
> NOTE:  probably depends on the two previous NAND patches (now
> queued in nand-next).  I don't think this depends on anything
> in the arm-next tree, which doesn't have those patches.
> 
>  board/davinci/sonata/sonata.c            |   28 ++++++++++++++++++++++++++++
>  drivers/mtd/nand/davinci_nand.c          |   28 ++++++++--------------------
>  include/asm-arm/arch-davinci/nand_defs.h |    2 ++
>  3 files changed, 38 insertions(+), 20 deletions(-)

Applied to u-boot-nand-flash/next.

-Scott


More information about the U-Boot mailing list