From patchwork Thu Aug 29 01:51:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Hackmann X-Patchwork-Id: 2851087 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 C4CFDBF546 for ; Thu, 29 Aug 2013 02:39:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30D762039B for ; Thu, 29 Aug 2013 02:39:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9C4D620397 for ; Thu, 29 Aug 2013 02:39:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B049E6099 for ; Wed, 28 Aug 2013 19:39:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ye0-f202.google.com (mail-ye0-f202.google.com [209.85.213.202]) by gabe.freedesktop.org (Postfix) with ESMTP id 67279E6163 for ; Wed, 28 Aug 2013 18:51:38 -0700 (PDT) Received: by mail-ye0-f202.google.com with SMTP id r9so729156yen.1 for ; Wed, 28 Aug 2013 18:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Kt2IDi9wqyFTd0+QwQIpXRaOPiAvDraTsMxHA5v7/Ak=; b=n3inx54sSDDn0R7qEVfbmmRdxmxhszhSQazNdCW2F5TevuvvE565Bt84VtMu3rH0q3 Uxrl5PA9xNgwJYWmWeiVAbAFOKJIrrYsDbP+5diGOB3JMEMHReScfsezKRbZzf8KqTCI iRXdEqUjwaErgkEN/JycCe4rNtOy9hXUfYsMNQzjOOo/z7O9qVkpOtVpHtNtYzGfUFCc hjN+t1sR/R2rWjRZUq/w3jBvUrflsqpngihHyadsatwsglK8ue+6RR12bgodL6ZBRbf+ WPS6jguD4a86gwwY8Z3XAznQT/Cs6Jy7fK0uGrzow2OqTArf+wt9fNvp1llSpbP+jusA MdQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Kt2IDi9wqyFTd0+QwQIpXRaOPiAvDraTsMxHA5v7/Ak=; b=k/oVDINbx0sO1igUalFi3rpNrpzN7JUeMABB++t+UAtV2XV4WVNyewjiVI6OXCmin5 P23VlUM8z7NDoCqktv167P9KI3OWL2TPmcjh1AjnBBzQHx6SnuTvexgLBADwqAcO9dlh 95p8vGa9BH1E34ol7OYragAqODTGDjIr292hBhLxMxy+neJjNjqmxOoe50kVTQ04HEeF bJ+bH2XjFSjr7Z8g99JUAoXJehGxh/IKdocskETgGx/2HYpZ+TH1ouzHtI3OgunH/wzm DBSZtjnZ3eo4kJFfggFsiC3H12DH5tTBRAY3Ra/8B9M36xSQDCY+OsEyvVO03xyMAMM+ xyMg== X-Gm-Message-State: ALoCoQlZb+8t17fpf/aR09qBVoCMHQfv/JGKFdDPq6cPOpndsHt7kSKIX7T4A1HOgqt9sEODIVAUjMMoBp+GufDy2EFG8CgAOXk13NHsIoBXC2pFGGrFPy/155tst3x7E2b4Th0Ai5L0Rt3uJoxKdHlMAAzXmOY6fddaNtSxX76DMaanFsvw0RWt5+G4jziA5lSx6Y/7se8JQY4qICuX9Xf5wMAgYlsLLA== X-Received: by 10.236.172.34 with SMTP id s22mr308632yhl.25.1377741097608; Wed, 28 Aug 2013 18:51:37 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id z29si1787003yhd.3.1969.12.31.16.00.00 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Wed, 28 Aug 2013 18:51:37 -0700 (PDT) Received: from ghackmann.mtv.corp.google.com (ghackmann.mtv.corp.google.com [172.18.120.106]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 4F49931C1BD; Wed, 28 Aug 2013 18:51:37 -0700 (PDT) Received: by ghackmann.mtv.corp.google.com (Postfix, from userid 163046) id 0B3D61005DB; Wed, 28 Aug 2013 18:51:36 -0700 (PDT) From: Greg Hackmann To: dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: [RFC 1/4] video: Add generic display entity core Date: Wed, 28 Aug 2013 18:51:18 -0700 Message-Id: <1377741081-30189-2-git-send-email-ghackmann@google.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1377741081-30189-1-git-send-email-ghackmann@google.com> References: <1377741081-30189-1-git-send-email-ghackmann@google.com> Cc: Laurent Pinchart , konkers@google.com, Laurent Pinchart 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 X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,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 From: Laurent Pinchart Signed-off-by: Laurent Pinchart --- drivers/video/Kconfig | 1 + drivers/video/Makefile | 1 + drivers/video/display/Kconfig | 4 + drivers/video/display/Makefile | 1 + drivers/video/display/display-core.c | 362 +++++++++++++++++++++++++++++++++++ include/video/display.h | 150 +++++++++++++++ 6 files changed, 519 insertions(+) create mode 100644 drivers/video/display/Kconfig create mode 100644 drivers/video/display/Makefile create mode 100644 drivers/video/display/display-core.c create mode 100644 include/video/display.h diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 2e937bd..6d9788d 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -2475,6 +2475,7 @@ source "drivers/video/omap2/Kconfig" source "drivers/video/exynos/Kconfig" source "drivers/video/mmp/Kconfig" source "drivers/video/backlight/Kconfig" +source "drivers/video/display/Kconfig" if VT source "drivers/video/console/Kconfig" diff --git a/drivers/video/Makefile b/drivers/video/Makefile index e8bae8d..d7fd4a2 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -15,6 +15,7 @@ fb-objs := $(fb-y) obj-$(CONFIG_VT) += console/ obj-$(CONFIG_LOGO) += logo/ obj-y += backlight/ +obj-y += display/ obj-$(CONFIG_EXYNOS_VIDEO) += exynos/ diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig new file mode 100644 index 0000000..1d533e7 --- /dev/null +++ b/drivers/video/display/Kconfig @@ -0,0 +1,4 @@ +menuconfig DISPLAY_CORE + tristate "Display Core" + ---help--- + Support common display framework for graphics devices. diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile new file mode 100644 index 0000000..bd93496 --- /dev/null +++ b/drivers/video/display/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_DISPLAY_CORE) += display-core.o diff --git a/drivers/video/display/display-core.c b/drivers/video/display/display-core.c new file mode 100644 index 0000000..d2daa15 --- /dev/null +++ b/drivers/video/display/display-core.c @@ -0,0 +1,362 @@ +/* + * Display Core + * + * 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