summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci_sandbox.c
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2019-02-27 20:02:05 +0530
committerJagan Teki <jagan@amarulasolutions.com>2019-03-04 18:08:56 +0530
commit6cb6aa602b541d2b2f864c47b6a3f62e3eefe282 (patch)
tree20942c0559785a51f7b9b0c638f52935a942c0ad /drivers/pci/pci_sandbox.c
parent1b77de4476637a614d23b34bcfae0b788409389c (diff)
downloadu-boot-6cb6aa602b541d2b2f864c47b6a3f62e3eefe282.tar.gz
u-boot-6cb6aa602b541d2b2f864c47b6a3f62e3eefe282.tar.xz
u-boot-6cb6aa602b541d2b2f864c47b6a3f62e3eefe282.zip
spi: sun4i: Poll for rxfifo to be filled up
To drain rx fifo the fifo need to poll for how much data has been filled up in rx fifo. To achieve this, the current code is using wait_for_bit logic on control register with exchange burst mode mask, which is not a proper way of waiting for fifo filled up. So, add code for polling rxfifo to be filled up using fifo status register. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'drivers/pci/pci_sandbox.c')
0 files changed, 0 insertions, 0 deletions