From patchwork Thu Mar 13 05:28:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shirish S X-Patchwork-Id: 3829081 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4ABB9BF540 for ; Thu, 13 Mar 2014 22:43:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6EDF0202A1 for ; Thu, 13 Mar 2014 22:43:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id F015120270 for ; Thu, 13 Mar 2014 22:43:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A350FAAE3; Thu, 13 Mar 2014 15:43:07 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id D22A8FAC46 for ; Wed, 12 Mar 2014 22:29:47 -0700 (PDT) MIME-version: 1.0 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2D00LCC0LMOU80@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 13 Mar 2014 14:29:46 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 49.C6.10364.A4241235; Thu, 13 Mar 2014 14:29:46 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-e4-5321424acbf2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E0.3F.28157.A4241235; Thu, 13 Mar 2014 14:29:46 +0900 (KST) Received: from localhost.localdomain ([107.108.83.245]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2D00CJQ0KBS350@mmp2.samsung.com>; Thu, 13 Mar 2014 14:29:45 +0900 (KST) From: Shirish S To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com, t.figa@samsung.com Subject: [PATCH] drm/exynos: add phy settings for RB resolutions Date: Thu, 13 Mar 2014 10:58:27 +0530 Message-id: <1394688508-5429-1-git-send-email-s.shirish@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRmVeSWpSXmKPExsWyRsSkWtfLSTHY4PpLYYsrX9+zWUy6P4HF YtrsjYwWTTsOslmsn/GaxYHVY3bDRRaP+93HmTz6tqxiDGCO4rJJSc3JLEst0rdL4MrYsuEC e0GzaMWFJZuYGxinCnQxcnJICJhI7FvQzAJhi0lcuLeerYuRi0NIYCmjxLIJa9lhijbMu80C kZjOKPF6/i+wBK+AoMSPyfeAEhwczALyEkcuZYOEmQXUJSbNW8QMUd/OJHFs3w+wejagxMXJ q5lBbBEBX4kpP/8yQTRYS6y+c4oRxBYWcJCY/PwLmM0ioCrRcukeC8QuF4mTC/4zguySEFCQ mDPJBmS+hMA8dokp8/qZIOoFJL5NPsQCUSMrsekAM8T9khIHV9xgmcAoMgvJ1bMQrp6F5OoF jMyrGEVTC5ILipPSi0z0ihNzi0vz0vWS83M3MQKj4/S/ZxN2MN47YH2IMRlo40RmKdHkfGB0 5ZXEGxqbGVmYmpgaG5lbmpEmrCTOq/YoKUhIID2xJDU7NbUgtSi+qDQntfgQIxMHp1QDY8DE M5d2eCgflvEW7U3tOWny9IU4637hvFnzzW/IzGhY7LNe9u/sozlKUv/LNuX/5vjna3vSWv5m aFvtspcFOrYXflY2esZrsnwWPOnctXzGZN1unQXRHqyHM4+cu3DQzCryw4KrXvyGLTwrD5xU PckaH3NNKHGxucAeP7Wpa5pk9sn8qW+vVmIpzkg01GIuKk4EACsUofqkAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHIsWRmVeSWpSXmKPExsVy+t9jQV0vJ8Vgg717eSyufH3PZjHp/gQW i2mzNzJaNO04yGaxfsZrFgdWj9kNF1k87ncfZ/Lo27KKMYA5qoHRJiM1MSW1SCE1Lzk/JTMv 3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdoqZJCWWJOKVAoILG4WEnfDtOE0BA3 XQuYxghd35AguB4jAzSQsIYxY8uGC+wFzaIVF5ZsYm5gnCrQxcjJISFgIrFh3m0WCFtM4sK9 9WxdjFwcQgLTGSVez//FDpLgFRCU+DH5HlARBwezgLzEkUvZIGFmAXWJSfMWMUPUtzNJHNv3 A6yeDShxcfJqZhBbRMBXYsrPv0wQDdYSq++cYgSxhQUcJCY//wJmswioSrRcuscCsctF4uSC /4wguyQEFCTmTLKZwMg3C8kVsxCumIXkigWMzKsYRVMLkguKk9JzjfSKE3OLS/PS9ZLzczcx gmPvmfQOxlUNFocYBTgYlXh4VyxXCBZiTSwrrsw9xCjBwawkwntAUzFYiDclsbIqtSg/vqg0 J7X4EGMy0H0TmaVEk/OBaSGvJN7Q2MTc1NjU0sTCxMySNGElcd6DrdaBQgLpiSWp2ampBalF MFuYODilGhgz5U7O/h7DYZnisuiwwalUv62BhS7l/1Z/qKz8tbGoYsYkpfjQB1YaVxttZJZz Xql4cdRAVf7BfM+y54q7cwrnLFr2sVM4deL8lb+V/va3761K3vX/9r7AOT7VMksjF52JUp52 WurJYYX39ie38D+8U9M2lWdzFN9t18L5U5gn8P2bddBQasluJZbijERDLeai4kQAcev3QQED AAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Thu, 13 Mar 2014 15:43:04 -0700 Cc: shirish@chromium.org, Shirish S X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds support for the below mentioned pixel clocks in Exynos5250. Without them, following display modes won’t be supported: 71 MHz - 1280x800@60Hz RB 73.25 MHz - 800x600@120Hz RB 88.75 MHz - 1440x900@60Hz RB 115.5 MHz - 1024x768@120Hz RB 119 MHz - 1680x1050@60Hz RB Signed-off-by: Shirish S Reviewed-by: Tomasz Figa --- V2: Incorporated review comments drivers/gpu/drm/exynos/exynos_hdmi.c | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 12fdf55..406d89d 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -304,6 +304,24 @@ static const struct hdmiphy_config hdmiphy_v14_configs[] = { }, }, { + .pixel_clock = 71000000, + .conf = { + 0x01, 0x91, 0x1e, 0x15, 0x40, 0x3c, 0xce, 0x08, + 0x04, 0x20, 0xb2, 0xd8, 0x45, 0xa0, 0xac, 0x80, + 0x06, 0x80, 0x11, 0x04, 0x02, 0x22, 0x44, 0x86, + 0x54, 0xad, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, + }, + }, + { + .pixel_clock = 73250000, + .conf = { + 0x01, 0xd1, 0x1f, 0x15, 0x40, 0x18, 0xe9, 0x08, + 0x02, 0xa0, 0xb7, 0xd8, 0x45, 0xa0, 0xac, 0x80, + 0x06, 0x80, 0x11, 0x04, 0x02, 0x22, 0x44, 0x86, + 0x54, 0xa8, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, + }, + }, + { .pixel_clock = 74176000, .conf = { 0x01, 0xd1, 0x3e, 0x35, 0x40, 0x5b, 0xde, 0x08, @@ -331,6 +349,15 @@ static const struct hdmiphy_config hdmiphy_v14_configs[] = { }, }, { + .pixel_clock = 88750000, + .conf = { + 0x01, 0x91, 0x25, 0x17, 0x40, 0x30, 0xfe, 0x08, + 0x06, 0x20, 0xde, 0xd8, 0x45, 0xa0, 0xac, 0x80, + 0x06, 0x80, 0x11, 0x04, 0x02, 0x22, 0x44, 0x86, + 0x54, 0x8a, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, + }, + }, + { .pixel_clock = 106500000, .conf = { 0x01, 0xd1, 0x2c, 0x12, 0x40, 0x0c, 0x09, 0x08, @@ -349,6 +376,24 @@ static const struct hdmiphy_config hdmiphy_v14_configs[] = { }, }, { + .pixel_clock = 115500000, + .conf = { + 0x01, 0xd1, 0x30, 0x1a, 0x40, 0x40, 0x10, 0x04, + 0x04, 0xa0, 0x21, 0xd9, 0x45, 0xa0, 0xac, 0x80, + 0x06, 0x80, 0x11, 0x04, 0x02, 0x22, 0x44, 0x86, + 0x54, 0xaa, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, + }, + }, + { + .pixel_clock = 119000000, + .conf = { + 0x01, 0x91, 0x32, 0x14, 0x40, 0x60, 0xd8, 0x08, + 0x06, 0x20, 0x2a, 0xd9, 0x45, 0xa0, 0xac, 0x80, + 0x06, 0x80, 0x11, 0x04, 0x02, 0x22, 0x44, 0x86, + 0x54, 0x9d, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, + }, + }, + { .pixel_clock = 146250000, .conf = { 0x01, 0xd1, 0x3d, 0x15, 0x40, 0x18, 0xfd, 0x08,