]> git.dujemihanovic.xyz Git - u-boot.git/commit
rtc: davinci: use unlock/lock mechanism
authorDario Binacchi <dariobin@libero.it>
Wed, 2 Jun 2021 20:38:02 +0000 (22:38 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 9 Jun 2021 16:53:44 +0000 (22:23 +0530)
commitc7c7c8db00ace48f538f4b51d606cd6e4f537df1
treeddad8ca0d3ae0935c932acc70bd95b6bb349f04d
parent79250ef3e263ef23c16c3c06a50834f0dcca4426
rtc: davinci: use unlock/lock mechanism

The RTC module contains a kicker mechanism to prevent any spurious
writes from changing the register values. To set the time, you must
first unlock the TC registers, update them and then lock.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210602203805.11494-6-dariobin@libero.it
drivers/rtc/davinci.c