From 3aa94c86bf989168bd076ae4e7b052a5b42cc4c8 Mon Sep 17 00:00:00 2001 From: "Mauro (mdrjr) Ribeiro" Date: Tue, 27 Nov 2018 10:50:22 +0900 Subject: [PATCH] ODROID-COMMON: lock gpu frequency to its maximum Change-Id: Ic967f79a1bff001336a5e41a2bc644d5108ecb6a --- arch/arm64/boot/dts/amlogic/mesong12a-bifrost.dtsi | 1 + drivers/gpu/arm/midgard/platform/devicetree/scaling.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/mesong12a-bifrost.dtsi b/arch/arm64/boot/dts/amlogic/mesong12a-bifrost.dtsi index 4a7e51d..33886c4 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12a-bifrost.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12a-bifrost.dtsi @@ -33,6 +33,7 @@ num_of_pp = <2>; sc_mpp = <1>; /* number of shader cores used most of time. */ + min_clk = <4>; clocks = <&clkc CLKID_GPU_MUX &clkc CLKID_GP0_PLL>; clock-names = "gpu_mux","gp0_pll"; diff --git a/drivers/gpu/arm/midgard/platform/devicetree/scaling.c b/drivers/gpu/arm/midgard/platform/devicetree/scaling.c index 4fa07730..aefb3e4 100644 --- a/drivers/gpu/arm/midgard/platform/devicetree/scaling.c +++ b/drivers/gpu/arm/midgard/platform/devicetree/scaling.c @@ -36,7 +36,7 @@ static int lastStep; static struct work_struct wq_work; static mali_plat_info_t* pmali_plat = NULL; #endif -static int scaling_mode = MALI_PP_FS_SCALING; +static int scaling_mode = MALI_SCALING_DISABLE; extern int mali_pm_statue; //static int scaling_mode = MALI_SCALING_DISABLE; //static int scaling_mode = MALI_PP_SCALING; -- 2.7.4