From patchwork Thu Jul 7 23:03:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9220035 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 53B8D60574 for ; Fri, 8 Jul 2016 05:26:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45F432840B for ; Fri, 8 Jul 2016 05:26:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AC2C28411; Fri, 8 Jul 2016 05:26: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=-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 029E12840B for ; Fri, 8 Jul 2016 05:26:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 57BC96E87C; Fri, 8 Jul 2016 05:26:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x242.google.com (mail-pa0-x242.google.com [IPv6:2607:f8b0:400e:c03::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 951476E83D for ; Thu, 7 Jul 2016 23:04:23 +0000 (UTC) Received: by mail-pa0-x242.google.com with SMTP id dx3so2818161pab.2 for ; Thu, 07 Jul 2016 16:04:23 -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=std+XQKKvZiJenkmURDpHS/ndekCQU+DVpjSzH0qeAA=; b=ncsyH4iTe1+zFDJZcw73qAsEEG1QPnVzlGXhJHoV8sqrTJS6/URHUoOgKagXMzvF2n Uo0b/NxRRrDj64iWOXi/tAJvmD9OgYMl35WVPTPwsEw8xcp4jgVm79dPOyIW2nQQRjig bOKKxfo8P2L0BctlFTiu36B5dnQWD5hpjOc7qFV8CN60oTVLqByCN6wCa9lLM2JV6wgr N0ciBqdn0jEQCx1+fPlhl7ROIDL/hQGHLD9x/ynoU2t9OJBTEKpkNT6UKrnvKnOPoe2y QizHa3XiRYqOwZRKt+2W0/156r/4VYxjnYuTlVuyJa+kdjsAj2j3WIowxxZnxQc4gwI+ D19w== 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=std+XQKKvZiJenkmURDpHS/ndekCQU+DVpjSzH0qeAA=; b=RX0L9XZW6dO3eciYiiTbz2HlEloz6/HQX3FZgvPOHNuZSV5kJvUP6PzfE06YoDOoNx tbDSetJAsNvlhg4iOEUwQmC6gJdtfDBHdcjbvaFigN3zu57jSOFSQeJhWmnRo8+/Zuzq qNULY0n0X8OlYwqF4P693IPjJAUVk/kqdmRxfevDwZgaIhTB7fwuRoDQx/AkHmZop0Kn YQ/8vD6y5Re+ohkL8c4HkHaVnl/HA6LIQr5P6gz1WxhivsepySZ3d9ng7EgZH4D4vn+Q P8fMQbs5+cVfy1XKa1XJCSLgOCPIbQzjjTHOSg6NdeMwyW2Vi1mzkOXIu4o/lUrgKFTA s/KA== X-Gm-Message-State: ALyK8tLNOJa5v3IFse8diEvBeeTdOgMQ/n5tZDlg+ZbKOqjfCVhFVhtxhsfGwC/0GFSgRA== X-Received: by 10.66.221.134 with SMTP id qe6mr4508456pac.76.1467932662899; Thu, 07 Jul 2016 16:04:22 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 16:04:22 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: p.zabel@pengutronix.de Subject: [PATCH 12/16] gpu: ipu-v3: Fix CSI0 blur in NTSC format Date: Thu, 7 Jul 2016 16:03:37 -0700 Message-Id: <1467932621-358-13-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: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Suresh Dhandapani 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 From: Suresh Dhandapani This patch will change the register IPU_CSI0_CCIR_CODE_2 value from 0x40596 to 0x405A6. The change is related to the Start of field 1 first blanking line command bit[5-3] for NTSC format only. This change is dependent with ADV chip where the NEWAVMODE is set to 0 in register 0x31. Setting NEWAVMODE to "0" in ADV means "EAV/SAV codes generated to suit analog devices encoders". Signed-off-by: Suresh Dhandapani --- drivers/gpu/ipu-v3/ipu-csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers/gpu/ipu-v3/ipu-csi.c index 0eac28c..ec81958 100644 --- a/drivers/gpu/ipu-v3/ipu-csi.c +++ b/drivers/gpu/ipu-v3/ipu-csi.c @@ -422,7 +422,7 @@ int ipu_csi_init_interface(struct ipu_csi *csi, ipu_csi_write(csi, 0xD07DF | CSI_CCIR_ERR_DET_EN, CSI_CCIR_CODE_1); - ipu_csi_write(csi, 0x40596, CSI_CCIR_CODE_2); + ipu_csi_write(csi, 0x405A6, CSI_CCIR_CODE_2); ipu_csi_write(csi, 0xFF0000, CSI_CCIR_CODE_3); } else { dev_err(csi->ipu->dev,