From patchwork Fri May 19 16:02:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 9737609 X-Patchwork-Delegate: geert@linux-m68k.org 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 B4201601A1 for ; Fri, 19 May 2017 16:03:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF30E28683 for ; Fri, 19 May 2017 16:03:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A329928934; Fri, 19 May 2017 16:03:11 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 217ED28683 for ; Fri, 19 May 2017 16:03:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751165AbdESQDK (ORCPT ); Fri, 19 May 2017 12:03:10 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:49258 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751208AbdESQDK (ORCPT ); Fri, 19 May 2017 12:03:10 -0400 Received: from mfilter42-d.gandi.net (mfilter42-d.gandi.net [217.70.178.172]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id E2EB01720E5; Fri, 19 May 2017 18:03:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter42-d.gandi.net Received: from relay4-d.mail.gandi.net ([IPv6:::ffff:217.70.183.196]) by mfilter42-d.gandi.net (mfilter42-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id XWmB97PRMuMk; Fri, 19 May 2017 18:03:07 +0200 (CEST) X-Originating-IP: 158.255.198.50 Received: from w540.lan (host-50-static-198-255-158.hosts-appwifi.wifix.org [158.255.198.50]) (Authenticated sender: jacopo@jmondi.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9DAFD1720B8; Fri, 19 May 2017 18:03:06 +0200 (CEST) From: Jacopo Mondi To: laurent.pinchart@ideasonboard.com, magnus.damm@gmail.com Cc: linux-renesas-soc@vger.kernel.org Subject: [RFC v4 1/8] include: media: Move and update CEU driver interface Date: Fri, 19 May 2017 18:02:53 +0200 Message-Id: <1495209780-27342-2-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495209780-27342-1-git-send-email-jacopo@jmondi.org> References: <1495209780-27342-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update Renesas CEU driver interface to use driver interface SQUASH Signed-off-by: Jacopo Mondi --- include/media/drv-intf/renesas_ceu.h | 28 ++++++++++++++++++++++++++++ include/media/drv-intf/sh_mobile_ceu.h | 28 ---------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 include/media/drv-intf/renesas_ceu.h delete mode 100644 include/media/drv-intf/sh_mobile_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..291661d --- /dev/null +++ b/include/media/drv-intf/renesas_ceu.h @@ -0,0 +1,28 @@ +#ifndef __ASM_RENESAS_CEU_H__ +#define __ASM_RENESAS_CEU_H__ + +#define CEU_FLAG_USE_8BIT_BUS (1 << 0) /* use 8bit bus width */ +#define CEU_FLAG_USE_16BIT_BUS (1 << 1) /* use 16bit bus width */ +#define CEU_FLAG_HSYNC_LOW (1 << 2) /* default High if possible */ +#define CEU_FLAG_VSYNC_LOW (1 << 3) +#define CEU_FLAG_LOWER_8BIT (1 << 4) /* default upper 8bit */ +#define CEU_FLAG_PRIMARY_SENS (1 << 5) /* sensor is primary */ + +#define CEU_MAX_SENS 2 + +struct device; +struct resource; + +struct ceu_async_subdev { + unsigned long flags; + unsigned int i2c_adapter_id; + unsigned int i2c_address; + +}; + +struct ceu_info { + unsigned int num_subdevs; + struct ceu_async_subdev subdevs[CEU_MAX_SENS]; +}; + +#endif /* __ASM_RENESAS_CEU_H__ */ diff --git a/include/media/drv-intf/sh_mobile_ceu.h b/include/media/drv-intf/sh_mobile_ceu.h deleted file mode 100644 index 2f43f7d..0000000 --- a/include/media/drv-intf/sh_mobile_ceu.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef __ASM_SH_MOBILE_CEU_H__ -#define __ASM_SH_MOBILE_CEU_H__ - -#define SH_CEU_FLAG_USE_8BIT_BUS (1 << 0) /* use 8bit bus width */ -#define SH_CEU_FLAG_USE_16BIT_BUS (1 << 1) /* use 16bit bus width */ -#define SH_CEU_FLAG_HSYNC_LOW (1 << 2) /* default High if possible */ -#define SH_CEU_FLAG_VSYNC_LOW (1 << 3) /* default High if possible */ -#define SH_CEU_FLAG_LOWER_8BIT (1 << 4) /* default upper 8bit */ - -struct device; -struct resource; - -struct sh_mobile_ceu_companion { - u32 num_resources; - struct resource *resource; - int id; - void *platform_data; -}; - -struct sh_mobile_ceu_info { - unsigned long flags; - int max_width; - int max_height; - struct v4l2_async_subdev **asd; /* Flat array, arranged in groups */ - unsigned int *asd_sizes; /* 0-terminated array pf asd group sizes */ -}; - -#endif /* __ASM_SH_MOBILE_CEU_H__ */