diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2019-02-27 20:02:05 +0530 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-03-04 18:08:56 +0530 |
commit | 6cb6aa602b541d2b2f864c47b6a3f62e3eefe282 (patch) | |
tree | 20942c0559785a51f7b9b0c638f52935a942c0ad /drivers/thermal/ti-bandgap.c | |
parent | 1b77de4476637a614d23b34bcfae0b788409389c (diff) | |
download | u-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/thermal/ti-bandgap.c')
0 files changed, 0 insertions, 0 deletions