From patchwork Mon Jan 2 08:39:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9493177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7197B60414 for ; Mon, 2 Jan 2017 08:39:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EA70223B2 for ; Mon, 2 Jan 2017 08:39:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 623A226212; Mon, 2 Jan 2017 08:39:39 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F2B7223B2 for ; Mon, 2 Jan 2017 08:39:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A95396E3F6; Mon, 2 Jan 2017 08:39:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5DCB26E3F6 for ; Mon, 2 Jan 2017 08:39:32 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJ500C049DS7T40@mailout1.w1.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 02 Jan 2017 08:39:28 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170102083923eucas1p28ddc566732cba4d01971c06ce99101c1~V56ieU2al0577405774eucas1p2d; Mon, 2 Jan 2017 08:39:23 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 11.19.02512.BB11A685; Mon, 2 Jan 2017 08:39:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170102083922eucas1p1d327e428675b67876e8f3462f0bcf170~V56hxWqBG2479124791eucas1p18; Mon, 2 Jan 2017 08:39:22 +0000 (GMT) X-AuditID: cbfec7f2-f79de6d0000009d0-69-586a11bb3d5a Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 3E.84.03557.7E11A685; Mon, 2 Jan 2017 08:40:07 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJ500AJ89DMOU30@eusync2.samsung.com>; Mon, 02 Jan 2017 08:39:22 +0000 (GMT) From: Andrzej Hajda To: Inki Dae , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos/decon5433: configure sysreg in case of hardware trigger Date: Mon, 02 Jan 2017 09:39:13 +0100 Message-id: <1483346353-5163-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsWy7djPc7q7BbMiDHa+lLK4te4cq8XGGetZ La58fc9mMefDNkaLSfcnsFisPXKX3YHN4+/7D0we97uPM3n0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vskGYosIuEh8n7GYGaSBWWATo8Tdy42MIAlhgVCJY3cPsIDYLAKqEt+bf4PFeQWc JE5Mb2WB2CYncfNcJ1AzBwenQLDEu7eMELsCJBo/PWaZwMi7gJFhFaNIamlxbnpusaFecWJu cWleul5yfu4mRmCwbjv2c/MOxksbgw8xCnAwKvHwZsRmRgixJpYVV+YeYpTgYFYS4RURyIoQ 4k1JrKxKLcqPLyrNSS0+xGgKdNNEZinR5HxgJOWVxBuaGJpbGhoZW1iYGxkpifOWfLgSLiSQ nliSmp2aWpBaBNPHxMEp1cAYal3C9MruxKbZs18ULb3C25/+N27L3y3xjItkVqRfqnO++U2u 4reNWDRT8Kl4NfnK3Q9067e9t+iyXLbIeFdgV3HH0r1RmSvToyIjPvxlKOm/uv3l+muxe6dW e87JeGD0cdlDwfL+iX12wtKJ51cHJP6cuHNbmYnSKkv5lJjXytHyah7pnDuUWIozEg21mIuK EwEO+8vmbAIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170102083922eucas1p1d327e428675b67876e8f3462f0bcf170 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170102083922eucas1p1d327e428675b67876e8f3462f0bcf170 X-RootMTR: 20170102083922eucas1p1d327e428675b67876e8f3462f0bcf170 References: Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP In case of HW trigger mode, sysreg register should be configured to enable TE functionality. The patch refactors also trigger setup function. Signed-off-by: Andrzej Hajda --- v2: fixed bitop operator (thanks Ilia) --- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 40 +++++++++++++++++++++------ 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 6ca1f31..b63b8e6 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -13,9 +13,11 @@ #include #include #include +#include #include #include #include +#include #include