diff options
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r-- | common/cmd_nand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 6057dd1..dc268c8 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -1218,6 +1218,8 @@ static int nand_write_page (struct nand_chip *nand, } if (nand->bus16) { for (i = 0; i < nand->oobsize; i += 2) { + u16 val; + val = READ_NAND (nand->IO_ADDR); nand->data_buf[i] = val & 0xff; nand->data_buf[i + 1] = val >> 8; |