Received: by 10.223.185.116 with SMTP id b49csp1051153wrg; Wed, 21 Feb 2018 11:13:12 -0800 (PST) X-Google-Smtp-Source: AH8x225XS6KEAXYrlWacJ+20DLeNSxhqFbKKstyzhHITCARkKndgbLaSdlzwI+bik3M3Qcm+QB7I X-Received: by 10.98.102.82 with SMTP id a79mr4288135pfc.138.1519240392582; Wed, 21 Feb 2018 11:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519240392; cv=none; d=google.com; s=arc-20160816; b=W/ztMJ+cmqKMC46JOr/nV5ciB1K8ncES7T044+mVwPkj+fwY9g/l2DPN1K5ACU+CSM atPMkuYkg2pdSjdHqw6ClVRjHL17hNvPtTzeNw8WzGmojTpdXyEUB3IaGolWzNs29/+9 RfEgV21nLbuo1wQiBZxb1MBY3VE2D9mKWrE1Th4OupgNpPXRrlE3/YHIDl4yptJxvhQP ZTdWKaMycrAE/6jEMzgLYJa309s4EKlKjw3YDla9iZan0Iebb485ZupWdqjHN1I0tJjp XChfhQx8WG/ii8lyYhIRsZ+2rlp1Xq5Jh0uKodllJUd3bi59TSpu5sAs1fBAcN4L4V7Q hLfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=ZMmqVKQeLCk7+IEIMlKcipJRkN+yWD+oPN2HDFR+FbY=; b=JyZQpBALD0n58L+ydeifH578GW90/mBLfuBWw/0Yv8O0e9zNyM0PurcMWPFzo1aC5V oUVn2lCTIjCu/X7sTllH/o+FCHyBkMYtls81Z+owqauYgj8Chdrf0n2OQ+xMPxCmlquw hk0ipSRL9Zombg6LtDEFLDtvFqM438cbymSVIhE02LyLNxVu0bSviEuvAZyBackKwe92 HHrE8aIMwDjONhjbm3fF2nXiQLrD+NRUCPkhoYUvBhloxoBvG1UoEgb7Smp33ADBnN62 9vThNhSiea/5xiSex7knh4z5MqR7FMuTEVHO8ljIncpRjLt4MABd1pk+RnJJJRs/ibSq MK5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si2112786pgn.306.2018.02.21.11.12.58; Wed, 21 Feb 2018 11:13:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933826AbeBURv6 (ORCPT + 99 others); Wed, 21 Feb 2018 12:51:58 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53732 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753863AbeBURs0 (ORCPT ); Wed, 21 Feb 2018 12:48:26 -0500 Received: from w540.lan (unknown [IPv6:2001:b07:6442:1ac4:dc0f:9fe1:3acf:e73a]) (Authenticated sender: jacopo@jmondi.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id A8E5517209B; Wed, 21 Feb 2018 18:48:20 +0100 (CET) From: Jacopo Mondi To: laurent.pinchart@ideasonboard.com, magnus.damm@gmail.com, geert@glider.be, hverkuil@xs4all.nl, mchehab@kernel.org, festevam@gmail.com, sakari.ailus@iki.fi, robh+dt@kernel.org, mark.rutland@arm.com, pombredanne@nexb.com Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v10 02/10] include: media: Add Renesas CEU driver interface Date: Wed, 21 Feb 2018 18:47:56 +0100 Message-Id: <1519235284-32286-3-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519235284-32286-1-git-send-email-jacopo+renesas@jmondi.org> References: <1519235284-32286-1-git-send-email-jacopo+renesas@jmondi.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add renesas-ceu header file. Do not remove the existing sh_mobile_ceu.h one as long as the original driver does not go away. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- include/media/drv-intf/renesas-ceu.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/media/drv-intf/renesas-ceu.h diff --git a/include/media/drv-intf/renesas-ceu.h b/include/media/drv-intf/renesas-ceu.h new file mode 100644 index 0000000..52841d1 --- /dev/null +++ b/include/media/drv-intf/renesas-ceu.h @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * renesas-ceu.h - Renesas CEU driver interface + * + * Copyright 2017-2018 Jacopo Mondi + */ + +#ifndef __MEDIA_DRV_INTF_RENESAS_CEU_H__ +#define __MEDIA_DRV_INTF_RENESAS_CEU_H__ + +#define CEU_MAX_SUBDEVS 2 + +struct ceu_async_subdev { + unsigned long flags; + unsigned char bus_width; + unsigned char bus_shift; + unsigned int i2c_adapter_id; + unsigned int i2c_address; +}; + +struct ceu_platform_data { + unsigned int num_subdevs; + struct ceu_async_subdev subdevs[CEU_MAX_SUBDEVS]; +}; + +#endif /* ___MEDIA_DRV_INTF_RENESAS_CEU_H__ */ -- 2.7.4