From patchwork Mon Mar 10 14:17:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shirish S X-Patchwork-Id: 3808271 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DC56B9F1CD for ; Mon, 10 Mar 2014 23:52:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BE5320221 for ; Mon, 10 Mar 2014 23:52:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 21672201BC for ; Mon, 10 Mar 2014 23:52:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E00FFF9D82; Mon, 10 Mar 2014 16:52:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 10A91FA2D4 for ; Mon, 10 Mar 2014 07:09:21 -0700 (PDT) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2800GPO4NKO6C0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 10 Mar 2014 23:09:20 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 36.A6.10364.097CD135; Mon, 10 Mar 2014 23:09:20 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-9f-531dc790a307 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3C.9C.29263.097CD135; Mon, 10 Mar 2014 23:09:20 +0900 (KST) Received: from exypnos.sisodomain.com ([107.108.73.28]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2800HEJ4N3C910@mmp2.samsung.com>; Mon, 10 Mar 2014 23:09:20 +0900 (KST) From: Shirish S To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH] drm/exynos: add phy settings for RB resolutions Date: Mon, 10 Mar 2014 19:47:28 +0530 Message-id: <1394461049-27547-1-git-send-email-s.shirish@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsWyRsSkTnfCcdlgg9Zd4hZXvr5ns5h0fwKL xbTZGxktmnYcZHNg8ZjdcJHF4373cSaPvi2rGAOYo7hsUlJzMstSi/TtErgyVt1vYy34KVLx /flB1gbGSQJdjJwcEgImEmd7L7NC2GISF+6tZwOxhQSWMkpsOywBU3OqexZ7FyMXUHw6o8Sj k2vYIJx2JomDr++AdbMJqEtcnLyaGcQWEbCUeLD1N5jNLGAtsfrOKUYQW1jAQWLy8y9gNouA qsTz1SvBtvEKuEosn/mCDWKbokT3swlgCyQE7rNJLH+wgAmiQUDi2+RDLF2MHEAJWYlNB5gh 6iUlDq64wTKBUXABI8MqRtHUguSC4qT0IhO94sTc4tK8dL3k/NxNjMAwPP3v2YQdjPcOWB9i TAYaN5FZSjQ5HxjGeSXxhsZmRhamJqbGRuaWZqQJK4nzqj1KChISSE8sSc1OTS1ILYovKs1J LT7EyMTBKdXAKMps0n3N9MbUwrVHNuhPCncOLkqNS6yve5igejouPfxKT4fYy4cM3b/+NrQy /k7uqqzY+Vny8QOz+rrIg0tlHuWa7Jt1fmFOeBR/lPyrg9VRs8vleKoCXzpIzq5+0/PfRi12 b/PO659Uq+/nLr4WJLSyz59hTuDPgi93DQJ8s+pe3tc+0rNGiaU4I9FQi7moOBEAn5OMNlkC AAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsVy+t9jQd0Jx2WDDXqu8Fpc+fqezWLS/Qks FtNmb2S0aNpxkM2BxWN2w0UWj/vdx5k8+rasYgxgjmpgtMlITUxJLVJIzUvOT8nMS7dV8g6O d443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2qekUJaYUwoUCkgsLlbSt8M0ITTETdcCpjFC 1zckCK7HyAANJKxhzFh1v4214KdIxffnB1kbGCcJdDFyckgImEic6p7FDmGLSVy4t56ti5GL Q0hgOqPEo5NroJx2JomDr++wglSxCahLXJy8mhnEFhGwlHiw9TeYzSxgLbH6zilGEFtYwEFi 8vMvYDaLgKrE89Ur2UBsXgFXieUzX7BBbFOU6H42gW0CI/cCRoZVjKKpBckFxUnpuYZ6xYm5 xaV56XrJ+bmbGMFh/kxqB+PKBotDjAIcjEo8vBmvZYKFWBPLiitzDzFKcDArifA2H5UNFuJN SaysSi3Kjy8qzUktPsSYDLR9IrOUaHI+MAbzSuINjU3MTY1NLU0sTMwsSRNWEuc90GodKCSQ nliSmp2aWpBaBLOFiYNTqoExXeZD11S2oH9dC3d/jpbymj3lVUeBmItv0kONrb3nvLlPbDjA zM5yeeOy+T+L5unqM8rHsC5Mzri2rKk4WMFNQeyr/L7b61WkXXSqflj15koq2Zn02D45Elx9 snDL9ymRDX+PfF5sKKVQeMVU63nUrqXL6lbO+3U3YJNu6HueCRpzImRPCCxXYinOSDTUYi4q TgQAeQnX2bcCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Mon, 10 Mar 2014 16:51:37 -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: , MIME-Version: 1.0 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 below is list of pixel clocks and resoluitons this patch adds: 71000000 - 1280x800@60Hz RB 73250000 - 800x600@120Hz RB 88750000 - 1440x900@60Hz RB 115500000 - 1024x768@120Hz RB 119000000 - 1680x1050@60Hz RB without these pixel clocks' support the mentioned resolutions fail to be detected in exynos5250. Signed-off-by: Shirish S --- 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 c021ddc..650ce48 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -303,6 +303,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, @@ -330,6 +348,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, @@ -348,6 +375,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,