From patchwork Mon Oct 6 15:37:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris BREZILLON X-Patchwork-Id: 5038231 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 64AF19F295 for ; Mon, 6 Oct 2014 15:38:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 782282015A for ; Mon, 6 Oct 2014 15:38:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D09782015E for ; Mon, 6 Oct 2014 15:38:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 378BE6E3CC; Mon, 6 Oct 2014 08:38:05 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by gabe.freedesktop.org (Postfix) with ESMTP id 336AA6E3C8 for ; Mon, 6 Oct 2014 08:38:04 -0700 (PDT) Received: by mail.free-electrons.com (Postfix, from userid 106) id 2DEB374A; Mon, 6 Oct 2014 17:38:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_RHS_DOB autolearn=ham version=3.3.1 Received: from localhost.localdomain (col31-4-88-188-83-94.fbx.proxad.net [88.188.83.94]) by mail.free-electrons.com (Postfix) with ESMTPSA id 78B478C5; Mon, 6 Oct 2014 17:38:08 +0200 (CEST) From: Boris Brezillon To: David Airlie , dri-devel@lists.freedesktop.org Subject: [RFC 4/7] drm: panel: move foxlink fl500wvr00-a0t panel to the DPI panel list Date: Mon, 6 Oct 2014 17:37:50 +0200 Message-Id: <1412609873-1894-5-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412609873-1894-1-git-send-email-boris.brezillon@free-electrons.com> References: <1412609873-1894-1-git-send-email-boris.brezillon@free-electrons.com> Cc: Laurent Pinchart X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Boris Brezillon --- drivers/gpu/drm/panel/panel-simple.c | 54 +++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index fd448ca..51715e8 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -503,29 +503,6 @@ static const struct panel_desc edt_etm0700g0dh6 = { }, }; -static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = { - .clock = 32260, - .hdisplay = 800, - .hsync_start = 800 + 168, - .hsync_end = 800 + 168 + 64, - .htotal = 800 + 168 + 64 + 88, - .vdisplay = 480, - .vsync_start = 480 + 37, - .vsync_end = 480 + 37 + 2, - .vtotal = 480 + 37 + 2 + 8, - .vrefresh = 60, -}; - -static const struct panel_desc foxlink_fl500wvr00_a0t = { - .modes = &foxlink_fl500wvr00_a0t_mode, - .num_modes = 1, - .size = { - .width = 108, - .height = 65, - }, - .bus_format = VIDEO_BUS_FMT_RGB888_1X24, -}; - static const struct drm_display_mode innolux_n116bge_mode = { .clock = 71000, .hdisplay = 1366, @@ -645,9 +622,6 @@ static const struct of_device_id platform_of_match[] = { .compatible = "edt,etm0700g0dh6", .data = &edt_etm0700g0dh6, }, { - .compatible = "foxlink,fl500wvr00-a0t", - .data = &foxlink_fl500wvr00_a0t, - }, { .compatible = "innolux,n116bge", .data = &innolux_n116bge, }, { @@ -867,8 +841,36 @@ struct panel_dpi { struct mipi_dpi_device *dev; }; +static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = { + .clock = 32260, + .hdisplay = 800, + .hsync_start = 800 + 168, + .hsync_end = 800 + 168 + 64, + .htotal = 800 + 168 + 64 + 88, + .vdisplay = 480, + .vsync_start = 480 + 37, + .vsync_end = 480 + 37 + 2, + .vtotal = 480 + 37 + 2 + 8, + .vrefresh = 60, +}; + +static const struct panel_desc_dpi foxlink_fl500wvr00_a0t = { + .desc = { + .modes = &foxlink_fl500wvr00_a0t_mode, + .num_modes = 1, + .size = { + .width = 108, + .height = 65, + }, + }, + .format = VIDEO_BUS_FMT_RGB888_1X24, +}; + static const struct of_device_id dpi_of_match[] = { { + .compatible = "foxlink,fl500wvr00-a0t", + .data = &foxlink_fl500wvr00_a0t, + }, { /* sentinel */ } };