From patchwork Sun Nov 5 23:36:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 13446159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C359EC4332F for ; Sun, 5 Nov 2023 23:37:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SeSieeEqnAUUv8iS4ceX3VQl85adiyr/N0BDhjsBi80=; b=xZydCA8lApe1Oi 6SzDWgonqvwMV/1+ibbXARaS6LYyFUg/2BUdNBoYAEUKbaZVrlpTFkBgI0VXqh/HjUgixFNLF4XFI GpjhHIWlfGUKBquqOggdV94dqWHLGXsgCHar1kGCZaBF5EVprcQInxeVdxZMIIC49gru3G8RLopFG iNaryYxelljyrbFcX3aIYjIwIVI0eFjaoh8GLT4a9gKYW/bkYIEsmYoGdr80YQ2uBcgI02iEkNbTU 5a+zezD2c0zSCVubUU3j5RNnmOW+qV6NE1MNxM9+szr/cgDR8rew03OQc4xk5BzaACHJs+AHUssc7 +nO7McS5TnqPeBB5DaVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qzmfz-00FdBd-1x; Sun, 05 Nov 2023 23:37:07 +0000 Received: from smtp.forwardemail.net ([149.28.215.223]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qzmfw-00FdAR-0X for linux-rockchip@lists.infradead.org; Sun, 05 Nov 2023 23:37:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1699227419; bh=Vh7xRkatPe36vScGEBJ3DJCsjTy4cqzyIECw5yN0YeU=; b=vpl/H/TfrCfzPiO9QbCFtpjQQfxFwxTdLciqSHWbrOZlRxeXXryn4aZpLiuBlyfl8YP63l5RH SeviPXuaUjPzmyIVn9RyX2uqaulgnjEHkkH/d0sNB+cuHBdOh90dzrzIwAgP1x+GS7PQSS/dNIs jmdA1jrTqHE78cB3xxxKo/LTbmdHqy03KGZKjjCnon6MUscgcuBiq60NeG4JBkRhZUbjY30KdK0 Qq/pzotlDrgOQZIiAQLdBQurwxX1FS2qxN+vbfPtesYjpZ7VU6OopdplOaPwrFHFyhzzwW18gMQ yyzrIkUIv0H8gbsLU0CXngDSLj5JvH/n3Da2IKtS8RGw== From: Jonas Karlman To: Ezequiel Garcia , Mauro Carvalho Chehab , Hans Verkuil , "Greg Kroah-Hartman" Cc: Alex Bee , Nicolas Dufresne , Sebastian Fricke , Benjamin Gaignard , Christopher Obbard , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jonas Karlman Subject: [PATCH 4/9] media: rkvdec: Add RK3288 variant Date: Sun, 5 Nov 2023 23:36:11 +0000 Message-ID: <20231105233630.3927502-5-jonas@kwiboo.se> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231105233630.3927502-1-jonas@kwiboo.se> References: <20231105233630.3927502-1-jonas@kwiboo.se> MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 6548271a1b004d4cddbe0c80 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231105_153704_243090_4BB8372F X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Alex Bee Add a RK3288 variant, a version of the Rockchip VDEC IP that only support HEVC decoding. Signed-off-by: Alex Bee Signed-off-by: Jonas Karlman --- drivers/staging/media/rkvdec/rkvdec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/rkvdec/rkvdec.c index 9cf7b63c1371..aa017ad40270 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -1200,6 +1200,10 @@ static void rkvdec_watchdog_func(struct work_struct *work) } } +static const struct rkvdec_variant rk3288_rkvdec_variant = { + .capabilities = RKVDEC_CAPABILITY_HEVC, +}; + static const struct rkvdec_variant rk3399_rkvdec_variant = { .capabilities = RKVDEC_CAPABILITY_HEVC | RKVDEC_CAPABILITY_H264 | @@ -1207,6 +1211,10 @@ static const struct rkvdec_variant rk3399_rkvdec_variant = { }; static const struct of_device_id of_rkvdec_match[] = { + { + .compatible = "rockchip,rk3288-vdec", + .data = &rk3288_rkvdec_variant, + }, { .compatible = "rockchip,rk3399-vdec", .data = &rk3399_rkvdec_variant,