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
return plat_arm_mmap;
}
+#ifdef ARM_SYS_CNTCTL_BASE
unsigned long long plat_get_syscnt_freq(void)
{
unsigned long long counter_base_frequency;
return counter_base_frequency;
}
+#endif /* ARM_SYS_CNTCTL_BASE */