On Sat, Oct 11, 2025 at 06:51:23PM +0200, Marek Vasut wrote:
> Introduce struct dc_de_subdev_match_data which describes the differences
> between i.MX8QXP and i.MX95, which in this case is one register offset
> and address space offsets, and pass it as OF match data into the driver,
> so the driver can use the match data to correctly access Display Engine
> polarity control register on each SoC. This is a preparatory patch for
> i.MX95 addition. No functional change.
>
> Signed-off-by: Marek Vasut <[email protected]>
> ---
> Cc: Abel Vesa <[email protected]>
> Cc: Conor Dooley <[email protected]>
> Cc: Fabio Estevam <[email protected]>
> Cc: Krzysztof Kozlowski <[email protected]>
> Cc: Laurent Pinchart <[email protected]>
> Cc: Liu Ying <[email protected]>
> Cc: Lucas Stach <[email protected]>
> Cc: Peng Fan <[email protected]>
> Cc: Pengutronix Kernel Team <[email protected]>
> Cc: Rob Herring <[email protected]>
> Cc: Shawn Guo <[email protected]>
> Cc: Thomas Zimmermann <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> Cc: [email protected]
> ---
>  drivers/gpu/drm/imx/dc/dc-de.c | 44 +++++++++++++++++++++++-----------
>  drivers/gpu/drm/imx/dc/dc-de.h |  1 +
>  2 files changed, 31 insertions(+), 14 deletions(-)
>
...

> diff --git a/drivers/gpu/drm/imx/dc/dc-de.h b/drivers/gpu/drm/imx/dc/dc-de.h
> index 1ac70b4f6276f..e054ad88190e1 100644
> --- a/drivers/gpu/drm/imx/dc/dc-de.h
> +++ b/drivers/gpu/drm/imx/dc/dc-de.h
> @@ -42,6 +42,7 @@ struct dc_de {
>       int irq_shdload;
>       int irq_framecomplete;
>       int irq_seqcomplete;
> +     unsigned int reg_polarityctrl;

suggest add pointer to dc_de_subdev_match_data, in case need more in future
and avoid copy data again.

Frank

>  };
>
>  /* Domain Blend Unit */
> --
> 2.51.0
>

Reply via email to