Skip to content
Snippets Groups Projects
Commit 79250ef3 authored by Dario Binacchi's avatar Dario Binacchi Committed by Lokesh Vutla
Browse files

rtc: davinci: check BUSY bit before set TC registers


To write correct data to the TC registers, the STATUS register must be
read until the BUSY bit is equal to zero. Once the BUSY flag is zero,
there is a 15 μs access period in which the TC registers can be
programmed.
The rtc_wait_not_busy() has been inspired by the Kernel.

Signed-off-by: default avatarDario Binacchi <dariobin@libero.it>
Signed-off-by: Lokesh Vutla's avatarLokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210602203805.11494-5-dariobin@libero.it
parent 82a456a0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment