mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
mali400: mali: set clk_gpu to normal pll when suspend
The pvtpll will power-down when suspend, and it will cause gpu resume failed, so do not use pvtpll when suspend. Signed-off-by: Liang Chen <cl@rock-chips.com> Change-Id: Ibf06cc8d836c994468751a66cf9ed3d0cc1e4b9f
This commit is contained in:
parent
5302628c0d
commit
47989c4975
|
|
@ -430,6 +430,13 @@ static int rk_platform_power_on_gpu(struct device *dev)
|
|||
goto fail_to_enable_regulator;
|
||||
}
|
||||
|
||||
if (cpu_is_rk3528()) {
|
||||
#if defined(CONFIG_MALI_DEVFREQ) && defined(CONFIG_HAVE_CLK)
|
||||
struct mali_device *mdev = dev_get_drvdata(dev);
|
||||
|
||||
clk_set_rate(mdev->clock, mdev->current_freq);
|
||||
#endif
|
||||
}
|
||||
platform->is_powered = true;
|
||||
}
|
||||
|
||||
|
|
@ -447,6 +454,14 @@ static void rk_platform_power_off_gpu(struct device *dev)
|
|||
struct rk_context *platform = s_rk_context;
|
||||
|
||||
if (platform->is_powered) {
|
||||
if (cpu_is_rk3528()) {
|
||||
#if defined(CONFIG_MALI_DEVFREQ) && defined(CONFIG_HAVE_CLK)
|
||||
struct mali_device *mdev = dev_get_drvdata(dev);
|
||||
|
||||
//use normal pll 200M for gpu when suspend
|
||||
clk_set_rate(mdev->clock, 200000000);
|
||||
#endif
|
||||
}
|
||||
rk_platform_disable_clk_gpu(dev);
|
||||
rk_platform_disable_gpu_regulator(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user