Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp140403pxv; Wed, 30 Jun 2021 01:56:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7nPprd3eKt53Sej6ZMGU+hz+v1JWceAgjTzcN5kP2xfpFZxa0edeWDKXl2VTOurwiTPeo X-Received: by 2002:a05:6402:1057:: with SMTP id e23mr2325525edu.352.1625043384005; Wed, 30 Jun 2021 01:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625043384; cv=none; d=google.com; s=arc-20160816; b=rRGNsHjzKOvIxkymnWHJSVYHOi814tb0aVAH/37IqULt/i0rJEecYcko9MFjA8cxAI DhaE5NHFTHq1jwRd73lcLeEWDlSvdq1aOXlGIOVoQ3PQqszRG7vk7xhh/AKr5Ef7JL44 uK6vOxz6DtQHWWPywoCur0f8UfEG33Dd9aE1SzC+/OfejOQxdKeemGPCnxXpizvSlHTW ka3xDs+XCMaz+tM96ewWWWwxyTUQYpPVforHBos/sw8rKYQYN7sHxasGHNTpuXyAbszM xAmXiZU06iLMydp2GQgzWW7FXocIhNhuakCsjcWguExRXNK8Zaxp7RKpktSVNRHFQqX5 OMUw== 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=9n1dgwqhmQMxIrkPI/RLr8InmLpaxNe61r/2VQVDloU=; b=v1JT/vP0aZmhq3940tFe2xSlRBikUkOM2uq22Kg/ARoK7uv1VJlQAXPmWhDzynU3XU y6qkuAzyWydhWwXd87gwAjLbxhg+K9Yg9td4jIJk+0A+yvAOMDLdLwcZDKq1bAquFzYD GyEN3HAalY+KrFKSLb3U6xEsu50Whz82YilPB2NRGQtksa3AA4+UmDz7ZaXjDiVs/jkc lPHl6kVbdtKCiy12Ew5w3olC4QiokA3ifw8ew8K/NRK8wDOqarxAkZuTF+aADXno+H/V 3YI+JXHiKqQJKBHn8dky4Xp64gFX6h0p+0JapD3vYeLlnKH37gnmANqXgiwqIlHBgW++ BNUQ== 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 z4si20423703edb.208.2021.06.30.01.56.00; Wed, 30 Jun 2021 01:56:23 -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 S233653AbhF3I52 (ORCPT + 99 others); Wed, 30 Jun 2021 04:57:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54795 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233442AbhF3I51 (ORCPT ); Wed, 30 Jun 2021 04:57:27 -0400 X-UUID: 29cf1156aba845008e04bd239f3e3bfd-20210630 X-UUID: 29cf1156aba845008e04bd239f3e3bfd-20210630 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 628572867; Wed, 30 Jun 2021 16:52:59 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Jun 2021 16:52:58 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 30 Jun 2021 16:52:56 +0800 From: Irui Wang To: Hans Verkuil , Tzung-Bi Shih , Alexandre Courbot , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa CC: Hsin-Yi Wang , Maoguang Meng , Longfei Wang , Yunfei Dong , Fritz Koenig , Irui Wang , , , , , , , Subject: [PATCH 3/3] media: mtk-vcodec: Add MT8195 H264 venc driver Date: Wed, 30 Jun 2021 16:52:47 +0800 Message-ID: <20210630085247.27554-4-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210630085247.27554-1-irui.wang@mediatek.com> References: <20210630085247.27554-1-irui.wang@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 Add MT8195 venc driver's compatible and device private data. Signed-off-by: Irui Wang --- drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h | 1 + .../media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h index c6c7672fecfb..3f83710b4fa5 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_drv.h @@ -304,6 +304,7 @@ enum mtk_chip { MTK_MT8173, MTK_MT8183, MTK_MT8192, + MTK_MT8195, }; /** diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c index 4489a9744cd7..7b3e0ea4c410 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c @@ -428,6 +428,18 @@ static const struct mtk_vcodec_enc_pdata mt8192_pdata = { .core_id = VENC_SYS, }; +static const struct mtk_vcodec_enc_pdata mt8195_pdata = { + .chip = MTK_MT8195, + .uses_ext = true, + .capture_formats = mtk_video_formats_capture_h264, + .num_capture_formats = ARRAY_SIZE(mtk_video_formats_capture_h264), + .output_formats = mtk_video_formats_output, + .num_output_formats = ARRAY_SIZE(mtk_video_formats_output), + .min_bitrate = 64, + .max_bitrate = 100000000, + .core_id = VENC_SYS, +}; + static const struct of_device_id mtk_vcodec_enc_match[] = { {.compatible = "mediatek,mt8173-vcodec-enc", .data = &mt8173_avc_pdata}, @@ -435,6 +447,7 @@ static const struct of_device_id mtk_vcodec_enc_match[] = { .data = &mt8173_vp8_pdata}, {.compatible = "mediatek,mt8183-vcodec-enc", .data = &mt8183_pdata}, {.compatible = "mediatek,mt8192-vcodec-enc", .data = &mt8192_pdata}, + {.compatible = "mediatek,mt8195-vcodec-enc", .data = &mt8195_pdata}, {}, }; MODULE_DEVICE_TABLE(of, mtk_vcodec_enc_match); -- 2.18.0