]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm timer: Add workaround for Allwinner A64 timer
authormanu <manu@FreeBSD.org>
Thu, 14 Jun 2018 17:18:15 +0000 (17:18 +0000)
committermanu <manu@FreeBSD.org>
Thu, 14 Jun 2018 17:18:15 +0000 (17:18 +0000)
commitf32e2e4266665b834ff2e1f0e3cdcb9426bcae35
tree6c187a41627720a38712c6c0d6c21742a20993fa
parent896df23a52b2a955b338a931ea514c44aec48cba
arm timer: Add workaround for Allwinner A64 timer

The timer present in allwinner A64 SoC is unstable, value can jump backward
or forward.
It was found that when bit 11 and upper roll over the low bits can sometimes
being read as all as 1 or all as 0.
Simply ignore the values for those cases.
sys/arm/arm/generic_timer.c