From patchwork Thu Dec 8 00:57:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9465549 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E5EAC60512 for ; Thu, 8 Dec 2016 01:02:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B19852858A for ; Thu, 8 Dec 2016 01:02:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1BC028565; Thu, 8 Dec 2016 01:02:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E712228565 for ; Thu, 8 Dec 2016 01:02:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934199AbcLHBBi (ORCPT ); Wed, 7 Dec 2016 20:01:38 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34727 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753441AbcLHA7r (ORCPT ); Wed, 7 Dec 2016 19:59:47 -0500 Received: by mail-pg0-f67.google.com with SMTP id e9so24983075pgc.1; Wed, 07 Dec 2016 16:59:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c9n/IvoCxT2fiKly63Skf4L7hnboxs691EwwvwXcKfU=; b=tO6S3cA+I94qHTwY7QxeCEyBojl8C/cVTZS705OuubgbgJqHu1D/ByWKWSGmku30Zv DFsh0IPB2ukRaQgJw3PyDh7C9Q1po6XkSQagVIpVHgiDIPrFdh5Vvdcce96bWWN2QrNq ycQfLMF/oucvSy5gGfQJbE9v4FoQITpO2idDYQveP420Tg28tfT3ltgy4hNsX6vuOR4Z +LFwKHZck1A07fVS9pIcIFjKP5lp/r+H21ZWCKQGmHmmu6FIflRMWv5yd/BNuKd8hErk vYqVti0e1mg6qj3LKHlXVe4VCby+B6wPtYFV5uOBSVS27VjHdpS36lxwJc8xzo1/kNOx 1vEg== 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=c9n/IvoCxT2fiKly63Skf4L7hnboxs691EwwvwXcKfU=; b=TIRY3LYM+BX2dnvCmYq79sWhCRIJTJZmlGXWqxGqzcoMa0upiNAqAYk2NTvRiAnT8N y2gUNw1j/vRfsVtLQtY8mEekd8mBIBRG/nhQtpEc3JjXqnvyXVF5NjfzqgeGUqTUdZJo UrUVT2n7QpvWj08XTgMUlKvIgrfcZq576odJ04KmxA48l6Q4t5A4d6KP2nkuiX6DsTgo Y3XbNVk5/djg7v3Ab66FLD/6VpI0YLkCmXnAiJyYwJlosC2TSRM9XksHin3VJM+n+ZN2 RuGO42bgD+oIvDmSYOnjE72o9/vdYXQJMxR6LGWmpculgFwIlF8mONmcRZUTswayrMQS mMEg== X-Gm-Message-State: AKaTC03vPdso3XNEkboxq4/ojo60QBxwSAvgzZzxleO7pfUMLQ/v+nlZ21HT0p3ua9O1nA== X-Received: by 10.99.230.83 with SMTP id p19mr124058266pgj.138.1481158780277; Wed, 07 Dec 2016 16:59:40 -0800 (PST) Received: from majic.sklembedded.com (c-73-241-2-21.hsd1.ca.comcast.net. [73.241.2.21]) by smtp.googlemail.com with ESMTPSA id n25sm45265872pfi.33.2016.12.07.16.59.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Dec 2016 16:59:39 -0800 (PST) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, tomi.valkeinen@ti.com, p.zabel@pengutronix.de Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Steve Longerbeam Subject: [PATCH 10/12] gpu: ipu-v3: Add ipu_unit_type enumeration Date: Wed, 7 Dec 2016 16:57:51 -0800 Message-Id: <1481158673-15937-11-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481158673-15937-1-git-send-email-steve_longerbeam@mentor.com> References: <1481158673-15937-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds an enumeration of the major IPUv3 subunits. Provide that info in struct ipu_client_platformdata to more easily determine the IPU client type. Signed-off-by: Steve Longerbeam --- include/video/imx-ipu-v3.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index 53cd07c..7709af7 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h @@ -28,6 +28,23 @@ enum ipuv3_type { IPUV3H, }; +/* + * Enumeration of the major IPU subunits + */ +enum ipu_unit_type { + IPU_IDMAC = 0, + IPU_CM, + IPU_CSI, + IPU_SMFC, + IPU_IC, + IPU_VDI, + IPU_IRT, + IPU_DC, + IPU_DI, + IPU_DP, + IPU_DMFC, +}; + #define IPU_PIX_FMT_GBR24 v4l2_fourcc('G', 'B', 'R', '3') /* @@ -399,6 +416,7 @@ int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode, bool hflip, bool vflip); struct ipu_client_platformdata { + enum ipu_unit_type type; int csi; int di; int dc;