From patchwork Tue Jul 8 00:39:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4500201 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 5FD5CBEEE9 for ; Tue, 8 Jul 2014 00:40:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9753D20270 for ; Tue, 8 Jul 2014 00:39:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0EE6202F0 for ; Tue, 8 Jul 2014 00:39:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754480AbaGHAj4 (ORCPT ); Mon, 7 Jul 2014 20:39:56 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:47666 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753727AbaGHAjx (ORCPT ); Mon, 7 Jul 2014 20:39:53 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8D00EC0B6ES930@mailout1.samsung.com>; Tue, 08 Jul 2014 09:39:51 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.45]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id D5.5D.19452.6DD3BB35; Tue, 08 Jul 2014 09:39:50 +0900 (KST) X-AuditID: cbfee68e-b7fb96d000004bfc-ce-53bb3dd6b7d8 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6B.42.04943.6DD3BB35; Tue, 08 Jul 2014 09:39:50 +0900 (KST) Received: from localhost.localdomain ([10.252.75.90]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8D004E2B6BRL90@mmp2.samsung.com>; Tue, 08 Jul 2014 09:39:50 +0900 (KST) From: YoungJun Cho To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-samsung-soc@vger.kernel.org, thierry.reding@gmail.com, kyungmin.park@samsung.com, inki.dae@samsung.com, kgene.kim@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, a.hajda@samsung.com Subject: [PATCH v5 01/14] drm/exynos: dsi: move the EoT packets configuration point Date: Tue, 08 Jul 2014 09:39:34 +0900 Message-id: <1404779987-5337-2-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.9.0 In-reply-to: <1404779987-5337-1-git-send-email-yj44.cho@samsung.com> References: <1404779987-5337-1-git-send-email-yj44.cho@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRmVeSWpSXmKPExsVy+t8zXd1rtruDDQ7vM7e4te4cq0XvuZNM FvOPAFlXvr5ns+h/s5DV4tyrlYwWk+5PYLF4ce8ii0XvgqtsFmeb3rBbzDi/j8li6fWLTBYT pq9lsWjdewQoNvklm8XPXfNYHAQ81sxbw+hxua+XyWPnrLvsHiuXf2Hz2LSqk81j+7cHrB73 u48zefRtWcXo8XmTXABnFJdNSmpOZllqkb5dAlfGtocrmQt+8lasXMfbwHiYu4uRk0NCwERi 5uI3rBC2mMSFe+vZuhi5OIQEljFKrLo4lw2m6P2zD6wQiemMEkfWwlS1MklsXXSSCaSKTUBT 4vnHHWCjRARMJTomLWUBKWIWeMIkcWrzfhaQhLBAqMSZlx8ZQWwWA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TgYFTi4V1xcFewEGtiWXFl7iFGCQ5mJRHeFcuB QrwpiZVVqUX58UWlOanFhxhNga6ayCwlmpwPTDJ5JfGGxiZmRpZGZsYm5sbGSuK8B1qtA4UE 0hNLUrNTUwtSi2D6mDg4pRoYL/xdq2XMvLCqzjl2W0vFfe8NB7KFfmpFii8SkI28/ODDxDmZ 0mvuvRZ78PI7H/vOKaxSyjaHtNI5PEJkjqbVsbSHHc7acTovxapy5jrDQ7GGn4o43kXtr9j0 +4LDsj0XGi7Prerd433hdVrZcq1bluEh+syzHydw1E3ZJaBQ0JO1YInWqqo0JZbijERDLeai 4kQAymb0TPoCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 configuration could be used in MIPI DSI command mode also. And adds user manual description for display configuration. Signed-off-by: YoungJun Cho Acked-by: Inki Dae Acked-by: Kyungmin Park Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 6302aa6..dad543a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -468,13 +468,19 @@ static int exynos_dsi_init_link(struct exynos_dsi *dsi) /* DSI configuration */ reg = 0; + /* The first bit of mode_flags specifies display configuration. + * If this bit is set[= MIPI_DSI_MODE_VIDEO], dsi will support video + * mode, otherwise it will support command mode. + */ if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO) { reg |= DSIM_VIDEO_MODE; + /* + * The user manual describes that following bits are ignored in + * command mode. + */ if (!(dsi->mode_flags & MIPI_DSI_MODE_VSYNC_FLUSH)) reg |= DSIM_MFLUSH_VS; - if (!(dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET)) - reg |= DSIM_EOT_DISABLE; if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_SYNC_PULSE) reg |= DSIM_SYNC_INFORM; if (dsi->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) @@ -491,6 +497,9 @@ static int exynos_dsi_init_link(struct exynos_dsi *dsi) reg |= DSIM_HSA_MODE; } + if (!(dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET)) + reg |= DSIM_EOT_DISABLE; + switch (dsi->format) { case MIPI_DSI_FMT_RGB888: reg |= DSIM_MAIN_PIX_FORMAT_RGB888;