From patchwork Sat Jun 7 21:56:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 4316321 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D35D9BEECB for ; Sat, 7 Jun 2014 21:58:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A95820225 for ; Sat, 7 Jun 2014 21:58:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3914420266 for ; Sat, 7 Jun 2014 21:58:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753421AbaFGV6O (ORCPT ); Sat, 7 Jun 2014 17:58:14 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:61510 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753291AbaFGV5Y (ORCPT ); Sat, 7 Jun 2014 17:57:24 -0400 Received: by mail-pd0-f176.google.com with SMTP id p10so3798443pdj.7 for ; Sat, 07 Jun 2014 14:57:24 -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=Il4nb8tIXhZsaziw/uCfh1DBG6YrTllC1uBrfkfkBD0=; b=nEZtTWBGBlpHAdMF6VxEIPlXCK+PStvg7SJaPWVl24oTIDVuv8HnTRjf3iomHGaZ7c 6U0gHOtQRGISMx5RgqP7OMXvmm6LaLIciiW2AYOpLP5SbH98ADeaBARt4ZceQdwkn2sk yMoo1Tsgch4k5l+TNimq7VxBtgNR/NLPBL3SOlzhgoBIC8JA9hoMYlh8Aq44GEkoap83 KGIO44f9aLAY93HYlmESNHyvxb5+lf4rhtaokF3t0a7uKXsG4JIROc6mUPXQGVVJ5sQO MkrN69a8SpidL0+l1twSNHxaJvkTpT2Uj1FRo+WMOiTP6t8HaTE6Fw5Ve4xXT2wRhNQk pirQ== X-Received: by 10.68.164.100 with SMTP id yp4mr2478392pbb.136.1402178244068; Sat, 07 Jun 2014 14:57:24 -0700 (PDT) Received: from slongerb-fremont-linux.mgc.mentorg.com (c-98-248-118-71.hsd1.ca.comcast.net. [98.248.118.71]) by mx.google.com with ESMTPSA id fx5sm52769595pbb.62.2014.06.07.14.57.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Jun 2014 14:57:23 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Steve Longerbeam Subject: [PATCH 23/43] imx-drm: ipu-cpmem: Add ipu_cpmem_set_block_mode() Date: Sat, 7 Jun 2014 14:56:25 -0700 Message-Id: <1402178205-22697-24-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402178205-22697-1-git-send-email-steve_longerbeam@mentor.com> References: <1402178205-22697-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-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds ipu_cpmem_set_block_mode(). Signed-off-by: Steve Longerbeam --- drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c | 6 ++++++ include/linux/platform_data/imx-ipu-v3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c b/drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c index 06471ee..c7910cc 100644 --- a/drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c +++ b/drivers/staging/imx-drm/ipu-v3/ipu-cpmem.c @@ -258,6 +258,12 @@ void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize) }; EXPORT_SYMBOL_GPL(ipu_cpmem_set_burstsize); +void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch) +{ + ipu_ch_param_write_field(ch, IPU_FIELD_BM, 1); +} +EXPORT_SYMBOL_GPL(ipu_cpmem_set_block_mode); + int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch, const struct ipu_rgb *rgb) { diff --git a/include/linux/platform_data/imx-ipu-v3.h b/include/linux/platform_data/imx-ipu-v3.h index 91986ed..beb2e4b 100644 --- a/include/linux/platform_data/imx-ipu-v3.h +++ b/include/linux/platform_data/imx-ipu-v3.h @@ -229,6 +229,7 @@ void ipu_cpmem_set_high_priority(struct ipuv3_channel *ch); void ipu_cpmem_set_buffer(struct ipuv3_channel *ch, int bufnum, dma_addr_t buf); void ipu_cpmem_interlaced_scan(struct ipuv3_channel *ch, int stride); void ipu_cpmem_set_burstsize(struct ipuv3_channel *ch, int burstsize); +void ipu_cpmem_set_block_mode(struct ipuv3_channel *ch); int ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch, const struct ipu_rgb *rgb); int ipu_cpmem_set_format_passthrough(struct ipuv3_channel *ch, int width);