Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6399199rwb; Mon, 14 Nov 2022 20:08:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/er0YcSEb5qTZj5h73uzffgEW98gxLOW7Y6GkEeuyya5xUTfu2vmHQAFYXLroiEnKIp1/ X-Received: by 2002:a63:d354:0:b0:46b:3acb:77b2 with SMTP id u20-20020a63d354000000b0046b3acb77b2mr13953214pgi.560.1668485319333; Mon, 14 Nov 2022 20:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668485319; cv=none; d=google.com; s=arc-20160816; b=omjYbaAJI0W15sY5nO074/cSdTLtILvO4DZvgu5vgM6+cRtsh0Ns3A8z4QIukqh9ao 456035zT4hIj3kTs/LbpObf3z3jtsSwofSM8OuWPHFwfHNDuC2Nz94J8OnGvrt9SptMB u4QgCU+V51jGTbhn7kwtNztXvNmln3+9YQdeTleKgQUh+ojNgrcSLZEnI02zRv5pv6t2 RAq7ZJKipf9YnqDA6oU3JzyCYNRbaT1vQxpP62Wn4HBUwkYHXifuRAqwsDrZ9moC+gDI iVx+uJDsSycAaox4EHOxyDNbVJC7PFV6MlbVEGJz6OYVCcJMo5VfJdS8BnVF1UYLZyro Q3Xw== 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=tLxH/oSbN4ttWhYedYhc0ui5x2yb6SohQZ11AMUJCvM=; b=Fdw25W2iLdlRshTQhmiedL79EiBU3IV7DYp+/+YGFUgijPaCEjSvGEAWnQJ8Xn8Je6 xhtt5bNWAgu/JqE0YA6anLljBRO9CMDnwFzdSnFrVSNO51gI68Opux5Z7Tc5S26v5S4d RlY30hTnKVXQ7Fz/E1Vt6NUhHnkNreZRlrDB5+/132uSdr7fdDgsRDHvYV4kHtxqyI73 MS/DfRDz7AWEfsQnHBkpW3yiDdmo/FlbKP+3Wa7CZqHts4LEt1pjiSBeNNh5W79n0JQf Lx37hhwEuvL2Q9lTY3mpsYJ9xCSvD/RQMXmXG6rPI+5LiqRyq8+scQf/zl0WT24UdDfr CJ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=bUMkZ1ub; 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 c20-20020a6566d4000000b004701a950fe7si10787563pgw.551.2022.11.14.20.08.28; Mon, 14 Nov 2022 20:08:39 -0800 (PST) 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=bUMkZ1ub; 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 S237649AbiKOEBu (ORCPT + 89 others); Mon, 14 Nov 2022 23:01:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232579AbiKOEBc (ORCPT ); Mon, 14 Nov 2022 23:01:32 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D5FC15FDE for ; Mon, 14 Nov 2022 20:01:30 -0800 (PST) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221115040128epoutp01fb0c8c4fc2e562e383650803c0c587eb~npiqRA93w2094820948epoutp01g for ; Tue, 15 Nov 2022 04:01:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221115040128epoutp01fb0c8c4fc2e562e383650803c0c587eb~npiqRA93w2094820948epoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1668484888; bh=tLxH/oSbN4ttWhYedYhc0ui5x2yb6SohQZ11AMUJCvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bUMkZ1ubFkkMNhORoeaZCx5sgCFcVsQmpxz1d8xxy4/hFZ/0hjrrI5BAbnbTgMK3f Tp+Gi0cp7+aqiP67J9zE3opH7TpokZLdRG3aa5jKO/3cg2L6dLj+G49hdL4iUlMMEt BM/8BDgOFbx8lMmJ1C4SmCQfWALr6QAC3dIZSVGM= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221115040127epcas5p419d029e877d5109e154d2f52102fb3da~npipUHNKA1030510305epcas5p4a; Tue, 15 Nov 2022 04:01:27 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.180]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4NBCCn6thMz4x9Q3; Tue, 15 Nov 2022 04:01:25 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 71.A0.39477.51F03736; Tue, 15 Nov 2022 13:01:25 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20221114114409epcas5p32057f807dd538f874f8fd4a940c9de00~ncNWRC9St2923329233epcas5p3u; Mon, 14 Nov 2022 11:44:09 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221114114409epsmtrp184711f2642d3142513c0017d9aab5cd2~ncNWP1IYX0315803158epsmtrp1M; Mon, 14 Nov 2022 11:44:09 +0000 (GMT) X-AuditID: b6c32a4a-007ff70000019a35-cb-63730f155a0f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 66.71.18644.90A22736; Mon, 14 Nov 2022 20:44:09 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221114114406epsmtip2c6b27252ae24b80d4ee2ec90a03e4e2b~ncNTHWzGc1105511055epsmtip2U; Mon, 14 Nov 2022 11:44:06 +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 v5 2/3] media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC Date: Mon, 14 Nov 2022 17:20:23 +0530 Message-Id: <20221114115024.69591-3-aakarsh.jain@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221114115024.69591-1-aakarsh.jain@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VTa1AbVRSeu7vZLGjoDhS4UkoxIx3AARIgcSlPlalbHzMgan2MxpAsz7wm Gyq0TMUOo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 0R8euJUnJzZX+gecKC2490bg8mqJ38Z9LiW6fc4y6t36V8r0H/d4cVfap4utOjL1b8BWT+aA trW2f5r8b99WXTbn2c9TNRWTJi9i6q7vmKt7TPhuoeS2xP3zlsjVGQu3aOT6XsqNPrs6+8H6 X3KS+U1Bj/0yat97e7/aE8azYObx/4y39u2IlX6vmXbOOK+svin1X6CPlK1uxKn5unbLF380 6ZhUF/5W6oRSwtl1rpUMhjMt5WODKs5t9H3b2rtsxq9tb5RYijMSDbWYi4oTATvyGfckAwAA X-CMS-MailID: 20221114114409epcas5p32057f807dd538f874f8fd4a940c9de00 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: 20221114114409epcas5p32057f807dd538f874f8fd4a940c9de00 References: <20221114115024.69591-1-aakarsh.jain@samsung.com> X-Spam-Status: No, score=-4.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 5441e9dafdfc6dc40 ("[media] s5p-mfc: Core support for MFC v7") which adds mfc v7 support for Exynos3250 and use the same compatible string as used by Exynos5240 but both the IPs are a bit different in terms of IP clock. 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