Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2557855pxv; Sun, 11 Jul 2021 18:04:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBSJbMzJ/Gblljtq04K/Q4MqaVVrWfLNTLe1n1GZjMzHaUM2zyiRAlNrzEbNj2v7bvRAgd X-Received: by 2002:a05:6638:3a1:: with SMTP id z1mr16027913jap.77.1626051885334; Sun, 11 Jul 2021 18:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626051885; cv=none; d=google.com; s=arc-20160816; b=Wab/aFyLqEGSx1dEEiMucnCLDezApaGlohJuJ/BTsxTH5RBW1/mFlIE0kMbinpJ3om PCT+7uHooI3FOlPVnkaXzoZKGCNQ9MJI7XV9ND8PBW0f7zbj936H4ac0ENJkXg6cPLbI Y0e+Gb1i1paEkPQCtSJeQujU+M/abuQCBq7BD1SkwMW/Zpx2olHNh9XXvJu4XcLDrrv8 vIla8+AWyuzjSGPQibX7g6Hq9s4skVHKBCw4CKtET3kPSkJiCeQXzPuOlKLHsaXoY0T+ vegqe/4ETwBaM3x5JVG4D/K9X2mLQQDNWPFvdSxs6JBhnxvFbaXTzpoQdgpi3lljhTaf 1ogA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=bqK0vyc90BaCxGXhP6/iTwoe7T2dDwXSRc11bOiHP0c=; b=j8CfG5dj+FA3fwFNF2hh+n75Apnp/8thn9ijdp8LnuOtKcR+LWssuI4IOXrOs5W0dV +rp5IjbfWZb0OrYfmR0aSa+wMGJtZuJvr2a1mnOqMMy5W5UExyZGrV9rDDXVwcxuhoms pwA0HGxZqhrlmBNGxhPC6dQ99/qK/6SUF1GkD8WN3iEgcL2iO9ctBedW4rQtdgqdOuT6 qt1i8oew5uM0TXWdOrCgAWxpUegUdYNCgHR1Rhy+EtLRKsiYwJZ+Agb7N6ZPtW7qnSi+ NNJQEOGMhHu/XmXO/9RDPTnbY+D5R5k1mKVIxatJmxclUNTLFpFGEx8VDb3NknY9T4qu jWOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si15212506ilk.74.2021.07.11.18.04.34; Sun, 11 Jul 2021 18:04:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232305AbhGLBGB (ORCPT + 99 others); Sun, 11 Jul 2021 21:06:01 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:56240 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232193AbhGLBGB (ORCPT ); Sun, 11 Jul 2021 21:06:01 -0400 X-UUID: 624d87ab3fa5471389b8ed414a92b2df-20210712 X-UUID: 624d87ab3fa5471389b8ed414a92b2df-20210712 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1206878090; Mon, 12 Jul 2021 09:03:09 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Jul 2021 09:03:02 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 12 Jul 2021 09:03:02 +0800 From: Yongqiang Niu To: Chun-Kuang Hu CC: Rob Herring , Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , Jassi Brar , Yongqiang Niu , Fabien Parent , Dennis YC Hsieh , , , , , , , Hsin-Yi Wang Subject: [PATCH v2, 2/3] drm/mediatek: add mt8183 aal support Date: Mon, 12 Jul 2021 09:02:57 +0800 Message-ID: <1626051778-13577-3-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1626051778-13577-1-git-send-email-yongqiang.niu@mediatek.com> References: <1626051778-13577-1-git-send-email-yongqiang.niu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add mt8183 private data Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_aal.c | 1 + drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_aal.c b/drivers/gpu/drm/mediatek/mtk_disp_aal.c index fb212e96..64b4528 100644 --- a/drivers/gpu/drm/mediatek/mtk_disp_aal.c +++ b/drivers/gpu/drm/mediatek/mtk_disp_aal.c @@ -151,6 +151,7 @@ static int mtk_disp_aal_remove(struct platform_device *pdev) static const struct of_device_id mtk_disp_aal_driver_dt_match[] = { { .compatible = "mediatek,mt8173-disp-aal", .data = &mt8173_aal_driver_data}, + { .compatible = "mediatek,mt8183-disp-aal"}, {}, }; MODULE_DEVICE_TABLE(of, mtk_disp_aal_driver_dt_match); diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 67a585e..143ba24 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -420,6 +420,8 @@ static void mtk_drm_unbind(struct device *dev) .data = (void *)MTK_DISP_COLOR }, { .compatible = "mediatek,mt8173-disp-aal", .data = (void *)MTK_DISP_AAL}, + { .compatible = "mediatek,mt8183-disp-aal", + .data = (void *)MTK_DISP_AAL}, { .compatible = "mediatek,mt8173-disp-gamma", .data = (void *)MTK_DISP_GAMMA, }, { .compatible = "mediatek,mt8183-disp-gamma", -- 1.8.1.1.dirty