From patchwork Thu Nov 22 21:45:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1790311 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id C1B42DF24C for ; Thu, 22 Nov 2012 21:47:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 93C1EE65D8 for ; Thu, 22 Nov 2012 13:47:02 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [95.142.166.194]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C97EE5EFA for ; Thu, 22 Nov 2012 13:44:43 -0800 (PST) Received: from avalon.ideasonboard.com (unknown [91.178.153.41]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BC3AA35A87; Thu, 22 Nov 2012 22:44:41 +0100 (CET) From: Laurent Pinchart To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [RFC v2 2/5] video: panel: Add DPI panel support Date: Thu, 22 Nov 2012 22:45:33 +0100 Message-Id: <1353620736-6517-3-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1353620736-6517-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1353620736-6517-1-git-send-email-laurent.pinchart@ideasonboard.com> Cc: Thomas Petazzoni , Philipp Zabel , Tom Gall , Ragesh Radhakrishnan , Rob Clark , Kyungmin Park , Tomi Valkeinen , Benjamin Gaignard , Bryan Wu , Maxime Ripard , Vikas Sajjan , Sumit Semwal , Sebastien Guiriec , linux-media@vger.kernel.org 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+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Laurent Pinchart Signed-off-by: Laurent Pinchart --- drivers/video/display/Kconfig | 13 +++ drivers/video/display/Makefile | 1 + drivers/video/display/panel-dpi.c | 147 +++++++++++++++++++++++++++++++++++++ include/video/panel-dpi.h | 24 ++++++ 4 files changed, 185 insertions(+), 0 deletions(-) create mode 100644 drivers/video/display/panel-dpi.c create mode 100644 include/video/panel-dpi.h diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index 1d533e7..0f9b990 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -2,3 +2,16 @@ menuconfig DISPLAY_CORE tristate "Display Core" ---help--- Support common display framework for graphics devices. + +if DISPLAY_CORE + +config DISPLAY_PANEL_DPI + tristate "DPI (Parallel) Display Panels" + ---help--- + Support for simple digital (parallel) pixel interface panels. Those + panels receive pixel data through a parallel bus and have no control + bus. + + If you are in doubt, say N. + +endif # DISPLAY_CORE diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index bd93496..47978d4 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -1 +1,2 @@ obj-$(CONFIG_DISPLAY_CORE) += display-core.o +obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o diff --git a/drivers/video/display/panel-dpi.c b/drivers/video/display/panel-dpi.c new file mode 100644 index 0000000..c56197a --- /dev/null +++ b/drivers/video/display/panel-dpi.c @@ -0,0 +1,147 @@ +/* + * DPI Display Panel + * + * Copyright (C) 2012 Renesas Solutions Corp. + * + * Contacts: Laurent Pinchart + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include +#include +#include + +#include