Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp992380rwi; Wed, 2 Nov 2022 22:39:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5OIDnS8eySF18Zox3wpTV7l/OnpVR7L0OsfylEBCbUBiClmKNHP0I+P6Q/Hvy1tYigcO76 X-Received: by 2002:a17:907:2708:b0:7a6:38d7:5987 with SMTP id w8-20020a170907270800b007a638d75987mr27357791ejk.467.1667453995825; Wed, 02 Nov 2022 22:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667453995; cv=none; d=google.com; s=arc-20160816; b=tA2/Hq4zxAsiGLHscGVYYJ5+TsjPpQZ61dakzTEXH7K2l8G181fqbSXAfjoLyMIjH/ z0gJN9YaCQasYEwEUdvIlJTea4oVbta4p9ork/uFJEitW5nXOvdj99J21fopiRo9LcXY vnT4Dtgz9jDbc6ngYtyupY8YC+hMXeYSnJYnqWkkPm9tMgU9/0Ip5KlP/uReTrmYfhrQ hgQajH2a2cM3EKVX8JN7VQwzQ+udAAMADHg7KV9hsab5XFrOpdiADAKbw/TPsgjtBQ5r 8VDRfZu5rbVjLCegLJklOLmwyi8JRgIohY6bGjeobmVL6J7E7ppsueeBg6Di1mGWGibW ypDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=5Yeiza4hwFUHRxgHQg44jdFShjSSRQePfF5w+VZxIp8=; b=X1UaYN9H5u1LhQ4pJFyzQy9wvIZ/V5qI1DoV2xj7OFH6sWMgwPfPekLm2yWMubO9Um lpLpRp6ro6pNvYq9yZMCdafSndlJz6OOiBsLSccr3n6PzWNN5N1qMu+MbMeT7SeOtNks n8ro+QPYgXDQp2cZ5t2/+JUgjUKq2YW5P/cEM37epauITEL3cr9O+ne7VT+XX1S4UC8t LjV3EAcH0o+QEEtwRWGMhizQ/Ny/pGWF6YOIgPSOdOthGHOA/BoGDThyE4K5U3a9IWqf dd/HBbrbutiVwFyQncnd2Q+MI6TiXsUl1o4zdeD3uA3qAK6oCfulxaahP0lsGVOSH8P8 8l7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dmQVYW6K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020aa7d7d0000000b00461f10cb543si74327eds.154.2022.11.02.22.39.33; Wed, 02 Nov 2022 22:39:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dmQVYW6K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbiKCF3v (ORCPT + 97 others); Thu, 3 Nov 2022 01:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbiKCF3q (ORCPT ); Thu, 3 Nov 2022 01:29:46 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C0D817E19 for ; Wed, 2 Nov 2022 22:29:45 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20221103052943epoutp0440a5ee96d6c740b7d873feb8baaa698a~j-ASEKZ1x2023520235epoutp04Q for ; Thu, 3 Nov 2022 05:29:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20221103052943epoutp0440a5ee96d6c740b7d873feb8baaa698a~j-ASEKZ1x2023520235epoutp04Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667453383; bh=5Yeiza4hwFUHRxgHQg44jdFShjSSRQePfF5w+VZxIp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dmQVYW6K1sZejOA8ISG1usCf5VugaUwF7i7BGKSCRxWKSJCMv1SnoNkqAqatPCedw 4C2yM9LOPeW6/wEm+ClFOsjKS/DUSgYY4O9yBslTN/aqZB6JQQCoxr4Hsl5KRWP0Zq jQzTXmhU+W3PsiRqnpbDiZhNjmVkDsjQjoubF49Q= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20221103052942epcas5p129cf8302467d7f7e220cb4d9a8a5ee68~j-ARdOgbR2620726207epcas5p15; Thu, 3 Nov 2022 05:29:42 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.175]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4N2sl746tcz4x9Q7; Thu, 3 Nov 2022 05:29:39 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1E.54.39477.1C153636; Thu, 3 Nov 2022 14:29:37 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20221102125813epcas5p40a38f17a267276ff8b2bc5861b5d450d~jxel4fnLc0163401634epcas5p4H; Wed, 2 Nov 2022 12:58:13 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221102125813epsmtrp1c3f15e1a5db7a711f83632ea98046a10~jxel3TP5U0619706197epsmtrp18; Wed, 2 Nov 2022 12:58:13 +0000 (GMT) X-AuditID: b6c32a4a-259fb70000019a35-51-636351c172a1 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id E3.04.14392.56962636; Wed, 2 Nov 2022 21:58:13 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221102125810epsmtip1046d53c415e4db4ac2f17ef21a148d6a~jxeiw6bJU1919619196epsmtip1k; Wed, 2 Nov 2022 12:58:10 +0000 (GMT) From: Aakarsh Jain To: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: m.szyprowski@samsung.com, andrzej.hajda@intel.com, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, ezequiel@vanguardiasur.com.ar, jernej.skrabec@gmail.com, benjamin.gaignard@collabora.com, krzysztof.kozlowski+dt@linaro.org, stanimir.varbanov@linaro.org, dillon.minfei@gmail.com, david.plowman@raspberrypi.com, mark.rutland@arm.com, robh+dt@kernel.org, krzk+dt@kernel.org, andi@etezian.org, alim.akhtar@samsung.com, aswani.reddy@samsung.com, pankaj.dubey@samsung.com, smitha.t@samsung.com, aakarsh.jain@samsung.com Subject: [PATCH 2/3] media: s5p-mfc:Add variant data for MFC v7 hardware for Exynos 3250 SOC Date: Wed, 2 Nov 2022 18:36:01 +0530 Message-Id: <20221102130602.48969-2-aakarsh.jain@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221102130602.48969-1-aakarsh.jain@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WTe0xTVxzHd+69vb1oCjcg7AwYsEacEIGWQXdg8nJu3gyzsAfJ5ozYtTdA WtqmLQi6TI3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ckf7CS3bA8xxD7C5/NmP94i23QLgoGrrSKecqCy1EppqOdO+3SybHYCNP4R4/tmN5x aseamryoIv/+EPOL0KpdrrHkZHkKb6ccU8ES57Km9Oip8G692m2yPilb94Q516ZtibVcmf46 1p/K5YTog1oSLUvfZ45+mx4a7R/d/K2g7+YB+RLTXdRLOUQ+OfFYFRpkG+A/Va7V49zJfHUr 00Z8D5X4tcf07is+2HEgolWuj0t7tnLbmY6t06/zq4br8FYZxScqIkNIHa/4A2H/E14kAwAA X-CMS-MailID: 20221102125813epcas5p40a38f17a267276ff8b2bc5861b5d450d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221102125813epcas5p40a38f17a267276ff8b2bc5861b5d450d References: <20221102130602.48969-1-aakarsh.jain@samsung.com> X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit "5441e9dafdfc6dc40fa" which adds mfc v7 support for Exynos3250 and used the same compatible string as used by Exynos5240 but both the IPs are a bit different in terms of IP clock. Lets add variant driver data based on the new compatible string "samsung,exynos3250-mfc" for Exynos3250 SoC. Suggested-by: Alim Akhtar Fixes: 5441e9dafdfc ("[media] s5p-mfc: Core support for MFC v7") Signed-off-by: Aakarsh Jain --- .../media/platform/samsung/s5p-mfc/s5p_mfc.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c index fca5c6405eec..007c7dbee037 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c @@ -1576,8 +1576,18 @@ static struct s5p_mfc_variant mfc_drvdata_v7 = { .port_num = MFC_NUM_PORTS_V7, .buf_size = &buf_size_v7, .fw_name[0] = "s5p-mfc-v7.fw", - .clk_names = {"mfc", "sclk_mfc"}, - .num_clocks = 2, + .clk_names = {"mfc"}, + .num_clocks = 1, +}; + +static struct s5p_mfc_variant mfc_drvdata_v7_3250 = { + .version = MFC_VERSION_V7, + .version_bit = MFC_V7_BIT, + .port_num = MFC_NUM_PORTS_V7, + .buf_size = &buf_size_v7, + .fw_name[0] = "s5p-mfc-v7.fw", + .clk_names = {"mfc", "sclk_mfc"}, + .num_clocks = 2, }; static struct s5p_mfc_buf_size_v6 mfc_buf_size_v8 = { @@ -1647,6 +1657,9 @@ static const struct of_device_id exynos_mfc_match[] = { }, { .compatible = "samsung,mfc-v7", .data = &mfc_drvdata_v7, + }, { + .compatible = "samsung,exynos3250-mfc", + .data = &mfc_drvdata_v7_3250, }, { .compatible = "samsung,mfc-v8", .data = &mfc_drvdata_v8, -- 2.17.1