diff mbox series

[V4,2/9] soc: imx: gpcv2: Add dispmix and mipi domains to imx8mn

Message ID 20211128131853.15125-3-aford173@gmail.com (mailing list archive)
State New, archived
Headers show
Series arm64: imx8mn: Enable more imx8m Nano functions | expand

Commit Message

Adam Ford Nov. 28, 2021, 1:18 p.m. UTC
The dispmix will be needed for the blkctl driver, so add it
to the gpcv2.

Signed-off-by: Adam Ford <aford173@gmail.com>
---
 drivers/soc/imx/gpcv2.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

--
2.32.0

Comments

Lucas Stach Dec. 14, 2021, 8:54 a.m. UTC | #1
Am Sonntag, dem 28.11.2021 um 07:18 -0600 schrieb Adam Ford:
> The dispmix will be needed for the blkctl driver, so add it
> to the gpcv2.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

> ---
>  drivers/soc/imx/gpcv2.c | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
> index a0eab9f41a71..3e59d479d001 100644
> --- a/drivers/soc/imx/gpcv2.c
> +++ b/drivers/soc/imx/gpcv2.c
> @@ -843,6 +843,31 @@ static const struct imx_pgc_domain imx8mn_pgc_domains[] = {
>  		.pgc   = BIT(IMX8MN_PGC_GPUMIX),
>  		.keep_clocks = true,
>  	},
> +
> +	[IMX8MN_POWER_DOMAIN_DISPMIX] = {
> +		.genpd = {
> +			.name = "dispmix",
> +		},
> +			.bits  = {
> +			.pxx = IMX8MN_DISPMIX_SW_Pxx_REQ,
> +			.map = IMX8MN_DISPMIX_A53_DOMAIN,
> +			.hskreq = IMX8MN_DISPMIX_HSK_PWRDNREQN,
> +			.hskack = IMX8MN_DISPMIX_HSK_PWRDNACKN,
> +		},
> +		.pgc   = BIT(IMX8MN_PGC_DISPMIX),
> +		.keep_clocks = true,
> +	},
> +
> +	[IMX8MN_POWER_DOMAIN_MIPI] = {
> +		.genpd = {
> +			.name = "mipi",
> +		},
> +			.bits  = {
> +			.pxx = IMX8MN_MIPI_SW_Pxx_REQ,
> +			.map = IMX8MN_MIPI_A53_DOMAIN,
> +		},
> +		.pgc   = BIT(IMX8MN_PGC_MIPI),
> +	},
>  };
> 
>  static const struct regmap_range imx8mn_yes_ranges[] = {
> --
> 2.32.0
>
diff mbox series

Patch

diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
index a0eab9f41a71..3e59d479d001 100644
--- a/drivers/soc/imx/gpcv2.c
+++ b/drivers/soc/imx/gpcv2.c
@@ -843,6 +843,31 @@  static const struct imx_pgc_domain imx8mn_pgc_domains[] = {
 		.pgc   = BIT(IMX8MN_PGC_GPUMIX),
 		.keep_clocks = true,
 	},
+
+	[IMX8MN_POWER_DOMAIN_DISPMIX] = {
+		.genpd = {
+			.name = "dispmix",
+		},
+			.bits  = {
+			.pxx = IMX8MN_DISPMIX_SW_Pxx_REQ,
+			.map = IMX8MN_DISPMIX_A53_DOMAIN,
+			.hskreq = IMX8MN_DISPMIX_HSK_PWRDNREQN,
+			.hskack = IMX8MN_DISPMIX_HSK_PWRDNACKN,
+		},
+		.pgc   = BIT(IMX8MN_PGC_DISPMIX),
+		.keep_clocks = true,
+	},
+
+	[IMX8MN_POWER_DOMAIN_MIPI] = {
+		.genpd = {
+			.name = "mipi",
+		},
+			.bits  = {
+			.pxx = IMX8MN_MIPI_SW_Pxx_REQ,
+			.map = IMX8MN_MIPI_A53_DOMAIN,
+		},
+		.pgc   = BIT(IMX8MN_PGC_MIPI),
+	},
 };

 static const struct regmap_range imx8mn_yes_ranges[] = {