From b9624214603da7e507fdcbeb9dd5cacf4fa53cd8 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Fri, 17 Dec 2021 19:47:59 +0800 Subject: [PATCH] MALI: bifrost: change BASE_MAX_NR_CLOCKS_REGULATORS to 4 Add a new scmi clk for changing gpu clock rate. Signed-off-by: Finley Xiao Change-Id: Ib2496a528a44a4106e1becf0d99335e207d85667 --- drivers/gpu/arm/bifrost/mali_kbase_defs.h | 2 +- drivers/gpu/arm/bifrost/mali_kbase_hwcnt_backend_csf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/arm/bifrost/mali_kbase_defs.h b/drivers/gpu/arm/bifrost/mali_kbase_defs.h index 92e1265ec692..1ca5b036225a 100755 --- a/drivers/gpu/arm/bifrost/mali_kbase_defs.h +++ b/drivers/gpu/arm/bifrost/mali_kbase_defs.h @@ -155,7 +155,7 @@ * While, the number of clocks could be more than regulators, * as mentioned in power_control_init(). */ -#define BASE_MAX_NR_CLOCKS_REGULATORS (3) +#define BASE_MAX_NR_CLOCKS_REGULATORS (4) /* Forward declarations */ struct kbase_context; diff --git a/drivers/gpu/arm/bifrost/mali_kbase_hwcnt_backend_csf.c b/drivers/gpu/arm/bifrost/mali_kbase_hwcnt_backend_csf.c index 0bec0d342916..41ca5a6d1b7a 100644 --- a/drivers/gpu/arm/bifrost/mali_kbase_hwcnt_backend_csf.c +++ b/drivers/gpu/arm/bifrost/mali_kbase_hwcnt_backend_csf.c @@ -33,7 +33,7 @@ #include #ifndef BASE_MAX_NR_CLOCKS_REGULATORS -#define BASE_MAX_NR_CLOCKS_REGULATORS 3 +#define BASE_MAX_NR_CLOCKS_REGULATORS 4 #endif /**