From patchwork Wed Apr 17 15:17:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Moll X-Patchwork-Id: 2459691 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id DC78B3FCA5 for ; Thu, 18 Apr 2013 11:14:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED4EAE6359 for ; Thu, 18 Apr 2013 04:14:10 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from service88.mimecast.com (service88.mimecast.com [195.130.217.12]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BD0FE671B for ; Wed, 17 Apr 2013 08:24:38 -0700 (PDT) Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Wed, 17 Apr 2013 16:17:38 +0100 Received: from hornet.Cambridge.Arm.com ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 17 Apr 2013 16:17:37 +0100 From: Pawel Moll To: linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Subject: [RFC 04/10] video: display: Add generic TFT display type Date: Wed, 17 Apr 2013 16:17:16 +0100 Message-Id: <1366211842-21497-5-git-send-email-pawel.moll@arm.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1366211842-21497-1-git-send-email-pawel.moll@arm.com> References: <1366211842-21497-1-git-send-email-pawel.moll@arm.com> X-OriginalArrivalTime: 17 Apr 2013 15:17:37.0280 (UTC) FILETIME=[B1A7B800:01CE3B7E] X-MC-Unique: 113041716173818901 X-Mailman-Approved-At: Thu, 18 Apr 2013 04:09:27 -0700 Cc: Russell King - ARM Linux , Laurent Pinchart , Pawel Moll 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 TFT panels may be interfaced via a simple parallel interface carrying RGB data, pixel clock and synchronisation signals. From the video generator point of view the width of the data channels (number of bits per R/G/B components) may be an important factor in setting up the display model. Above information is based on the presentations by Dave Anders available here: http://elinux.org/Elc-lcd This patch adds the parallel TFT display type and basic parameters structure. Maybe it should be split into a separate header, eg. include/video/tft.h? Or maybe it's just the INTERFACE_DPI I'm talking about? Signed-off-by: Pawel Moll --- include/video/display.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/video/display.h b/include/video/display.h index 7fe8b2f..875e230 100644 --- a/include/video/display.h +++ b/include/video/display.h @@ -69,10 +69,19 @@ enum display_entity_stream_state { enum display_entity_interface_type { DISPLAY_ENTITY_INTERFACE_DPI, + DISPLAY_ENTITY_INTERFACE_TFT_PARALLEL, +}; + +struct tft_parallel_interface_params { + int r_bits, g_bits, b_bits; + int r_b_swapped; }; struct display_entity_interface_params { enum display_entity_interface_type type; + union { + struct tft_parallel_interface_params tft_parallel; + } p; }; struct display_entity_control_ops {