Received: by 10.223.185.116 with SMTP id b49csp1760349wrg; Thu, 22 Feb 2018 02:39:09 -0800 (PST) X-Google-Smtp-Source: AH8x227e7vyBkmzbSzPEvoG3h7jSJ/uimJYx2UvsNL+HwGfgrfENcbfwkLHj3Cs2CvPpuERUMu89 X-Received: by 10.98.29.13 with SMTP id d13mr6517868pfd.51.1519295949503; Thu, 22 Feb 2018 02:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519295949; cv=none; d=google.com; s=arc-20160816; b=ZcrzrUmQF0p5+1ZrtXAYKqaaWguLDMFkCeVBO5TiMtCL2M0wjEuRtQFUVSoG0gSOyh vTmPMAeF/W4mIP6T7Vwmv++M/jq5LhjZRLpPFEhP1SLj3AqIvdmmdoD95ADD3tG3hzlq cUTD5R3s72JmhX+WW4GTzW+YBz3HpJnLmIP7LMHEH3nmpBaNDIu04A7NLkDAr5nsYR7r zDtqTIXqTY61dAk3tCOkgRnNevacjhVxQECyLCFKRwDAqNIfyt+2+VFIDttpvP//EAkc uE9Y53+d/rJ3W+nLz3mB8sjP5mVePv8LByhedY1e2IBmnzDzZPtXRj7FZfI96gUCbICw tyKQ== 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=D42lLR7CUUscRWsF3y/TVEuH0Kda5XNg9s0hrcJ/8DhwbeXfkURvgf/xCxIFq2X104 1guKoH98Yt8Y6M9x4xpFLqP4JyNmIQMeNB7/d3y4AOJzgg0KYYI+9cR9Gyk9n/f2lGKa /aYLG3KkDlpaOTZb5usetvT/R4BhQE2Aw3rd5AGzyo6kIZuvyRMlPT4E6CnyyfcpJ8RE 4Oe6ZE4ElDPXLnCZZJQ28kSRV2ZlbCupIonKvIeEmQWekKqPxuibb+D0Cv0fYn244Zxl ZU/36OZnnstInKEGWR0B8k17oovlnzgAClnxeUnCAIyE3dd+OeeQM+iKrtedNsQit5Ri PsYw== 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 j63si1284279pgc.484.2018.02.22.02.38.55; Thu, 22 Feb 2018 02:39:09 -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 S1753464AbeBVKhz (ORCPT + 99 others); Thu, 22 Feb 2018 05:37:55 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54193 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753279AbeBVKhw (ORCPT ); Thu, 22 Feb 2018 05:37:52 -0500 Received: from w540.lan (unknown [IPv6:2001:b07:6442:1ac4:3969:b0e2:8dc9:48c3]) (Authenticated sender: jacopo@jmondi.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 6B1E21720D5; Thu, 22 Feb 2018 11:37:46 +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 v11 02/10] include: media: Add Renesas CEU driver interface Date: Thu, 22 Feb 2018 11:37:18 +0100 Message-Id: <1519295846-11612-3-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519295846-11612-1-git-send-email-jacopo+renesas@jmondi.org> References: <1519295846-11612-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