1
0
Fork 0

MLK-23622-01 soc: imx: Add active wakeup flag for domain with active-wakeup property

Add the active wakeup flag if a power domain has such requirement.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Jacky Bai 2020-03-02 20:28:47 +08:00
parent 46814fb05c
commit c545e706e4
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,8 @@ Optional properties:
located inside this power domain
- power-supply: Power supply used to power the domain
- parent-domains: the phandle to the parent power domain
- active-wakeup: keep the PM domain powered in case the attached device wakeup
is enabled.
example:
vpu_g1_pd: vpug1-pd {

View File

@ -179,6 +179,8 @@ static int imx8m_pm_domain_probe(struct platform_device *pdev)
domain->pd.power_off = imx8m_pd_power_off;
domain->pd.power_on = imx8m_pd_power_on;
if (of_property_read_bool(np, "active-wakeup"))
domain->pd.flags |= GENPD_FLAG_ACTIVE_WAKEUP;
pm_genpd_init(&domain->pd, NULL, true);