blob: f3553246f975764e9ab100d680cbb36112c24a86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) Copyright (c) 2023 Andes Technology Corporation
*/
#ifndef _RISCV_ANDES_PMU_H
#define _RISCV_ANDES_PMU_H
#include <sbi/sbi_hart.h>
#include <sbi_utils/fdt/fdt_helper.h>
#include <sbi_utils/fdt/fdt_pmu.h>
#ifdef CONFIG_ANDES_PMU
int andes_pmu_init(const struct fdt_match *match);
int andes_pmu_extensions_init(const struct fdt_match *match,
struct sbi_hart_features *hfeatures);
#else
static inline int andes_pmu_init(const struct fdt_match *match)
{
return 0;
}
static inline int andes_pmu_extensions_init(const struct fdt_match *match,
struct sbi_hart_features *hfeatures)
{
return 0;
}
#endif /* CONFIG_ANDES_PMU */
#endif /* _RISCV_ANDES_PMU_H */
|