aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-05-12 22:48:09 +0000
committerwdenk <wdenk>2005-05-12 22:48:09 +0000
commit9dd41a7b0c5c94d74c25edfdd6393c656669c09a (patch)
treed43aed8a275258bae4a89a79253ab2e6214b3df7 /common
parentd44e14b5fcf362154bd6a18e15446932f510cecf (diff)
* Fix debug code in omap5912osk flash driverLABEL_2005_05_13_0050
* Add support for MPC8247 based "IDS8247" board.
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nand.c7
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;
}