aboutsummaryrefslogtreecommitdiff
path: root/plat/arm/common/sp_min/arm_sp_min_setup.c
diff options
context:
space:
mode:
authorUsama Arif <usama.arif@arm.com>2018-11-30 15:43:56 +0000
committerUsama Arif <usama.arif@arm.com>2019-02-19 17:07:01 +0000
commit6393c787b5aa915ea2c707acebd3e330246fe991 (patch)
tree8389b51ca8b90a4a6b73118a78d85d64ba2527db /plat/arm/common/sp_min/arm_sp_min_setup.c
parent0d28096cd701bb23ea9d6f9a159a60b0c8607597 (diff)
downloadtrusted-firmware-a-6393c787b5aa915ea2c707acebd3e330246fe991.tar.gz
plat/arm: Introduce FVP Versatile Express platform.
This patch adds support for Versatile express FVP (Fast models). Versatile express is a family of platforms that are based on ARM v7. Currently this port has only been tested on Cortex A7, although it should work with other ARM V7 cores that support LPAE, generic timers, VFP and hardware divide. Future patches will support other cores like Cortex A5 that dont support features like LPAE and hardware divide. This platform is tested on and only expected to work on single core models. Change-Id: I10893af65b8bb64da7b3bd851cab8231718e61dd Signed-off-by: Usama Arif <usama.arif@arm.com>
Diffstat (limited to 'plat/arm/common/sp_min/arm_sp_min_setup.c')
-rw-r--r--plat/arm/common/sp_min/arm_sp_min_setup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plat/arm/common/sp_min/arm_sp_min_setup.c b/plat/arm/common/sp_min/arm_sp_min_setup.c
index c0ea027b84..bb69914ae3 100644
--- a/plat/arm/common/sp_min/arm_sp_min_setup.c
+++ b/plat/arm/common/sp_min/arm_sp_min_setup.c
@@ -193,12 +193,14 @@ void sp_min_platform_setup(void)
#endif
/* Enable and initialize the System level generic timer */
+#ifdef ARM_SYS_CNTCTL_BASE
mmio_write_32(ARM_SYS_CNTCTL_BASE + CNTCR_OFF,
CNTCR_FCREQ(0U) | CNTCR_EN);
-
+#endif
+#ifdef ARM_SYS_TIMCTL_BASE
/* Allow access to the System counter timer module */
arm_configure_sys_timer();
-
+#endif
/* Initialize power controller before setting up topology */
plat_arm_pwrc_setup();
}