rtc: armada38x: Align RTC set time procedure with the official errata
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.

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

Signed-off-by: Nadav Haklai <597b950a11648b2814571a5c9aa3212afe97b3f8@marvell.com>
Reviewed-by: Neta Zur Hershkovits <48d65d44461c282dfacfc87bbd9fb6ce3e71704c@marvell.com>
Signed-off-by: Gregory CLEMENT <cd8db494d8ed74d7c3f56ec5c769dff3d51dd397@free-electrons.com>
Signed-off-by: Alexandre Belloni <a7228e626ecf0022ac91fc1cd8db88e71d0e5e0e@free-electrons.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs