aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/extensions/amu.h
diff options
context:
space:
mode:
authorDimitris Papastamos <dimitris.papastamos@arm.com>2017-10-12 13:02:29 +0100
committerDimitris Papastamos <dimitris.papastamos@arm.com>2017-11-29 09:36:05 +0000
commit380559c1c3ac80c0d2581a931c80323d1fefbfd6 (patch)
treeeb27f37429a9448416c1a5185d88e1b43fd40adb /include/lib/extensions/amu.h
parent3a6a9adc55fb75b730d376e226752227d2c5f7a6 (diff)
downloadplatform_external_arm-trusted-firmware-380559c1c3ac80c0d2581a931c80323d1fefbfd6.tar.gz
platform_external_arm-trusted-firmware-380559c1c3ac80c0d2581a931c80323d1fefbfd6.tar.bz2
platform_external_arm-trusted-firmware-380559c1c3ac80c0d2581a931c80323d1fefbfd6.zip
AMU: Implement support for aarch64
The `ENABLE_AMU` build option can be used to enable the architecturally defined AMU counters. At present, there is no support for the auxiliary counter group. Change-Id: I7ea0c0a00327f463199d1b0a481f01dadb09d312 Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
Diffstat (limited to 'include/lib/extensions/amu.h')
-rw-r--r--include/lib/extensions/amu.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/lib/extensions/amu.h b/include/lib/extensions/amu.h
new file mode 100644
index 000000000..bbefe8ff6
--- /dev/null
+++ b/include/lib/extensions/amu.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef __AMU_H__
+#define __AMU_H__
+
+/* Enable all group 0 counters */
+#define AMU_GROUP0_COUNTERS_MASK 0xf
+
+void amu_enable(int el2_unused);
+
+#endif /* __AMU_H__ */