From patchwork Fri Mar 1 12:20:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10835119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1DD771515 for ; Fri, 1 Mar 2019 12:21:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CB1A2D8F5 for ; Fri, 1 Mar 2019 12:21:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00C962DA38; Fri, 1 Mar 2019 12:21:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7804C2D8F5 for ; Fri, 1 Mar 2019 12:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387692AbfCAMV2 (ORCPT ); Fri, 1 Mar 2019 07:21:28 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39153 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388159AbfCAMVN (ORCPT ); Fri, 1 Mar 2019 07:21:13 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190301122112euoutp0244f0fbd4b01f5de46cefe89d5b876a8e~H1RKNDUrY2156521565euoutp02v; Fri, 1 Mar 2019 12:21:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190301122112euoutp0244f0fbd4b01f5de46cefe89d5b876a8e~H1RKNDUrY2156521565euoutp02v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1551442872; bh=ga2SLg3yv9wsqZ8MVIaXNymZsZ9/UV+lZIuI9VL5Rsg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Uo9kq2oAc5h6rzkaOgncTGCCVth4Xz5j52ElzTA3x08iGALChFamqfMl9L3JdNiIB 7yZsqIFzjbyj4uiy0cKVAR85HuoOH4vOIxw6KTu6gkxYJUdWBqQ/EZlXWkf/e+s4ID ne8nibQLx8hi5X6aiEXE8FHR8FRcxmgJL6iT2QaE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190301122111eucas1p20b488adfb4c887705fcd5074308d1b1a~H1RJ1jPLe1653116531eucas1p2o; Fri, 1 Mar 2019 12:21:11 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C4.5E.04441.7B3297C5; Fri, 1 Mar 2019 12:21:11 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190301122111eucas1p2cb70cdfa7e8c1ad6e32af695a2f88b10~H1RJLVCnt2981229812eucas1p2Z; Fri, 1 Mar 2019 12:21:11 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-63-5c7923b761a2 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 97.6C.04128.7B3297C5; Fri, 1 Mar 2019 12:21:11 +0000 (GMT) Received: from AMDC3748.DIGITAL.local ([106.120.43.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PNO007ENSZ56Z20@eusync3.samsung.com>; Fri, 01 Mar 2019 12:21:11 +0000 (GMT) From: Andrzej Hajda To: Inki Dae Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 14/23] drm/exynos: add plane update/disable callbacks for planes Date: Fri, 01 Mar 2019 13:20:46 +0100 Message-id: <20190301122055.7135-15-a.hajda@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190301122055.7135-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42LZduzned3typUxBt3PlS1urTvHarFxxnpW iytf37NZTLo/gcVixvl9TBZrj9xld2DzuN99nMmjb8sqRo/Pm+QCmKO4bFJSczLLUov07RK4 Mja/fshScJqz4mT7D9YGxokcXYwcHBICJhIf99t2MXJyCAmsYJRoOCjexcgFZH9mlDi3ewoT SAKk5kPjd3aIxDJGidb5Z9ggnP+MEn82/2MBqWIT0JT4u/kmG4gtIqAssWpfO1gHs8AlRonX J7sZQRLCAkESX7d3sYCsZhFQlWjdUgwS5hWwkJj3qZMNYpu8xOoNB5hBbE6g+MGVEHMkBN6y Slz+0wFV5CLx//t+RghbRuLy5G4WCLteomnmFWaIhg5GiROLl0M1WEscPn6RFcRmFuCTmLRt OjPE/7wSHW1CECUeEifvvmCF+KybUWJ7yyfGCYwSCxgZVjGKp5YW56anFhvmpZbrFSfmFpfm pesl5+duYgRG0ul/xz/tYPx6KekQowAHoxIPb8LL8hgh1sSy4srcQ4wSHMxKIrx8DJUxQrwp iZVVqUX58UWlOanFhxilOViUxHmrGR5ECwmkJ5akZqemFqQWwWSZODilGhjdOK1snG74mViu e7b0hPxhwVKxZwxyqrb7N4Y+sk0vCzB/eK/Yu00yo7xryklf340dVmtCv0/fGLU6zinRYaVb UEVV2BIBTcM3HC/3FM/mm19t019oZbH7WMG+dY1+qjOLA78JT5ZS/NZ2/FQRVxCby8Wpgvnf jW7b/V19SEPglqvWhKU+s5VYijMSDbWYi4oTAWTEEa2gAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGJMWRmVeSWpSXmKPExsVy+t/xq7rblStjDJYc5bS4te4cq8XGGetZ La58fc9mMen+BBaLGef3MVmsPXKX3YHN4373cSaPvi2rGD0+b5ILYI7isklJzcksSy3St0vg ytj8+iFLwWnOipPtP1gbGCdydDFyckgImEh8aPzO3sXIxSEksIRR4sTKhUwQTiOTxPXju9hB qtgENCX+br7JBmKLCChLrNrXDtbBLHCFUaL9WxeQw8EhLBAgMeW5P4jJIqAq0bqlGKScV8BC Yt6nTjaIZfISqzccYAaxOYHiB1e2g3UKCZhLbDodNYGRZwEjwypGkdTS4tz03GIjveLE3OLS vHS95PzcTYzA0Nh27OeWHYxd74IPMQpwMCrx8Ca8LI8RYk0sK67MPcQowcGsJMLLx1AZI8Sb klhZlVqUH19UmpNafIhRmoNFSZz3vEFllJBAemJJanZqakFqEUyWiYNTqoFRRlw99fyfC4pr PZW5uxPLedfO2xX7QfDQPeZFa8t8nD71B93aFt0z98WvR8ej7tb//Ho97yVnTKj3wknXWF5u l2GsrFg5udxukUH5TMEDBwTeZHzVWL4/Y7ET7xUOmVtXMzLb1xXsN1t/1qG7JzG1SfHchJg5 epkLa2PFj+7K6T+/POrb3M28SizFGYmGWsxFxYkAb4q0SgkCAAA= X-CMS-MailID: 20190301122111eucas1p2cb70cdfa7e8c1ad6e32af695a2f88b10 CMS-TYPE: 201P X-CMS-RootMailID: 20190301122111eucas1p2cb70cdfa7e8c1ad6e32af695a2f88b10 References: <20190301122055.7135-1-a.hajda@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Display controllers in Exynos beside native planes/windows can use external planes provided by other IPs - GSCALER, FIMD, VPP. To add support to them we will need plane specific callbacks. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 6643db865500..5d06e796dc80 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -76,6 +76,12 @@ to_exynos_plane_state(struct drm_plane_state *state) #define EXYNOS_DRM_PLANE_CAP_PIX_BLEND (1 << 4) #define EXYNOS_DRM_PLANE_CAP_WIN_BLEND (1 << 5) +struct exynos_drm_plane; +struct exynos_drm_plane_ops { + void (*update_plane)(struct exynos_drm_plane *plane); + void (*disable_plane)(struct exynos_drm_plane *plane); +}; + /* * Exynos drm common overlay structure. * @@ -89,6 +95,7 @@ to_exynos_plane_state(struct drm_plane_state *state) struct exynos_drm_plane { struct drm_plane base; + const struct exynos_drm_plane_ops *ops; unsigned int index; unsigned int capabilities; };