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: 19600 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 132E525E63 for ; Thu, 29 Aug 2013 01:51:50 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id l13sf7191623qcy.8 for ; Wed, 28 Aug 2013 18:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=delivered-to:from:to:date:message-id:in-reply-to:references:cc :subject:precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=Ov3zHoiJnTB8Odl+eVxL/8EKqAZpLZ3+bDLNgGp7/w4=; b=eKBar1S5flCC1oSjyQoa0Kh0uozVEH0TGSUMlNMXDqtXpaMQTFcVIQidjF9kxhUSFk k9DR2ojqusKcp/bAhOB1MS+vl9jBsxkU+rJPA8oq5DslSHC8h2jqA2z6+jYjLXESz28I REgZ517VFZFVkPqcOKKc5/CeTbOcasw6jT94k8lIRzXV1+FPXj4YY5gBKLNK8SP1ZQaO gDJJg5YNSpeBam4lu0k8rRlQUrt2SQakUqz9Gv0ttbCb2gJxvKz6kE31aVSZg8Yt8ntu 7vQmKkgbY7ysM1YMQpb38l/gUgW09ghfOLk2JSu/i3cz3DE94JKzQJcdq9H5sUeveQ+S Fg7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=Ov3zHoiJnTB8Odl+eVxL/8EKqAZpLZ3+bDLNgGp7/w4=; b=NBqlz9AmxYh/MHt4Es21Q47b85X6wquRZfluTCYBFVy+6YAoF3opIekRZcdTjZo1gQ UGefTjsWdkm4E1ck4AMYxxNcTGt4qFRJUfbECN3RTfLkzmra6lpUknK+R5Y8WqcBuJ6o IZiN/63OA4RF/7cOQmkvCz1tKKK4L+wfhQ9ykNj5U+tGKAhOQYYM2ntw+FTXyneAu4De HMcG1tYXRDQPFE4lmxZWKiNud2crDLYx++t5ZIMKMyCMAUgiLGFoWfLPko7pd/rOTEew TkO0JOQKnarGwWklnMKF6+KK3FzvWcuGBMhDv9uWBquH8up9zJ+qgHVI34PE2obKjsk4 MMew== X-Received: by 10.236.115.198 with SMTP id e46mr320425yhh.33.1377741109637; Wed, 28 Aug 2013 18:51:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.97.66 with SMTP id dy2ls647961qeb.85.gmail; Wed, 28 Aug 2013 18:51:49 -0700 (PDT) X-Received: by 10.220.140.69 with SMTP id h5mr528662vcu.0.1377741109514; Wed, 28 Aug 2013 18:51:49 -0700 (PDT) Received: from mail-vc0-x22c.google.com (mail-vc0-x22c.google.com [2607:f8b0:400c:c03::22c]) by mx.google.com with ESMTPS id dm3si387325vdc.124.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 18:51:49 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c03::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c03::22c; Received: by mail-vc0-f172.google.com with SMTP id m17so4747771vca.3 for ; Wed, 28 Aug 2013 18:51:49 -0700 (PDT) X-Gm-Message-State: ALoCoQn487kTFYniXCXSepBGHV5pzAPeSd3CQUn3ynMz3Fo46nYDRmhJNpSikI/13T9XQRTNDoFg X-Received: by 10.58.217.167 with SMTP id oz7mr636453vec.15.1377741109386; Wed, 28 Aug 2013 18:51:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp389548vcz; Wed, 28 Aug 2013 18:51:48 -0700 (PDT) X-Received: by 10.220.237.208 with SMTP id kp16mr684199vcb.4.1377741107656; Wed, 28 Aug 2013 18:51:47 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id ne2si6802337vec.113.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 28 Aug 2013 18:51:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1VErNx-0003Vf-Qr; Thu, 29 Aug 2013 01:50:57 +0000 Received: from mail-gh0-f201.google.com ([209.85.160.201]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1VErNw-0003VK-Af for linaro-mm-sig@lists.linaro.org; Thu, 29 Aug 2013 01:50:56 +0000 Received: by mail-gh0-f201.google.com with SMTP id r14so729481ghr.4 for ; Wed, 28 Aug 2013 18:51:37 -0700 (PDT) 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 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 Subject: [Linaro-mm-sig] [RFC 1/4] video: Add generic display entity core X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-mm-sig-bounces@lists.linaro.org Sender: linaro-mm-sig-bounces@lists.linaro.org X-Original-Sender: ghackmann@google.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c03::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (bad format) header.i=@google.com; dmarc=fail (p=REJECT dis=NONE) d=google.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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