diff options
| author | Dario Binacchi <[email protected]> | 2021-06-02 22:38:01 +0200 |
|---|---|---|
| committer | Lokesh Vutla <[email protected]> | 2021-06-09 22:23:44 +0530 |
| commit | 79250ef3e263ef23c16c3c06a50834f0dcca4426 (patch) | |
| tree | 99fd0aa16b754472f247bb4b83132d784b12c6e2 /include/linux/kernel.h | |
| parent | 82a456a085facede0913a742660df9a1607d1543 (diff) | |
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: Dario Binacchi <[email protected]>
Signed-off-by: Lokesh Vutla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions
