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: 9940315 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 E350160224 for ; Wed, 6 Sep 2017 10:37:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA0101FF27 for ; Wed, 6 Sep 2017 10:37:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DED3528B8F; Wed, 6 Sep 2017 10:37:43 +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=-6.9 required=2.0 tests=BAYES_00,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 D43331FF27 for ; Wed, 6 Sep 2017 10:37:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753115AbdIFKhl (ORCPT ); Wed, 6 Sep 2017 06:37:41 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:51620 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753103AbdIFKhf (ORCPT ); Wed, 6 Sep 2017 06:37:35 -0400 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 Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, Tobias Jakobi , Daniel Drake 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+Jou1R+6yW7St/sDqwOGx6H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dYLlhAWiJJY8GMRUIKDg0VAVeLa13KQMK+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> 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 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; }