[<prev] [next>] [day] [month] [year] [list]
Message-ID: <9a839b69-d798-0957-bb94-7d009fdcceec@gmail.com>
Date: Fri, 16 Dec 2022 13:38:24 +0100
From: Matthias Brugger <matthias.bgg@...il.com>
To: "nathan.lu" <nathan.lu@...iatek.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Chun-Kuang Hu <chunkuang.hu@...nel.org>,
Philipp Zabel <p.zabel@...gutronix.de>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>
Cc: "jason-jh . lin" <jason-jh.lin@...iatek.com>,
CK Hu <ck.hu@...iatek.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Rex-BC Chen <rex-bc.chen@...iatek.com>,
Moudy Ho <moudy.ho@...iatek.com>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-mediatek@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, lancelot.wu@...iatek.com,
Project_Global_Chrome_Upstream_Group@...iatek.com,
amy zhang <Amy.Zhang@...iatek.com>
Subject: Re: [PATCH v4 6/6] drm/mediatek: add mediatek-drm of vdosys0 support
for mt8188
On 06/12/2022 03:00, nathan.lu wrote:
> From: Nathan Lu <nathan.lu@...iatek.com>
>
> add driver data of mt8188 vdosys0 to mediatek-drm and the sub driver.
>
> Signed-off-by: amy zhang <Amy.Zhang@...iatek.com>
> Signed-off-by: Nathan Lu <nathan.lu@...iatek.com>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@...il.com>
> ---
> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> index b12e5b977c50..8058a5ec2f1d 100644
> --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> @@ -176,6 +176,18 @@ static const enum mtk_ddp_comp_id mt8186_mtk_ddp_ext[] = {
> DDP_COMPONENT_DPI0,
> };
>
> +static const enum mtk_ddp_comp_id mt8188_mtk_ddp_main[] = {
> + DDP_COMPONENT_OVL0,
> + DDP_COMPONENT_RDMA0,
> + DDP_COMPONENT_COLOR0,
> + DDP_COMPONENT_CCORR,
> + DDP_COMPONENT_AAL0,
> + DDP_COMPONENT_GAMMA,
> + DDP_COMPONENT_POSTMASK0,
> + DDP_COMPONENT_DITHER0,
> + DDP_COMPONENT_DP_INTF0,
> +};
> +
> static const enum mtk_ddp_comp_id mt8192_mtk_ddp_main[] = {
> DDP_COMPONENT_OVL0,
> DDP_COMPONENT_OVL_2L0,
> @@ -259,6 +271,11 @@ static const struct mtk_mmsys_driver_data mt8186_mmsys_driver_data = {
> .ext_len = ARRAY_SIZE(mt8186_mtk_ddp_ext),
> };
>
> +static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = {
> + .main_path = mt8188_mtk_ddp_main,
> + .main_len = ARRAY_SIZE(mt8188_mtk_ddp_main),
> +};
> +
> static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = {
> .main_path = mt8192_mtk_ddp_main,
> .main_len = ARRAY_SIZE(mt8192_mtk_ddp_main),
> @@ -516,6 +533,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = {
> .data = (void *)MTK_DISP_MUTEX },
> { .compatible = "mediatek,mt8186-disp-mutex",
> .data = (void *)MTK_DISP_MUTEX },
> + { .compatible = "mediatek,mt8188-disp-mutex",
> + .data = (void *)MTK_DISP_MUTEX },
> { .compatible = "mediatek,mt8192-disp-mutex",
> .data = (void *)MTK_DISP_MUTEX },
> { .compatible = "mediatek,mt8195-disp-mutex",
> @@ -600,6 +619,8 @@ static const struct of_device_id mtk_drm_of_ids[] = {
> .data = &mt8183_mmsys_driver_data},
> { .compatible = "mediatek,mt8186-mmsys",
> .data = &mt8186_mmsys_driver_data},
> + { .compatible = "mediatek,mt8188-vdosys0",
> + .data = &mt8188_vdosys0_driver_data},
> { .compatible = "mediatek,mt8192-mmsys",
> .data = &mt8192_mmsys_driver_data},
> { .compatible = "mediatek,mt8195-mmsys",
Powered by blists - more mailing lists