fix spi nand write error on HYF4GQ4U

This commit is contained in:
Wills Wang 2023-02-06 14:10:30 +08:00 committed by jiang jianjun
parent 4e0357e93a
commit 4a3fdb2540

View File

@ -400,6 +400,9 @@ static void spinand_helper_write(struct xfel_ctx_t * ctx, struct spinand_pdata_t
addr += n;
buf += n;
count -= n;
if(!count)
break;
}
cbuf[clen++] = SPI_CMD_END;
fel_write(ctx, pdat->swapbuf, txbuf, txlen);