Move architecture timer setup to platform-specific code
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>
Tue, 7 Jan 2014 10:21:18 +0000 (10:21 +0000)
committerDan Handley <dan.handley@arm.com>
Mon, 10 Mar 2014 14:17:59 +0000 (14:17 +0000)
commit1c297bf015226c182b66498d5a64b8b51c7624f5
tree599f1d5a6bec18bc5ce9f9964c0c4a0b6f0955eb
parent92a12866e6ab01c284f7aff01818c65851880bfd
Move architecture timer setup to platform-specific code

At present, bl1_arch_setup() and bl31_arch_setup() program the counter
frequency using a value from the memory mapped generic timer. The
generic timer however is not necessarily present on all ARM systems
(although it is architected to be present on all server systems).

This patch moves the timer setup to platform-specific code and updates
the relevant documentation. Also, CNTR.FCREQ is set as the specification
requires the bit corresponding to the counter's frequency to be set when
enabling. Since we intend to use the base frequency, set bit 8.

Fixes ARM-software/tf-issues#24

Change-Id: I32c52cf882253e01f49056f47c58c23e6f422652
bl1/aarch64/bl1_arch_setup.c
bl31/aarch64/bl31_arch_setup.c
docs/firmware-design.md
docs/porting-guide.md
plat/fvp/bl1_plat_setup.c
plat/fvp/bl31_plat_setup.c