diff options
author | davidcunado-arm <david.cunado@arm.com> | 2018-01-12 09:02:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 09:02:24 +0000 |
commit | 5f3c7ce4adcc3fbde52582880c0e7680af4a557a (patch) | |
tree | f6f8ebc9d2f1192f12301145401d97be1b4f614c /docs | |
parent | 31dfea92048fa2a71495650d77f5c68ae582ab73 (diff) | |
parent | 53bfb94ececbed0fd6eb3550c79254a928a13067 (diff) |
Merge pull request #1197 from dp-arm/dp/amu
AMUv1 support
Diffstat (limited to 'docs')
-rw-r--r-- | docs/porting-guide.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/porting-guide.rst b/docs/porting-guide.rst index f020ec97..51d2e64a 100644 --- a/docs/porting-guide.rst +++ b/docs/porting-guide.rst @@ -549,6 +549,22 @@ behaviour of the ``assert()`` function (for example, to save memory). doesn't print anything to the console. If ``PLAT_LOG_LEVEL_ASSERT`` isn't defined, it defaults to ``LOG_LEVEL``. +If the platform port uses the Activity Monitor Unit, the following constants +may be defined: + +- **PLAT\_AMU\_GROUP1\_COUNTERS\_MASK** + This mask reflects the set of group counters that should be enabled. The + maximum number of group 1 counters supported by AMUv1 is 16 so the mask + can be at most 0xffff. If the platform does not define this mask, no group 1 + counters are enabled. If the platform defines this mask, the following + constant needs to also be defined. + +- **PLAT\_AMU\_GROUP1\_NR\_COUNTERS** + This value is used to allocate an array to save and restore the counters + specified by ``PLAT_AMU_GROUP1_COUNTERS_MASK`` on CPU suspend. + This value should be equal to the highest bit position set in the + mask, plus 1. The maximum number of group 1 counters in AMUv1 is 16. + File : plat\_macros.S [mandatory] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |