rtc: improve WA for RTC incorrect read

	- Improved WA for RTC read failure
	- According to FE-3124064:
	- Description:
	    The device supports CPU write and read access to the RTC Time register.
	    However, due to this erratum, Read from RTC TIME register may fail.
	  Workaround:
	    RTC TIME register should be read 100 times, return a the value which appears
	    most frequently as a proper value.

Change-Id: I05b20d633220bb8043f176fbb7d3c68c671b368a
Signed-off-by: Shaker Daibes <shaker@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/24986
Tested-by: Star_Automation <star@marvell.com>
Reviewed-by: Ofer Heifetz <oferh@marvell.com>
1 file changed