timers: remove dependency on SYS_CNT_BASE1
The Arm ARM Section D11.1.1 titled "The full set of Generic Timer
components" says that Memory-mapped timers are optional. The timer
framework and tests use the SYS_CNT_BASE1 macro to read the memory
mapped timers. But they can also read the CNTPCT_EL0 system register
to get the same value to accommodate all Arm platforms.
This patch replaces the usage of SYS_CNT_BASE1 from the timer code
with calls to syscounter_read().
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I4d9ee5587351ee737800539f4d48606e7de80538
2 files changed