arm-trusted-firmware/plat/fvp
Sandrine Bailleux a5355358f3 Define frequency of system counter in platform code
BL3-1 architecture setup code programs the system counter frequency
into the CNTFRQ_EL0 register. This frequency is defined by the
platform, though. This patch introduces a new platform hook that
the architecture setup code can call to retrieve this information.
In the ARM FVP port, this returns the first entry of the frequency
modes table from the memory mapped generic timer.

All system counter setup code has been removed from BL1 as some
platforms may not have initialized the system counters at this stage.
The platform specific settings done exclusively in BL1 have been moved
to BL3-1. In the ARM FVP port, this consists in enabling and
initializing the System level generic timer. Also, the frequency change
request in the counter control register has been set to 0 to make it
explicit it's using the base frequency. The CNTCR_FCREQ() macro has been
fixed in this context to give an entry number rather than a bitmask.

In future, when support for firmware update is implemented, there
is a case where BL1 platform specific code will need to program
the counter frequency. This should be implemented at that time.

This patch also updates the relevant documentation.
2014-04-07 17:43:33 +01:00
..
aarch64 Define frequency of system counter in platform code 2014-04-07 17:43:33 +01:00
bl1_plat_setup.c Define frequency of system counter in platform code 2014-04-07 17:43:33 +01:00
bl2_plat_setup.c Add support for BL3-2 in BL2 2014-02-20 19:06:34 +00:00
bl31_plat_setup.c Define frequency of system counter in platform code 2014-04-07 17:43:33 +01:00
bl32_plat_setup.c Add Test Secure Payload (BL3-2) image 2014-02-20 19:06:34 +00:00
plat_gic.c Fix implementation and users of gicd_set_ipriorityr() 2014-03-05 16:21:14 +00:00
plat_io_storage.c fvp: plat_io_storage: remove duplicated code 2014-03-05 16:21:14 +00:00
plat_pm.c fvp: clear a pending cluster power off request 2014-01-23 12:13:34 +00:00
plat_topology.c fvp: rename fvp_* files to plat_* 2014-01-20 18:45:04 +00:00
platform.h Define frequency of system counter in platform code 2014-04-07 17:43:33 +01:00
platform.mk fvp: Make use of the generic MMU translation table setup code 2014-03-05 16:21:14 +00:00