From 2e50c24399d64c42114c7952fca9e22ec0fb8d09 Mon Sep 17 00:00:00 2001 From: Yu Chien Peter Lin Date: Thu, 30 Nov 2023 20:42:06 +0800 Subject: [PATCH] platform: andes: Enable Andes PMU for AE350 Enable Andes PMU extension support for AE350 platforms. Signed-off-by: Yu Chien Peter Lin Reviewed-by: Leo Yu-Chi Liang Reviewed-by: Atish Patra Reviewed-by: Lad Prabhakar Tested-by: Lad Prabhakar Reviewed-by: Anup Patel --- platform/generic/Kconfig | 1 + platform/generic/andes/ae350.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/platform/generic/Kconfig b/platform/generic/Kconfig index a902cf37..89e56035 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 80eca056..dc769b72 100644 --- a/platform/generic/andes/ae350.c +++ b/platform/generic/andes/ae350.c @@ -8,6 +8,7 @@ */ #include +#include #include #include #include @@ -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, };