Skip to content
Commit 0c6e7183 authored by Nadav Haklai's avatar Nadav Haklai Committed by Alexandre Belloni
Browse files

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: default avatarNadav Haklai <nadavh@marvell.com>
Reviewed-by: default avatarNeta Zur Hershkovits <neta@marvell.com>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent efbbb4fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment