From patchwork Fri Sep 29 10:05:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9977427 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 2724B60329 for ; Fri, 29 Sep 2017 10:06:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2190E29805 for ; Fri, 29 Sep 2017 10:06:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1695329807; Fri, 29 Sep 2017 10:06:00 +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 C03372967C for ; Fri, 29 Sep 2017 10:05:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbdI2KF6 (ORCPT ); Fri, 29 Sep 2017 06:05:58 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:50420 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbdI2KFx (ORCPT ); Fri, 29 Sep 2017 06:05:53 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20170929100551euoutp014f01aaf70cb83e0c457875c7cb400693~ozRHGPdh92662226622euoutp01S; Fri, 29 Sep 2017 10:05:51 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170929100550eucas1p13061018c01e20d707b10d85d0800f86b~ozRGO2ImV2191921919eucas1p14; Fri, 29 Sep 2017 10:05:50 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 5C.CA.12867.EFA1EC95; Fri, 29 Sep 2017 11:05:50 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170929100549eucas1p29a39ec9db45d6009f23b89fd2d6b77f9~ozRFkO1QO3082430824eucas1p2S; Fri, 29 Sep 2017 10:05:49 +0000 (GMT) X-AuditID: cbfec7f2-f793b6d000003243-be-59ce1afe38ff Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CD.A8.20118.DFA1EC95; Fri, 29 Sep 2017 11:05:49 +0100 (BST) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OX100L2HDDLSN30@eusync4.samsung.com>; Fri, 29 Sep 2017 11:05:49 +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 v2 10/11] drm/exynos/mixer: enable support for 1024x768 and 1280x1024 modes Date: Fri, 29 Sep 2017 12:05:41 +0200 Message-id: <20170929100542.12849-11-a.hajda@samsung.com> X-Mailer: git-send-email 2.14.1 In-reply-to: <20170929100542.12849-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsWy7djP87r/pM5FGhx6IGFxa905VouNM9az Wjya/5jZ4srX92wWk+5PYLGYcX4fk8XaI3fZLdpWf2B14PBY9D3L4373cSaPf8fYPfq2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EFsFgFVic3XG8DivAKWEq0rfjJBrJOXOPfgNthQTqD44slfwOJCAhYS ixauZ53AyLuAkWEVo0hqaXFuem6xkV5xYm5xaV66XnJ+7iZGYHBtO/Zzyw7GrnfBhxgFOBiV eHhvyJ2NFGJNLCuuzD3EKMHBrCTC+4TzXKQQb0piZVVqUX58UWlOavEhRmkOFiVx3t49qyOF BNITS1KzU1MLUotgskwcnFINjJ7CLHc+GHMKVz9et+rez5NCx43kbC2DbFft3tryL0xbt/zQ giTx1AlO4k5HHz9VclWoLFY1UO87rHpqXsqrbv4lr2bdu6K7nn/yj0QWlhpF3ce5IUxH1cQv ZH08OsfVn59TQtAxgLnteXLNzMdTPTkLCr3T5jHLaF28Lnr/TNy6m3lXfyvNUmIpzkg01GIu Kk4EAIS4AzoqAgAA X-CMS-MailID: 20170929100549eucas1p29a39ec9db45d6009f23b89fd2d6b77f9 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: 20170929100549eucas1p29a39ec9db45d6009f23b89fd2d6b77f9 X-RootMTR: 20170929100549eucas1p29a39ec9db45d6009f23b89fd2d6b77f9 References: <20170929100542.12849-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 Since HDMI can handle these modes despite of MIXER limitations let's 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 8baa93f80106..85d33137cfd8 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; }