From patchwork Fri Oct 31 22:54:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 5207561 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 25CE4C11AC for ; Fri, 31 Oct 2014 23:57:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F209F201C0 for ; Fri, 31 Oct 2014 23:57:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2001A20172 for ; Fri, 31 Oct 2014 23:57:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B98FA6E86F; Fri, 31 Oct 2014 16:56:40 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by gabe.freedesktop.org (Postfix) with ESMTP id 808306E850 for ; Fri, 31 Oct 2014 15:57:21 -0700 (PDT) Received: by mail-pd0-f171.google.com with SMTP id r10so8080872pdi.16 for ; Fri, 31 Oct 2014 15:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CHAzH/HsyE3FsS9GEwihP1gfCvhHl26cdQEsg/LdBoQ=; b=0b3+0yFt+wL/3DLvZ+FNSP2fvd55IUZs0uEomRGolEOEXCiWXepdZTcABOjziZSjTc cImR2+BEZCN++0o5jp1yUQp5rHvNnJ179gqjjyQNLHYby3sECJXmtLgHO+WAA3KTnpYa KuqNoF2M9DvS5GG+1UG9gEgIBWnskBdZel8mSB9ox6w0Tj4WGPy+OhiFkCJWiIzc/ybB 84V1yzY6RNAcW/tz2fekgXRXxAvOt9SVmdjTsmn5feRLWySJllenhdXgkexEMAZwz8pU hqWYC9ZfAaS0Mgq4Slh/ZNiDTKsdDPLs+v+VxApQ5FLxUr4U+XxR5HgqZGOxgCs0fv0G 1tXg== X-Received: by 10.70.133.72 with SMTP id pa8mr27197311pdb.59.1414796241408; Fri, 31 Oct 2014 15:57:21 -0700 (PDT) Received: from mothership.mgc.mentorg.com (c-50-152-159-227.hsd1.ca.comcast.net. [50.152.159.227]) by mx.google.com with ESMTPSA id ev8sm10870656pdb.28.2014.10.31.15.57.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 15:57:20 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: dri-devel@lists.freedesktop.org Subject: [PATCH 40/72] imx-drm: parallel-display: Support RGB666 pixel fmt Date: Fri, 31 Oct 2014 15:54:23 -0700 Message-Id: <1414796095-10107-41-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414796095-10107-1-git-send-email-steve_longerbeam@mentor.com> References: <1414796095-10107-1-git-send-email-steve_longerbeam@mentor.com> X-Mailman-Approved-At: Fri, 31 Oct 2014 16:56:32 -0700 Cc: Dmitry Eremin-Solenikov X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 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-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Add a clause to imx-pd driver to use 18-bit output if driver is told so. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/parallel-display.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c index 015a454..5f7d4ee 100644 --- a/drivers/staging/imx-drm/parallel-display.c +++ b/drivers/staging/imx-drm/parallel-display.c @@ -230,6 +230,13 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data) else if (!strcmp(fmt, "lvds666")) imxpd->interface_pix_fmt = v4l2_fourcc('L', 'V', 'D', '6'); + else if (!strcmp(fmt, "rgb18")) + imxpd->interface_pix_fmt = + v4l2_fourcc('R', 'G', 'B', 'H'); + else { + dev_err(dev, "Unsupported interface pix_fmt!\n"); + return -EINVAL; + } } panel_node = of_parse_phandle(np, "fsl,panel", 0);