From patchwork Thu Dec 29 22:27:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9491565 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 2414162AB7 for ; Thu, 29 Dec 2016 22:30:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E03D20007 for ; Thu, 29 Dec 2016 22:30:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F423425D99; Thu, 29 Dec 2016 22:30:47 +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.7 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID, URIBL_SBL autolearn=unavailable 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 7F4BB20007 for ; Thu, 29 Dec 2016 22:30:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753458AbcL2Waa (ORCPT ); Thu, 29 Dec 2016 17:30:30 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33688 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753278AbcL2W2X (ORCPT ); Thu, 29 Dec 2016 17:28:23 -0500 Received: by mail-pg0-f66.google.com with SMTP id g1so20092949pgn.0; Thu, 29 Dec 2016 14:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qf/2DTgGsH4vWjCgVYMr4b7EP12Ey2pAaPs+LFmtRZI=; b=gn57ELcQ7HvHZMKU3D1HLdnX1lWGstr2DIL/GZlx/q1QxaJHZLl3mwmjmOZEe+3fNS 2EzHKS2desvOqzP95Gm/nGQKjgxDBkzJ7ch6w/apNh7Rge7RLMfwtJkZqfnr3KGGDBP9 qDpTG6L1dceq1MJqyGeCrpv8qlvXqWeTEnsUZF5unttev4lPHKq2tHFJ7YXcIQzh7YBs 62CyZMmJlrvaTiHhT0svKEuxlpXvl25rGxwCJiI8jSnfCgN8CWpBP4sMLQbF5t1jmqWl 0+fSVmwyVwwgQCfVy/HWEB1zu6Nompi+v6G/kzJulSQv05PrLLR5zARwEb/UO6rFgQv6 U7hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qf/2DTgGsH4vWjCgVYMr4b7EP12Ey2pAaPs+LFmtRZI=; b=ogfdXoMM3FE5BJpJJDGtMpZuUXdDm5hidI5PtmJZiCl9aOMe94+ZQyQBweVIH0SMl+ v3fN6/RShVO983dgyz6MXzKFBXebtOxSa4M+eLOBsuK8GuKTkOqInMXg0eM53H/ipYdj Jt48RNhrUSSo4oLUa2w18GVdvGC/59nH9yQV4ZHx3wnsyeiTmWPeoAwN7MFU1yOtEcV1 oyRZ6FzWINFgymtEDd4Bfzey1lusFqyg0Y7jkZeZqbvXOKFadFW7WCNEYfGsP0oKotCQ FWnD/UVw8n8R17e3U0c3wU5UgUSgcYJWX/W8drcGYONEnncYc22dHAqAg7u+nGybluqH Y8RA== X-Gm-Message-State: AIkVDXLHp7QLUGQouFEYGAnz1Npro2ux4lCLECO50MzfsuLTWZWfF9kzIawFRKHi3iUYhQ== X-Received: by 10.98.92.133 with SMTP id q127mr40635558pfb.152.1483050502695; Thu, 29 Dec 2016 14:28:22 -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 u3sm107243068pfk.3.2016.12.29.14.28.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Dec 2016 14:28:21 -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, linus.walleij@linaro.org, gnurou@gmail.com, mchehab@kernel.org, gregkh@linuxfoundation.org, p.zabel@pengutronix.de Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Steve Longerbeam Subject: [PATCH 15/20] media: imx: Add Camera Interface subdev driver Date: Thu, 29 Dec 2016 14:27:30 -0800 Message-Id: <1483050455-10683-16-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483050455-10683-1-git-send-email-steve_longerbeam@mentor.com> References: <1483050455-10683-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is the camera interface driver that provides the v4l2 user interface. Frames can be received from various sources: - directly from SMFC for capturing unconverted images directly from camera sensors. - from the IC pre-process encode task. - from the IC pre-process viewfinder task. - from the IC post-process task. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile | 2 +- drivers/staging/media/imx/imx-camif.c | 1011 +++++++++++++++++++++++++++++++++ 2 files changed, 1012 insertions(+), 1 deletion(-) create mode 100644 drivers/staging/media/imx/imx-camif.c diff --git a/drivers/staging/media/imx/Makefile b/drivers/staging/media/imx/Makefile index d2a962c..fe9e992 100644 --- a/drivers/staging/media/imx/Makefile +++ b/drivers/staging/media/imx/Makefile @@ -8,4 +8,4 @@ obj-$(CONFIG_VIDEO_IMX_MEDIA) += imx-ic.o obj-$(CONFIG_VIDEO_IMX_CAMERA) += imx-csi.o obj-$(CONFIG_VIDEO_IMX_CAMERA) += imx-smfc.o - +obj-$(CONFIG_VIDEO_IMX_CAMERA) += imx-camif.o diff --git a/drivers/staging/media/imx/imx-camif.c b/drivers/staging/media/imx/imx-camif.c new file mode 100644 index 0000000..034a1ff --- /dev/null +++ b/drivers/staging/media/imx/imx-camif.c @@ -0,0 +1,1011 @@ +/* + * Video Camera Capture Subdev for Freescale i.MX5/6 SOC + * + * Copyright (c) 2012-2016 Mentor Graphics Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include