From patchwork Thu Jul 7 23:03:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9220027 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 0AE1360574 for ; Fri, 8 Jul 2016 05:26:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F19CB2840B for ; Fri, 8 Jul 2016 05:26:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E69BE28411; Fri, 8 Jul 2016 05:26:42 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC8182840B for ; Fri, 8 Jul 2016 05:26:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 13EFA6E879; Fri, 8 Jul 2016 05:26:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 03C086E839 for ; Thu, 7 Jul 2016 23:04:20 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id t190so2907624pfb.2 for ; Thu, 07 Jul 2016 16:04:20 -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=MIoTuu/6TEYvR2n+Ix028d1e0vCrzHTLvUM2JtuejwFzzSsTik9VFA3pGJzfbhb0mp 0Fg8LDFhOjdSQtnuSLOfy3WLn37Iat8lwWc0Gu3u0VfklerafQrkpf+dwhAndmny/BFF 0BrZ1/03u+R4W9qy/cd/juDV3pPC2jhSXK2Y8Noy6WgiI4m3oTiVRiJpmI6FGrKYh1Fy Fb27eprCsSEs/4Q7/nBtCE5n0GEI7xHbB9XB3FImlx77P3407aunyfYyTrOo4urlC0bq SNtYTCmTJWLUPaTQqjkZMxXASmVB11k2Z/Bj4rlGth0pA0Oel/zakcCAvBTndfRHBheY mWAw== 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=ZUEuA+ccv6hIuSOGrc3Ds/Hs1stKkJ/t20+2ouhSrgMTF8VKkm3Vy+lQT9BZiWARak iIwLcrZLnD25qi2Ctq5qad4Fu6bZy/vPH2c6VdM68j+wsfe06VXoUXYOv/IFLP1HeJDw /mbCyv+2jouq4aLGL0wnnQejc7na+UQ26e4vuvCHkuiC9U7/wVvVF18pMfx+d4DoR0KN M5j3YIsy9GShkbld9zgEqaP3TypEYzDHVx6VawVckDjqOcLGU3vIs64jTExu1xYYBffk 7BHYAK0spUSad0FYGpRp70ysSC/w+XupVRx16E0ga4GAFUaJkI/IJBqxPjKecJhkNSdT nL7g== X-Gm-Message-State: ALyK8tJ1EISkZr+OOQtx5pb5LHcoFl73BPn9t7/v/cMAEYuDYPtsaiNPDI0JDXN0/Crbkw== X-Received: by 10.98.104.68 with SMTP id d65mr4555135pfc.34.1467932659315; Thu, 07 Jul 2016 16:04:19 -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 z29sm6846719pff.0.2016.07.07.16.04.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 16:04:18 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: p.zabel@pengutronix.de Subject: [PATCH 08/16] gpu: ipu-v3: Add ipu_csi_set_src() Date: Thu, 7 Jul 2016 16:03:33 -0700 Message-Id: <1467932621-358-9-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467932621-358-1-git-send-email-steve_longerbeam@mentor.com> References: <1467932621-358-1-git-send-email-steve_longerbeam@mentor.com> X-Mailman-Approved-At: Fri, 08 Jul 2016 05:26:19 +0000 Cc: Steve Longerbeam , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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);