Conditionally compile `plat_get_syscnt_freq()` in ARM standard platforms
authorYatharth Kochar <yatharth.kochar@arm.com>
Tue, 26 Apr 2016 09:36:29 +0000 (10:36 +0100)
committerYatharth Kochar <yatharth.kochar@arm.com>
Tue, 26 Apr 2016 12:58:09 +0000 (13:58 +0100)
commit1969625afa0be891ac71c9bfaba40c00ac8672a3
tree677d22aebe4386f52058d9d9c4025d64991e6888
parentcf4ee1779a47777a96eba0e111f287e127877ae4
Conditionally compile `plat_get_syscnt_freq()` in ARM standard platforms

This patch puts the definition of `plat_get_syscnt_freq()`
under `#ifdef ARM_SYS_CNTCTL_BASE` in arm_common.c file.
This is the fix for compilation error introduced by commit-id
`749ade4`, for platforms that use arm_common.c but do not
provide a memory mapped interface to the generic counter.

Fixes ARM-software/tf-issues#395

Change-Id: I2f2b10bd9500fa15308541ccb15829306a76a745
plat/arm/common/aarch64/arm_common.c