From patchwork Tue Jun 14 22:49:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9177085 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 B5C796021C for ; Tue, 14 Jun 2016 22:51:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6334282F9 for ; Tue, 14 Jun 2016 22:51:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B3EC2833B; Tue, 14 Jun 2016 22:51:22 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 525AC282F9 for ; Tue, 14 Jun 2016 22:51:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752870AbcFNWvP (ORCPT ); Tue, 14 Jun 2016 18:51:15 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35591 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752793AbcFNWvK (ORCPT ); Tue, 14 Jun 2016 18:51:10 -0400 Received: by mail-pf0-f193.google.com with SMTP id t190so301639pfb.2 for ; Tue, 14 Jun 2016 15:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Fa+NC0Sb+QlfYM0FtyJ2svAfChk3zSYAz8zT1GDKmyQ=; b=aKwOtoPd3ve1Y5qusn9EN9oQ5em4A8PviGzsXPoFf2kZE3bVyAU2rd7NHUDx7qkqwg e2cvLMyBy9Utc8xPTQn9xn0fgjWenmVUD5PGlsEkIfwv6QQa1Xw8XzD988m3IqybbGTP YOZUOrb58xGMe0R7I9aHJDTiVGQAgref47Lq31RK2wEiAhI864TNzbG34QknlAvAd8J7 JaD2jnajS39xY+9HZwpLCaOeahksuQOdpHyAO1uxVrn34ve83Y0rEW8ZjnbtQub46BfI Av3gIVThXH+q43zeNKN2ROx3yWcgexxm+zJg2YxbsQbjDAYxxXBqx0ezj1RrH1Gd5Nvz VI8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Fa+NC0Sb+QlfYM0FtyJ2svAfChk3zSYAz8zT1GDKmyQ=; b=d6/G7PJUgsJG991yjxJrSPYnS8fm32dSlTO/nKhE3LPK3oducJ40dQxaWrLbfsaZlG DWiXnDsItMqk0xlWbTGQw/7yMHjuIZTr/5aG25Jo9VROOEqKy6QKfxfk9YYGi6eVpVGM 9C++XO2cwWn244dxariobUEJ65IwTIzkSnv83RnUFojlc9m0Oa3qQJFcsIw3eNP6ZtGW 0/igWQXYVeyoJFWtGgqhzkd2MGWmZgYm3bZcdS1n9W44yO9B0NACB+Bi9ncM/4DA6xlf k270RgThmCgCObM9wV+P61ODMfkmdb3huLlE/+lq61iVUs2lnIc9ivjSMHx/CTtzAIam hS/Q== X-Gm-Message-State: ALyK8tInrGFRHLyPVn0yOj5DMrcV8Ljof3H1oIQHd5eTq1BU/J10ekZPpV8vxU5kYA+MZA== X-Received: by 10.98.41.133 with SMTP id p127mr101433pfp.18.1465944670003; Tue, 14 Jun 2016 15:51:10 -0700 (PDT) Received: from mothership.sklembedded.com (c-73-241-2-21.hsd1.ca.comcast.net. [73.241.2.21]) by smtp.googlemail.com with ESMTPSA id v184sm47829999pfb.24.2016.06.14.15.51.09 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 15:51:09 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Steve Longerbeam Subject: [PATCH 08/38] gpu: ipu-v3: Add ipu_csi_set_src() Date: Tue, 14 Jun 2016 15:49:04 -0700 Message-Id: <1465944574-15745-9-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465944574-15745-1-git-send-email-steve_longerbeam@mentor.com> References: <1465944574-15745-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 ipu_csi_set_src() which is just a wrapper around ipu_set_csi_src_mux(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-csi.c | 8 ++++++++ include/video/imx-ipu-v3.h | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers/gpu/ipu-v3/ipu-csi.c index 06631ac..336dc06 100644 --- a/drivers/gpu/ipu-v3/ipu-csi.c +++ b/drivers/gpu/ipu-v3/ipu-csi.c @@ -609,6 +609,14 @@ int ipu_csi_set_skip_smfc(struct ipu_csi *csi, u32 skip, } EXPORT_SYMBOL_GPL(ipu_csi_set_skip_smfc); +int ipu_csi_set_src(struct ipu_csi *csi, u32 vc, bool select_mipi_csi2) +{ + ipu_set_csi_src_mux(csi->ipu, csi->id, select_mipi_csi2); + + return 0; +} +EXPORT_SYMBOL_GPL(ipu_csi_set_src); + int ipu_csi_set_dest(struct ipu_csi *csi, enum ipu_csi_dest csi_dest) { unsigned long flags; diff --git a/include/video/imx-ipu-v3.h b/include/video/imx-ipu-v3.h index 2302fc5..57b487d 100644 --- a/include/video/imx-ipu-v3.h +++ b/include/video/imx-ipu-v3.h @@ -301,6 +301,7 @@ int ipu_csi_set_mipi_datatype(struct ipu_csi *csi, u32 vc, struct v4l2_mbus_framefmt *mbus_fmt); int ipu_csi_set_skip_smfc(struct ipu_csi *csi, u32 skip, u32 max_ratio, u32 id); +int ipu_csi_set_src(struct ipu_csi *csi, u32 vc, bool select_mipi_csi2); int ipu_csi_set_dest(struct ipu_csi *csi, enum ipu_csi_dest csi_dest); int ipu_csi_enable(struct ipu_csi *csi); int ipu_csi_disable(struct ipu_csi *csi);