[U-Boot-Users] [PATCH] Make board_nand_init() return 0 on success	and -1 on failure
    Hans Zuidam 
    hans.zuidam at philips.com
       
    Mon Sep 11 14:48:23 CEST 2006
    
    
  
Wolfgang,
Here the patch we discussed last week.  It modifies board_nand_init()
to return 0 on sucess and -1 on failure.  In nand_init_chip() a 0
return is taken to mean that nand_scan() can do its thing.  All current
boards return 0 from board_nand_init().
CHANGELOG:
* Allow board_nand_init() to notify nand_init_chip() if NAND flash is
  detected or not.  Prevent MTD nand_scan() from scanning non-existent
  NAND devices.
 board/dave/PPChameleonEVB/nand.c |    4 +++-
 board/delta/nand.c               |    4 +++-
 board/nc650/nand.c               |    4 +++-
 board/netstar/nand.c             |    4 +++-
 board/prodrive/pdnb3/nand.c      |    4 +++-
 board/zylonite/nand.c            |    4 +++-
 cpu/ppc4xx/ndfc.c                |    4 +++-
 drivers/nand/nand.c              |    5 ++---
 nand_spl/nand_boot.c             |    4 ++--
 9 files changed, 25 insertions(+), 12 deletions(-)
Regards,
Hans Zuidam
--
Hans Zuidam
Sen. Systems Engineer, BL DTS ICE, Philips Semiconductors
Building A410, Room 3.40
High Tech Campus 41, 5656 AE Eindhoven, The Netherlands
Tel. +31 (0)40 2746579
E-Mail: hans.zuidam at philips.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch1.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20060911/abbb2270/attachment.txt 
    
    
More information about the U-Boot
mailing list