Skip to content

Commit

Permalink
[spinand]add spinand_wait_for_busy for spi nand read
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjunjiang committed Nov 1, 2021
1 parent 933d05e commit 9217cf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spinand.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ static void spinand_helper_read(struct xfel_ctx_t * ctx, struct spinand_pdata_t
tx[2] = (uint8_t)(ca >> 0);
tx[3] = 0x0;
fel_spi_xfer(ctx, pdat->swapbuf, pdat->swaplen, pdat->cmdlen, tx, 4, buf, n);
spinand_wait_for_busy(ctx, pdat);
addr += n;
buf += n;
count -= n;
Expand Down

0 comments on commit 9217cf5

Please sign in to comment.