Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp940731pxb; Thu, 19 Nov 2020 18:37:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8yzzxnRWJQSBWglHTllM1m8Bgq+nFBpIvONaKGaeRqdfH4yCkq2/KEw/tabnUyNap8F7Q X-Received: by 2002:a17:906:af8b:: with SMTP id mj11mr13763071ejb.170.1605839847722; Thu, 19 Nov 2020 18:37:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605839847; cv=none; d=google.com; s=arc-20160816; b=aDa6xYwMxmMQ51VR+kUe4Q/lLqIKqUnmhGk7qCLOc8PEIx48g/92XAPQXWuZhPHDPh b2auUKwghVpTR83scZ4U8BUIJ5TXb7O9EYDLHIhNplj6xLpGjT2WmIxmnM5e6UDfQkoc r/6AmRxBBqjhGIP/WH3EsGo5x2uX2KHAIwm2lV/e8NYJgnMsRm3M7Ml30ov9U7xTfDYI nvgWSK88iE/t1xpQcCQ8GE4RYJDP5sUavRo1glFzJyjpNaIjG6ZOgRcujeWnRxeFqPMN mJifpH9IpXWN0DEu5puAeIQRfKar0ukSa85XWCT7RS8fQ8XOeF6n3AVdZ42T8EZH12zO fLJA== 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=QJKL59CIPli94760SRcYdTm+aQ0FpSpr2j6KVaRidnE=; b=M6At/CTgp2BjGafl41sf+QOULfzTI9RKkuvzFuqHzd7VCYzHMdTlEppIKHqBxkIY5X tJDgqCQ9f6R3x87AKwlLFmDJMH2IfaKmFN1bacigl17pd9ClL/4hdP0GWxiCesy3QTGB CQ8DIRoX0JcleSzRpfGYH6XVWob/hDVf4dW6HYtUsMQnN0coVSZLD9BVJvfANe/+LW4y GanVjitX4bvh79i4+u6ulZJAj98kga2cx0g9JX225fo+0Kc1zPTRSjMyWPTWv4RPuUBS ESm0HOhxOPC19cP5AQQ5Aszp9SqspjwzSzLoCNEK/aAqRb3ZLJ6cYRdNp08oVXFcmIKi ovbg== 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 x14si1000163edj.87.2020.11.19.18.37.03; Thu, 19 Nov 2020 18:37:27 -0800 (PST) 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 S1727083AbgKTCe2 (ORCPT + 99 others); Thu, 19 Nov 2020 21:34:28 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:55690 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726775AbgKTCeY (ORCPT ); Thu, 19 Nov 2020 21:34:24 -0500 X-UUID: 45758c8d673644cda326fc79ed211fb8-20201120 X-UUID: 45758c8d673644cda326fc79ed211fb8-20201120 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 580314; Fri, 20 Nov 2020 10:29:11 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 20 Nov 2020 10:29:10 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 20 Nov 2020 10:29:09 +0800 From: Daoyuan Huang To: Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Hans Verkuil , Jernej Skrabec CC: Maoguang Meng , Krzysztof Kozlowski , daoyuan huang , Ping-Hsun Wu , Geert Uytterhoeven , Rob Landley , Laurent Pinchart , , , , , , , , , , , , , , , Subject: [PATCH v4 3/4] media: platform: Add Mediatek MDP3 driver KConfig Date: Fri, 20 Nov 2020 10:29:05 +0800 Message-ID: <1605839346-10648-4-git-send-email-daoyuan.huang@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1605839346-10648-1-git-send-email-daoyuan.huang@mediatek.com> References: <1605839346-10648-1-git-send-email-daoyuan.huang@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 From: daoyuan huang This patch adds Kconfig for Mediatek Media Data Path 3 (MDP3) driver. MDP3 is used to do scaling and color format conversion. Signed-off-by: Ping-Hsun Wu Signed-off-by: daoyuan huang --- drivers/media/platform/Kconfig | 17 +++++++++++++++++ drivers/media/platform/Makefile | 2 ++ 2 files changed, 19 insertions(+) diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index c57ee78fa99d..2eb8ecab4fb8 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -248,6 +248,23 @@ config VIDEO_MEDIATEK_MDP To compile this driver as a module, choose M here: the module will be called mtk-mdp. +config VIDEO_MEDIATEK_MDP3 + depends on MTK_IOMMU || COMPILE_TEST + depends on VIDEO_DEV && VIDEO_V4L2 + depends on ARCH_MEDIATEK || COMPILE_TEST + depends on MTK_SCP && MTK_CMDQ + tristate "Mediatek MDP3 driver" + select VIDEOBUF2_DMA_CONTIG + select V4L2_MEM2MEM_DEV + select VIDEO_MEDIATEK_VPU + help + It is a v4l2 driver and present in Mediatek MT8183 SoCs. + The driver supports for scaling and color space conversion. + Supports ISP PASS2(DIP) direct link for yuv image output. + + To compile this driver as a module, choose M here: the + module will be called mtk-mdp3. + config VIDEO_MEDIATEK_VCODEC tristate "Mediatek Video Codec driver" depends on MTK_IOMMU || COMPILE_TEST diff --git a/drivers/media/platform/Makefile b/drivers/media/platform/Makefile index 62b6cdc8c730..36559eaf2607 100644 --- a/drivers/media/platform/Makefile +++ b/drivers/media/platform/Makefile @@ -73,6 +73,8 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec/ obj-$(CONFIG_VIDEO_MEDIATEK_MDP) += mtk-mdp/ +obj-$(CONFIG_VIDEO_MEDIATEK_MDP3) += mtk-mdp3/ + obj-$(CONFIG_VIDEO_MEDIATEK_JPEG) += mtk-jpeg/ obj-$(CONFIG_VIDEO_QCOM_CAMSS) += qcom/camss/ -- 2.18.0