mirror of
https://github.com/xboot/xfel.git
synced 2024-12-04 15:13:48 +08:00
fix spi nand write error on HYF4GQ4U
This commit is contained in:
parent
4e0357e93a
commit
4a3fdb2540
@ -400,6 +400,9 @@ static void spinand_helper_write(struct xfel_ctx_t * ctx, struct spinand_pdata_t
|
|||||||
addr += n;
|
addr += n;
|
||||||
buf += n;
|
buf += n;
|
||||||
count -= n;
|
count -= n;
|
||||||
|
|
||||||
|
if(!count)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
cbuf[clen++] = SPI_CMD_END;
|
cbuf[clen++] = SPI_CMD_END;
|
||||||
fel_write(ctx, pdat->swapbuf, txbuf, txlen);
|
fel_write(ctx, pdat->swapbuf, txbuf, txlen);
|
||||||
|
Loading…
Reference in New Issue
Block a user