diff options
| author | Yu Chien Peter Lin <[email protected]> | 2024-02-22 17:18:38 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-03-04 10:20:46 +0530 |
| commit | bc366780c2efeb26149774bd17f0afe4ad5c7d62 (patch) | |
| tree | 4dfc8199bb35300649827bf23451ad1f3faafc68 /platform/generic/include | |
| parent | 6bb6b61c27eb07da375213a7a1bb0f8e3fad663a (diff) | |
platform: andes: Drop andes_pmu_setup()
andes_pmu_setup() [1] was intended to populate event mapping from
hardcoded arrays, however, this increases firmware size and we should
just use PMU DT node [2] instead.
Link: https://lists.infradead.org/pipermail/opensbi/2023-November/006032.html [1]
Link: https://github.com/riscv-software-src/opensbi/blob/v1.4/docs/pmu_support.md#example-3 [2]
Signed-off-by: Yu Chien Peter Lin <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/generic/include')
| -rw-r--r-- | platform/generic/include/andes/andes_hpm.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/platform/generic/include/andes/andes_hpm.h b/platform/generic/include/andes/andes_hpm.h deleted file mode 100644 index b4d71b9d..00000000 --- a/platform/generic/include/andes/andes_hpm.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2023 Andes Technology Corporation - */ - -#ifndef _ANDES_HPM_H_ -#define _ANDES_HPM_H_ - -static inline int andes_pmu_setup(void) { return 0; } - -#endif /* _ANDES_HPM_H_ */ |
