mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
soc: rockchip: power-domain: keep pd_gpu always on for px30s
Change-Id: Ieb81bdd80aaabb24d490c13be147cb3e1a1417dd Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <linux/mfd/syscon.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
#include <linux/rockchip/cpu.h>
|
||||
#include <soc/rockchip/pm_domains.h>
|
||||
#include <soc/rockchip/rockchip_dmc.h>
|
||||
#include <dt-bindings/power/px30-power.h>
|
||||
@@ -631,6 +632,11 @@ static int rockchip_pd_power(struct rockchip_pm_domain *pd, bool power_on)
|
||||
if (pm_domain_always_on && !power_on)
|
||||
return 0;
|
||||
|
||||
if (!power_on && soc_is_px30s()) {
|
||||
if (genpd->name && !strcmp(genpd->name, "pd_gpu"))
|
||||
return 0;
|
||||
}
|
||||
|
||||
rockchip_pmu_lock(pd);
|
||||
|
||||
if (rockchip_pmu_domain_is_on(pd) != power_on) {
|
||||
|
||||
Reference in New Issue
Block a user