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: 9491601 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 68A5862AB7 for ; Thu, 29 Dec 2016 22:33:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53E2720007 for ; Thu, 29 Dec 2016 22:33:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4823C2018E; Thu, 29 Dec 2016 22:33:03 +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=-2.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, URIBL_SBL autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0696F20007 for ; Thu, 29 Dec 2016 22:33:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMjE9-0000qc-D6; Thu, 29 Dec 2016 22:31:13 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMjBe-0006pW-Tn for linux-arm-kernel@lists.infradead.org; Thu, 29 Dec 2016 22:28:51 +0000 Received: by mail-pg0-x241.google.com with SMTP id n5so20096298pgh.3 for ; 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=BTOr6q8v1EvggvkeP/cvwDP3rPhKVFCTWPaowJoq3mIRDf42SX2zwAUVFhSdp5VNG1 OyD5xJBbalCk8toRYu+gbh3BLmr6xmmHGN5nb0DvD9c+PxSSU3samWbMMcu84YWxHCo5 w3AJI4z3lmb2Gfqm9hvEt1FO5pN5KHqzUX+3nbC6uUAYkNMMk3L/CUewiIr+TnOSYNrM yqRyX9Kxd/jbvjOuMlc6lMYD8ET0F+grzTLpo8z36VytRoqbYjOk82bXBhb6sScxzz+H ShZwtPhoKJLbRcibxVTPow2eT9VdsmGyLIGM68vjj3Sm4CAlBoKd/XILNaydxSu/j2zR WfaA== X-Gm-Message-State: AIkVDXKcRHZ1rzq8ds6H7Z8Vu/g7tqZrF6stOaGrJE9xlT/PCEZGRyH0ZkvrG0ETQZQ8sg== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161229_142839_221368_A0B6E4C7 X-CRM114-Status: GOOD ( 20.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Steve Longerbeam , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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