From: Markus Klotzbücher <Markus Klotzbümk@pollux.denx.de>
Date: Fri, 3 Mar 2006 15:09:28 +0000 (+0100)
Subject: Write operation is working. Turned out that the READSTATUS hack was wrong
X-Git-Tag: v2025.01-rc5-pxa1908~23091
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=24e1217be3b3c912ec8f7796195fda41275a7f2f;p=u-boot.git

Write operation is working. Turned out that the READSTATUS hack was wrong
after all.
---

diff --git a/board/delta/nand.c b/board/delta/nand.c
index e09b92aa03..d37a49e195 100644
--- a/board/delta/nand.c
+++ b/board/delta/nand.c
@@ -335,12 +335,14 @@ static void delta_cmdfunc(struct mtd_info *mtd, unsigned command,
 		delta_new_cmd();
 		ndcb0 = (NAND_CMD_STATUS | (4<<21));
 		event = NDSR_RDDREQ;
+#ifdef READ_STATUS_BUG
 		NDCB0 = ndcb0;
 		NDCB0 = ndcb1;
 		NDCB0 = ndcb2;
 		delta_wait_event(event);
 		what_the_hack = NDDB;
 		goto end;
+#endif
 		break;
 	case NAND_CMD_RESET:
 		printf("delta_cmdfunc: NAND_CMD_RESET unimplemented.\n");