diff options
author | chenzhen <chenzhen@rock-chips.com> | 2016-09-24 16:31:08 +0800 |
---|---|---|
committer | chenzhen <chenzhen@rock-chips.com> | 2016-11-14 14:29:00 +0800 |
commit | 89501d8dd3c214e4a162e94804f0d56c61c23237 (patch) | |
tree | 2a6cd94f6ecced5cb4fb7091622c7c84101c0dc3 /drivers/gpu/arm/midgard/mali_kbase_defs.h | |
parent | d94880b547779baaaa9e9b733c38881cad8aa685 (diff) |
MALI: midgard: RK: slowdown clk_gpu before poweroff cores
This is a workaround for the issue that
"400M, 500M and 600M of clk_gpu needs high vdd_gpu",
according to "6.2" of Mali Application Note
"Potential glitches on Power Domain interfaces".
Change-Id: I8b8eccd2079e21ac5e1db7b4552c8f998f676a9f
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
Diffstat (limited to 'drivers/gpu/arm/midgard/mali_kbase_defs.h')
-rw-r--r-- | drivers/gpu/arm/midgard/mali_kbase_defs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/arm/midgard/mali_kbase_defs.h b/drivers/gpu/arm/midgard/mali_kbase_defs.h index 4bb8c2c7aec2..f5775bcbb248 100644 --- a/drivers/gpu/arm/midgard/mali_kbase_defs.h +++ b/drivers/gpu/arm/midgard/mali_kbase_defs.h @@ -912,6 +912,17 @@ struct kbase_device { } irqs[3]; struct clk *clock; + + /* + * current freq of clk_gpu, in Hz. + */ + unsigned long freq; + /* + * mutex for setting freq of clk_gpu. + */ + struct mutex mutex_for_clk; + bool is_power_off; + #ifdef CONFIG_REGULATOR struct regulator *regulator; #endif |