Skip to content

Commit

Permalink
soc: imx: gpcv2: keep i.MX8M* bus clocks enabled
Browse files Browse the repository at this point in the history
Annotate the domains with bus clocks to keep those clocks enabled
as long as the domain is active.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  • Loading branch information
Lucas Stach authored and Shawn Guo committed Oct 6, 2021
1 parent 18c9857 commit 656ade7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/soc/imx/gpcv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ static const struct imx_pgc_domain imx8m_pgc_domains[] = {
.hskack = IMX8M_VPU_HSK_PWRDNACKN,
},
.pgc = BIT(IMX8M_PGC_VPU),
.keep_clocks = true,
},

[IMX8M_POWER_DOMAIN_DISP] = {
Expand Down Expand Up @@ -625,6 +626,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
.hskreq = IMX8MM_HSIO_HSK_PWRDNREQN,
.hskack = IMX8MM_HSIO_HSK_PWRDNACKN,
},
.keep_clocks = true,
},

[IMX8MM_POWER_DOMAIN_PCIE] = {
Expand Down Expand Up @@ -671,6 +673,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
.hskack = IMX8MM_GPUMIX_HSK_PWRDNACKN,
},
.pgc = BIT(IMX8MM_PGC_GPUMIX),
.keep_clocks = true,
},

[IMX8MM_POWER_DOMAIN_GPU] = {
Expand All @@ -697,6 +700,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
.hskack = IMX8MM_VPUMIX_HSK_PWRDNACKN,
},
.pgc = BIT(IMX8MM_PGC_VPUMIX),
.keep_clocks = true,
},

[IMX8MM_POWER_DOMAIN_VPUG1] = {
Expand Down Expand Up @@ -743,6 +747,7 @@ static const struct imx_pgc_domain imx8mm_pgc_domains[] = {
.hskack = IMX8MM_DISPMIX_HSK_PWRDNACKN,
},
.pgc = BIT(IMX8MM_PGC_DISPMIX),
.keep_clocks = true,
},

[IMX8MM_POWER_DOMAIN_MIPI] = {
Expand Down Expand Up @@ -810,6 +815,7 @@ static const struct imx_pgc_domain imx8mn_pgc_domains[] = {
.hskreq = IMX8MN_HSIO_HSK_PWRDNREQN,
.hskack = IMX8MN_HSIO_HSK_PWRDNACKN,
},
.keep_clocks = true,
},

[IMX8MN_POWER_DOMAIN_OTG1] = {
Expand Down

0 comments on commit 656ade7

Please sign in to comment.