From patchwork Wed Jul 6 23:06:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9217307 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 D3F15607D9 for ; Wed, 6 Jul 2016 23:07:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C52E328522 for ; Wed, 6 Jul 2016 23:07:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA02328524; Wed, 6 Jul 2016 23:07:37 +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 BBA2428522 for ; Wed, 6 Jul 2016 23:07:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932550AbcGFXHb (ORCPT ); Wed, 6 Jul 2016 19:07:31 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34234 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932496AbcGFXHa (ORCPT ); Wed, 6 Jul 2016 19:07:30 -0400 Received: by mail-pf0-f196.google.com with SMTP id 66so101624pfy.1 for ; Wed, 06 Jul 2016 16:07:30 -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=PR3KTydU4srl1UBob0eoUD0Aq+JynSthO5m8ROt+wVa3M4m3eWnYaRJz3H5YJh2fAB 5dZcAApp2IekGdYRE989sPufssqIYHHUW0VLcc+cQfA06wrX1rBZv/vieOsL9uGu+I7L Mf8ImudFolG/ZHQhCxikuB0SZCyInyOYdFdjq350qS7lv/BGnJDXQVBu8qsdeG5WCOa1 w/bnpWd2UmRl4mNndnsHAVM3gRSdc1VsU85p1yuPPliyvDSzWRBeIjh6grEPu4BpHrpw EWBR6DsSxcSJDgEMcPkZ2G60etCuYLXwnuUFFxLYnqgVpbAYCDeG2r7y6RhNXUzkDthh 7U7Q== 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=WUVarMYwzFWe7tN91Zd7LyW3vCqCfE13xLaRuuTbymQKe0M3m5/EpacYbSccWlnXa5 O9bQqjlMSWsbKwfoFAz0RJVAq7WnQN1VixBiP8o8v2Rl9OSaN/dDMklLu/tZnRf53t9s UAU+OLD1wHYEUwzYQ9zOgm+M8GQH+9YIgRCI0HyvVH+VPm1iikbk+LJr7dpvedMX8rqM 845ktQ6hpAhN9aa7LjVigA5fAcR5kvoMuAF7dz/oZd5b5zhyTaXg7mygMwGrLanvdPq5 BC4S7DWyCprGXpmvOcMREdGcWXWx5nIqK9v5tcBCmSSEnKTKJ2w5gw7rblZi5ugrs88q 6A5A== X-Gm-Message-State: ALyK8tIfM2n/IV98gao9aYmKX2hfOsEoaAbyJO8vUBTUc1MkRS0fkxd8Ge9Lmw0YcAIJOw== X-Received: by 10.98.65.209 with SMTP id g78mr46320471pfd.93.1467846449658; Wed, 06 Jul 2016 16:07:29 -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 c189sm6724125pfg.19.2016.07.06.16.07.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 16:07:29 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Steve Longerbeam Subject: [PATCH 08/28] gpu: ipu-v3: Add ipu_csi_set_src() Date: Wed, 6 Jul 2016 16:06:38 -0700 Message-Id: <1467846418-12913-9-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467846418-12913-1-git-send-email-steve_longerbeam@mentor.com> References: <1465944574-15745-1-git-send-email-steve_longerbeam@mentor.com> <1467846418-12913-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);