diff options
| author | wdenk <wdenk> | 2005-05-12 22:48:09 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2005-05-12 22:48:09 +0000 | 
| commit | 9dd41a7b0c5c94d74c25edfdd6393c656669c09a (patch) | |
| tree | d43aed8a275258bae4a89a79253ab2e6214b3df7 /common/cmd_nand.c | |
| parent | d44e14b5fcf362154bd6a18e15446932f510cecf (diff) | |
| download | olio-uboot-2014.01-9dd41a7b0c5c94d74c25edfdd6393c656669c09a.tar.xz olio-uboot-2014.01-9dd41a7b0c5c94d74c25edfdd6393c656669c09a.zip  | |
* Fix debug code in omap5912osk flash driverLABEL_2005_05_13_0050
* Add support for MPC8247 based "IDS8247" board.
Diffstat (limited to 'common/cmd_nand.c')
| -rw-r--r-- | common/cmd_nand.c | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index dc268c85b..449991785 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -670,11 +670,12 @@ static int NanD_IdentChip(struct nand_chip *nand, int floor, int chip)  	id = READ_NAND(nand->IO_ADDR);  	NAND_DISABLE_CE(nand);  /* set pin high */ -	/* No response - return failure */ -	if (mfr == 0xff || mfr == 0) { +  #ifdef NAND_DEBUG -		printf("NanD_Command (ReadID) got %d %d\n", mfr, id); +	printf("NanD_Command (ReadID) got %x %x\n", mfr, id);  #endif +	if (mfr == 0xff || mfr == 0) { +		/* No response - return failure */  		return 0;  	}  |