diff options
author | Yu Chien Peter Lin <peterlin@andestech.com> | 2023-11-30 20:42:06 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-12-06 17:55:55 +0530 |
commit | 2e50c24399d64c42114c7952fca9e22ec0fb8d09 (patch) | |
tree | b202eaa1779a2424d341de548c2b19b8f2363675 /platform | |
parent | 1b9e743c3d5de93e2422c0a0a6db269d862aab9a (diff) | |
download | opensbi-2e50c24399d64c42114c7952fca9e22ec0fb8d09.zip opensbi-2e50c24399d64c42114c7952fca9e22ec0fb8d09.tar.gz opensbi-2e50c24399d64c42114c7952fca9e22ec0fb8d09.tar.bz2 |
platform: andes: Enable Andes PMU for AE350
Enable Andes PMU extension support for AE350 platforms.
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/generic/Kconfig | 1 | ||||
-rw-r--r-- | platform/generic/andes/ae350.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/platform/generic/Kconfig b/platform/generic/Kconfig index a902cf3..89e5603 100644 --- a/platform/generic/Kconfig +++ b/platform/generic/Kconfig @@ -32,6 +32,7 @@ config PLATFORM_ALLWINNER_D1 config PLATFORM_ANDES_AE350 bool "Andes AE350 support" select SYS_ATCSMU + select ANDES_PMU default n config PLATFORM_RENESAS_RZFIVE diff --git a/platform/generic/andes/ae350.c b/platform/generic/andes/ae350.c index 80eca05..dc769b7 100644 --- a/platform/generic/andes/ae350.c +++ b/platform/generic/andes/ae350.c @@ -8,6 +8,7 @@ */ #include <platform_override.h> +#include <andes/andes_pmu.h> #include <sbi_utils/fdt/fdt_helper.h> #include <sbi_utils/fdt/fdt_fixup.h> #include <sbi_utils/sys/atcsmu.h> @@ -118,4 +119,6 @@ static const struct fdt_match andes_ae350_match[] = { const struct platform_override andes_ae350 = { .match_table = andes_ae350_match, .final_init = ae350_final_init, + .extensions_init = andes_pmu_extensions_init, + .pmu_init = andes_pmu_init, }; |