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: 9467347 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 E82AB60231 for ; Fri, 9 Dec 2016 01:40:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBB4B28534 for ; Fri, 9 Dec 2016 01:40:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D062E28615; Fri, 9 Dec 2016 01:40:06 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9AF2D28534 for ; Fri, 9 Dec 2016 01:40:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 826976E8AC; Fri, 9 Dec 2016 01:39:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id D29566E6EB for ; Thu, 8 Dec 2016 00:59:40 +0000 (UTC) Received: by mail-pg0-x242.google.com with SMTP id p66so25034915pga.2 for ; 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=LpH5tndi2RHddVxkJuOa8XInaDcQw5JsrQ9uY+OQL5RayQBjXIpQg31UHR9441GqZH oeEKQ7pN7RwurQn043w1bqF4Eob9aJP3JDW0L/h+RnJaNiC9Ci7KiECMpdl7AGh+a6eA OXDquJAVpbAolE+lANO0OX0rOyc6vM+2GvtI0G4/osLXJpQ9ae8htbzbY6Hlm/RSDIMV JxXcTKgi2KaQNuoN0jst49FjoIpMjCRcvtrEkIt8mx4C1RDTXhJ0krgrIIUu/r5wCnym SaDHj+mXvSXOO15A/gBjEu2V+d5Cn+x4W1Xxv2Q7CpcgQNOxQOEk/fAQsddUuWhhfhWP RgSA== X-Gm-Message-State: AKaTC01VcGNxM6/MgeD+l7R/yRZ+1/Xz3eVmPrYMYHESgomUSfSVnKjlQFzcIzOxNufc6A== 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 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> X-Mailman-Approved-At: Fri, 09 Dec 2016 01:39:51 +0000 Cc: devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, Steve Longerbeam , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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;