From 9dd41a7b0c5c94d74c25edfdd6393c656669c09a Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 12 May 2005 22:48:09 +0000 Subject: * Fix debug code in omap5912osk flash driver * Add support for MPC8247 based "IDS8247" board. --- common/cmd_nand.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common/cmd_nand.c') diff --git a/common/cmd_nand.c b/common/cmd_nand.c index dc268c85b1..449991785c 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; } -- cgit v1.2.3