summaryrefslogtreecommitdiffstats
path: root/Omap35xxPkg/Flash
diff options
context:
space:
mode:
Diffstat (limited to 'Omap35xxPkg/Flash')
-rw-r--r--Omap35xxPkg/Flash/Flash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Omap35xxPkg/Flash/Flash.c b/Omap35xxPkg/Flash/Flash.c
index dfe99b0167..0056acd6b9 100644
--- a/Omap35xxPkg/Flash/Flash.c
+++ b/Omap35xxPkg/Flash/Flash.c
@@ -411,6 +411,7 @@ NandWritePage (
NandSendCommand(PROGRAM_PAGE_CONFIRM_CMD);
//Poll till device is busy.
+ NandStatus = 0;
while (Timeout) {
NandStatus = NandReadStatus();
if ((NandStatus & NAND_READY) == NAND_READY) {
@@ -462,6 +463,7 @@ NandEraseBlock (
NandSendCommand(BLOCK_ERASE_CONFIRM_CMD);
//Poll till device is busy.
+ NandStatus = 0;
while (Timeout) {
NandStatus = NandReadStatus();
if ((NandStatus & NAND_READY) == NAND_READY) {