From patchwork Thu Dec 29 22:27:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9491543 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 1773462ABA for ; Thu, 29 Dec 2016 22:29:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 052EC20007 for ; Thu, 29 Dec 2016 22:29:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE09F200F5; Thu, 29 Dec 2016 22:29:48 +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.3 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 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 E80B025D99 for ; Thu, 29 Dec 2016 22:29:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753452AbcL2W22 (ORCPT ); Thu, 29 Dec 2016 17:28:28 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33701 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753396AbcL2W2Z (ORCPT ); Thu, 29 Dec 2016 17:28:25 -0500 Received: by mail-pg0-f68.google.com with SMTP id g1so20093008pgn.0; Thu, 29 Dec 2016 14:28:25 -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=EYUG8h/qX2OuSwHygxT6+rXCyrZ8s/2xU9SEg3CFeWE=; b=U8jlEkK5Nzv49GMZRah4523nPZ56rjrmrUIoobzEX3XuSLh1cudxwFpk6plrFoNl5I cwMkH6ZAkvpZO0erMyJ7I5u5IxPCTbyMQy6clQz0fefRN3DwWv2NjwRK/N13mgWHfITT 0A/N3PkBTRSpDfeB1JZBPadNv34KXSjDSkAr/2PET19GidqTKT7UJN26yMPcpOjL1sGQ Tsus5F1owy8NEHiWkL5UNAD0TcF6TdI1Rzy9vk5tV6CZbvKGugeuaWyLYxPxHyd3WInE GGaxAEokcxJ31Hj6GLS2FJhR8i9ZzU3MwgcAxUSs6zGceX1YDlsazIgfSOb13E1i3WUv PAoQ== 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=EYUG8h/qX2OuSwHygxT6+rXCyrZ8s/2xU9SEg3CFeWE=; b=qs3dmL6EylE8wKrCOsM7NT014n0OA5Jhr8CCFMODgF+nU1zlqdH4GBZZIsMYFDPLlK GyqYY5UoNsrWartP7Rrh7sJm0RoXi/npXPi4JPnnvtSF74Xbx82j7gCoXt2GtVihHdVu SDQCxoVKJRg4ytysbOQxVTsacGEgR8n6NGqKqNlB5mJUDbPb7jA/sFO0bdblC78ex4JV E+sCH2e/gb1FXXm/zABNb/KcboyUcMr64SAmPbqKT1HarVFGvT087fofxZY+0B5Qe76W 1kyVSYu4WnogayMKGZdmZsUA2gzRKn9A61kWb1lyxE7q2IACHV493Z2Dk/5iUJekhvCA 0DLA== X-Gm-Message-State: AIkVDXL2G7mP/h9NQ6qNh9NE20e4u4dJIOgnwLYFRBAOqYhdxu/22/Ly+YJ/P9BfWBEN/A== X-Received: by 10.98.207.195 with SMTP id b186mr40648956pfg.40.1483050504764; Thu, 29 Dec 2016 14:28:24 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Dec 2016 14:28:23 -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 16/20] media: imx: Add MIPI CSI-2 Receiver subdev driver Date: Thu, 29 Dec 2016 14:27:31 -0800 Message-Id: <1483050455-10683-17-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 Adds MIPI CSI-2 Receiver subdev driver. This subdev is required for sensors with a MIPI CSI2 interface. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/Makefile | 1 + drivers/staging/media/imx/imx-mipi-csi2.c | 509 ++++++++++++++++++++++++++++++ 2 files changed, 510 insertions(+) create mode 100644 drivers/staging/media/imx/imx-mipi-csi2.c diff --git a/drivers/staging/media/imx/Makefile b/drivers/staging/media/imx/Makefile index fe9e992..0decef7 100644 --- a/drivers/staging/media/imx/Makefile +++ b/drivers/staging/media/imx/Makefile @@ -9,3 +9,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 +obj-$(CONFIG_VIDEO_IMX_CAMERA) += imx-mipi-csi2.o diff --git a/drivers/staging/media/imx/imx-mipi-csi2.c b/drivers/staging/media/imx/imx-mipi-csi2.c new file mode 100644 index 0000000..84df16e --- /dev/null +++ b/drivers/staging/media/imx/imx-mipi-csi2.c @@ -0,0 +1,509 @@ +/* + * MIPI CSI-2 Receiver Subdev for Freescale i.MX5/6 SOC. + * + * Copyright (c) 2012-2014 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 +#include