Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934046AbcLHBBn (ORCPT ); Wed, 7 Dec 2016 20:01:43 -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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1013 Lines: 47 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; -- 2.7.4