From patchwork Fri Aug 17 00:49:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1335701 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id BFC7640211 for ; Fri, 17 Aug 2012 00:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932527Ab2HQAtj (ORCPT ); Thu, 16 Aug 2012 20:49:39 -0400 Received: from perceval.ideasonboard.com ([95.142.166.194]:46730 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753562Ab2HQAtb (ORCPT ); Thu, 16 Aug 2012 20:49:31 -0400 Received: from avalon.ideasonboard.com (unknown [91.178.106.94]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1C15035A86; Fri, 17 Aug 2012 02:49:29 +0200 (CEST) From: Laurent Pinchart To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org Cc: linux-media@vger.kernel.org, Bryan Wu , Richard Purdie , Tomi Valkeinen , Marcus Lorentzon , Sumit Semwal , Archit Taneja , Sebastien Guiriec , Inki Dae , Kyungmin Park Subject: [RFC 1/5] video: Add generic display panel core Date: Fri, 17 Aug 2012 02:49:39 +0200 Message-Id: <1345164583-18924-2-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1345164583-18924-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1345164583-18924-1-git-send-email-laurent.pinchart@ideasonboard.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Signed-off-by: Laurent Pinchart --- drivers/video/Kconfig | 1 + drivers/video/Makefile | 1 + drivers/video/panel/Kconfig | 4 + drivers/video/panel/Makefile | 1 + drivers/video/panel/panel.c | 269 ++++++++++++++++++++++++++++++++++++++++++ include/video/panel.h | 111 +++++++++++++++++ 6 files changed, 387 insertions(+), 0 deletions(-) create mode 100644 drivers/video/panel/Kconfig create mode 100644 drivers/video/panel/Makefile create mode 100644 drivers/video/panel/panel.c create mode 100644 include/video/panel.h diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 0217f74..2cc394e 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -2448,6 +2448,7 @@ source "drivers/video/omap/Kconfig" source "drivers/video/omap2/Kconfig" source "drivers/video/exynos/Kconfig" source "drivers/video/backlight/Kconfig" +source "drivers/video/panel/Kconfig" if VT source "drivers/video/console/Kconfig" diff --git a/drivers/video/Makefile b/drivers/video/Makefile index ee8dafb..577240c 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -14,6 +14,7 @@ fb-objs := $(fb-y) obj-$(CONFIG_VT) += console/ obj-$(CONFIG_LOGO) += logo/ obj-y += backlight/ +obj-y += panel/ obj-$(CONFIG_EXYNOS_VIDEO) += exynos/ diff --git a/drivers/video/panel/Kconfig b/drivers/video/panel/Kconfig new file mode 100644 index 0000000..26b1787 --- /dev/null +++ b/drivers/video/panel/Kconfig @@ -0,0 +1,4 @@ +menuconfig DISPLAY_PANEL + tristate "Display Panel" + ---help--- + Support for display panels for graphics devices. diff --git a/drivers/video/panel/Makefile b/drivers/video/panel/Makefile new file mode 100644 index 0000000..cf5c5e2 --- /dev/null +++ b/drivers/video/panel/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_DISPLAY_PANEL) += panel.o diff --git a/drivers/video/panel/panel.c b/drivers/video/panel/panel.c new file mode 100644 index 0000000..cfca804 --- /dev/null +++ b/drivers/video/panel/panel.c @@ -0,0 +1,269 @@ +/* + * 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 + +#include