summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtd_uboot.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-02-28 20:51:48 +0100
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-04-03 12:11:07 +0200
commit60fb17913354757d015ade2b5457675a0506903a (patch)
tree486f168ae9e474b6aa83256d8c100b29219091bc /drivers/mtd/mtd_uboot.c
parent28f7a9d375c8bc7a30563b8d995b9baa355c7e41 (diff)
spl: nand: sunxi: introduce the nand_wait_cmd_fifo_empty() helper
One bit in the control registers indicates if the NAND controller is ready to receive a new command. Otherwise, the command FIFO is full and we should wait for this bit to flip. It then states that the last command has been processed and the FIFO is now free to welcome another command. Add this sanity check before starting any new command. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'drivers/mtd/mtd_uboot.c')
0 files changed, 0 insertions, 0 deletions