From patchwork Wed Sep 6 10:37:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9940333 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 03CCE60224 for ; Wed, 6 Sep 2017 10:38:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AD3B1FF27 for ; Wed, 6 Sep 2017 10:38:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3ED128B8F; Wed, 6 Sep 2017 10:38:16 +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 B5C0F1FF27 for ; Wed, 6 Sep 2017 10:38:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99E9C6E6B8; Wed, 6 Sep 2017 10:37:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id EAD366E6A7 for ; Wed, 6 Sep 2017 10:37:35 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20170906103734euoutp024de050d6cce29f43a7aa43733b780e9e~hv3O89ZNE0809908099euoutp02C; Wed, 6 Sep 2017 10:37:34 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170906103733eucas1p1409b30cf02cdb2808a4f424796b88081~hv3ONWCuy2623226232eucas1p1R; Wed, 6 Sep 2017 10:37:33 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1.samsung.com (EUCPMTA) with SMTP id 0D.DB.12576.DEFCFA95; Wed, 6 Sep 2017 11:37:33 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170906103732eucas1p16966a1fd86daf50dc2b5217dfb90785d~hv3NI23-j2586725867eucas1p1t; Wed, 6 Sep 2017 10:37:32 +0000 (GMT) X-AuditID: cbfec7ef-f79ee6d000003120-79-59afcfed1197 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 68.FA.20118.CEFCFA95; Wed, 6 Sep 2017 11:37:32 +0100 (BST) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OVU00L0NTIFI200@eusync1.samsung.com>; Wed, 06 Sep 2017 11:37:32 +0100 (BST) From: Andrzej Hajda To: Inki Dae Subject: [PATCH 10/10] drm/exynos/mixer: enable support for 1024x768 and 1280x1024 modes Date: Wed, 06 Sep 2017 12:37:00 +0200 Message-id: <1504694220-15818-11-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1504694220-15818-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsWy7djPc7pvz6+PNLh4UtDi1rpzrBYbZ6xn tXg0/zGzxZWv79ksJt2fwGIx4/w+Jou1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q/a1s4MUMQusYpKY 1dYLlhAWiJJY8GMRUIKDg0VAVeLa13KQMK+Ai8TLxc/YILbJSdw818kMYnMCxU9d/8QKYgsJ OEvMfLiIcQIj7wJGhlWMIqmlxbnpucVGesWJucWleel6yfm5mxiBobXt2M8tOxi73gUfYhTg YFTi4bXcsC5SiDWxrLgy9xCjBAezkgjv33PrI4V4UxIrq1KL8uOLSnNSiw8xSnOwKInz9u5Z HSkkkJ5YkpqdmlqQWgSTZeLglGpgnOJ21J5NhPfOsddOC48cuDz7+GrLYKvDHAeSQp923+ue Lbbirg/jVtuNUUfufuN490s4Zv3Kp+ZL1nwOWHT3FP82RvaJIkIZk+5wLNNazfpo97UVPium L0g3j52T1iyhO0+tiqdbYIVIJo+hwIv0D4fOX66u2mByWCbvi0lfcEvAdIUXJacnzlFiKc5I NNRiLipOBAAeCj9sKQIAAA== X-CMS-MailID: 20170906103732eucas1p16966a1fd86daf50dc2b5217dfb90785d X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 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-CMS-RootMailID: 20170906103732eucas1p16966a1fd86daf50dc2b5217dfb90785d X-RootMTR: 20170906103732eucas1p16966a1fd86daf50dc2b5217dfb90785d References: <1504694220-15818-1-git-send-email-a.hajda@samsung.com> Cc: linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, Daniel Drake , Tobias Jakobi , Marek Szyprowski 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 Since HDMI can handle these modes despite of MIXER limitations lets enable them. Signed-off-by: Andrzej Hajda Reviewed-by: Tobias Jakobi --- drivers/gpu/drm/exynos/exynos_mixer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index 5aae82b..108dccb 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c @@ -1014,6 +1014,9 @@ static int mixer_mode_valid(struct exynos_drm_crtc *crtc, (w >= 1664 && w <= 1920 && h >= 936 && h <= 1080)) return MODE_OK; + if ((w == 1024 && h == 768) || (w == 1280 && h == 1024)) + return MODE_OK; + return MODE_BAD; }