1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the GNU General Public License version 2. Note that NO WARRANTY is provided.
8 * See "LICENSE_GPLv2.txt" for details.
9 *
10 * @TAG(DATA61_GPL)
11 */
12
13#ifndef ARMV_BENCHMARK_H
14#define ARMV_BENCHMARK_H
15
16#define PMCR_CYCLE_COUNT_RESET BIT(2)
17#define PMCR_EVENT_COUNT_RESET BIT(1)
18#define PMCR_ENABLE BIT(0)
19
20#define PMCNTENSET_CYCLE_COUNT_ENABLE BIT(31)
21
22#define PMUSERENR_EL0_EN BIT(0)
23
24#define CCNT "PMCCNTR_EL0"
25
26#endif /* ARMV_BENCHMARK_H */
27