Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4563163rwb; Tue, 8 Nov 2022 19:55:32 -0800 (PST) X-Google-Smtp-Source: AMsMyM6Y0Vo82MPjkDGSZZro/KlWs8U53IUIKrGDqskSYXrczN3+mHsGnoeMbpUEzIEx/f2FkgFo X-Received: by 2002:a17:906:c08c:b0:78d:b8ce:c28f with SMTP id f12-20020a170906c08c00b0078db8cec28fmr54278588ejz.437.1667966131956; Tue, 08 Nov 2022 19:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667966131; cv=none; d=google.com; s=arc-20160816; b=PZMD1Epm8oVbnt5TUeI7HPIgCE0JGEVBuq+/g0whuhbpz4eXph3iTwqexG9Kos3jPG 9ybVQTemzcQVos4nWGuCsprpsRvPo3fr3F9xJHobo0govzN0FzrS59VaE27clDejLp6A X2CNkCWEu7slXb+37rkLqJzpzkahBk7JxrQzABPDsD7T9FhR9Oh9OPDxDm40EoA10Ph4 jp5t1jqRFayNkAVw5UVy6YoZ560Z3EQXBRjS00zE6QDjlJGXguOSAhYgpCO7XuEZzZDw HctSpbebmnM2Wkdh+tRHiv060ko87u1IWjsU1Xyysv81PJvAjkSYYSk5wuz57O37QNKg Os+A== 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=FtNonu142mw8UcQV9QErqFMq965U9ZP4d9RK4tcsloo=; b=mhvXarBoNSO3AI+1waHlDcDOQgJ5k+ui1/TxBfhcUB2ndG7qbkNriV4McxR6f9eTpb I7spAFhEUUH/uRigWAN/PC+DrXNjSac0gFulwmh8wGV4G0vj75MCutEVuqeA0Fckep4B T6EzDYnTRD+R/k2WlPqhQscYhU9rWG8I/fq9r9VrfZ6wX26Fj6ScEqXWyMN9tffFPxCt 5eZYLLxDg7gZgMteDmW0bKm+9NfCpRD7upGmjL9+4TRJzJXfHqS5TR21sBGoNyU/67Lq C/p/pf6SAOPeoIi0CGnP2G3btcUPDT8bNypfUQl2oOCek8pmmt2hGAodgSFrBskIAJPn 4Ljw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=d93l2GjH; 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 c96-20020a509fe9000000b00461a9775fa9si13844138edf.222.2022.11.08.19.55.06; Tue, 08 Nov 2022 19:55:31 -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=d93l2GjH; 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 S230106AbiKIDuF (ORCPT + 93 others); Tue, 8 Nov 2022 22:50:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbiKIDtv (ORCPT ); Tue, 8 Nov 2022 22:49:51 -0500 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BDAF15A02 for ; Tue, 8 Nov 2022 19:49:50 -0800 (PST) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20221109034948epoutp01a7a277841fa34041967691e7cb10abaa~lzgw3oCNv0516505165epoutp01V for ; Wed, 9 Nov 2022 03:49:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20221109034948epoutp01a7a277841fa34041967691e7cb10abaa~lzgw3oCNv0516505165epoutp01V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1667965788; bh=FtNonu142mw8UcQV9QErqFMq965U9ZP4d9RK4tcsloo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d93l2GjHL2Y83nrqIaOcQg27A1SEK+oQ0XqqhHXNqTw+IcoafmpzkNjMK6jS5jxUJ 44Uv5DQpLoAI2NoMeUsonh8V4ojIhixcjdq8ApnzXYJnq+5isQVbzmHY4SgFr/5uk0 J4OPsjUdG88+jHYxB6TChH1MrO/WBzJ4jhqZpAGw= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20221109034947epcas5p47b7c3c4a6990d77c4fc9285d618d6db3~lzgwAozRx0918409184epcas5p4O; Wed, 9 Nov 2022 03:49:47 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.178]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4N6WF54W0Bz4x9Pp; Wed, 9 Nov 2022 03:49:45 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 2A.0A.01710.9532B636; Wed, 9 Nov 2022 12:49:45 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20221109034807epcas5p2eae5872bb8fb3e970c1bade98dd171c5~lzfSES6q12343923439epcas5p2k; Wed, 9 Nov 2022 03:48:07 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20221109034807epsmtrp1917e77c1d9ca089a967bc2ce185e4d4c~lzfSDJ_i31103811038epsmtrp1_; Wed, 9 Nov 2022 03:48:07 +0000 (GMT) X-AuditID: b6c32a49-c9ffa700000006ae-e3-636b2359687f Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5F.AF.14392.6F22B636; Wed, 9 Nov 2022 12:48:06 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20221109034803epsmtip125c02760fc78da77fa3a1cb17e081af3~lzfOeoH4W0103001030epsmtip17; Wed, 9 Nov 2022 03:48:03 +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 v2 2/3] media: s5p-mfc:Add variant data for MFC v7 hardware for Exynos 3250 SoC Date: Wed, 9 Nov 2022 09:25:06 +0530 Message-Id: <20221109035507.69086-2-aakarsh.jain@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221109035507.69086-1-aakarsh.jain@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VTe0xbVRz23NveXmaKN7DHGbKNdE6ECGuxsMNSHosTL+qUOJ3DxdS7cuXR 0tY+hm5RYRndJAypcYYyBqQFnBQotsA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qa21r4yPPZQk/bLXx3ZpmaIxpfXwqBt1+wYgGtw6kZwT+xD4KPneG bPeesJETR1I6Q0urlvQHbdSVJgQzu8+Etuvavw3BPYK5Bq81PKpCmZtsyrfdkv8cqL0hu26I 7YsU9B7fkVW3qOB3NmH0BogM5oFp4/Is54fYoZiAfaJz2TegLEO2IsH4ZfP7yG7cfK7k/Gx8 ycgxWh5lbI2WSHZ1bqg2RLdFr9tYsj9g7LQsvMeUXnzh4kxcU5GU0CQrwoJxtUbxB2Icqh8m AwAA X-CMS-MailID: 20221109034807epcas5p2eae5872bb8fb3e970c1bade98dd171c5 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: 20221109034807epcas5p2eae5872bb8fb3e970c1bade98dd171c5 References: <20221109035507.69086-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 "5441e9dafdfc6dc40fa" 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. 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