]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: armada38x: Align RTC set time procedure with the official errata
authorNadav Haklai <nadavh@marvell.com>
Thu, 6 Aug 2015 15:18:48 +0000 (17:18 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:12 +0000 (13:19 +0200)
commitcc2d11e4d0428d9eb7809222de1b706f8fcc905d
tree58da7761f2ef3da35d97f94245cee2963c6e0b3e
parent2be3a868a2a9d10816e250303977e8e135be98a0
rtc: armada38x: Align RTC set time procedure with the official errata

According to the Armada38x functional errata FE-3124064, writing to
the RTC TIME register may fail. As a workaround, after writing to RTC
TIME register, issue a dummy write of 0x0 twice to the RTC Status
register.  This is the updated implementation of the Errata that
eliminates the need of the long 100ms delay during the RTC set time
procedure.

[gregory.clement@free-electrons.com]: removed the mutex and use the
spinlock again

Signed-off-by: Nadav Haklai <nadavh@marvell.com>
Reviewed-by: Neta Zur Hershkovits <neta@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-armada38x.c