From patchwork Tue Jun 14 22:49:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9177143 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 A83036021C for ; Tue, 14 Jun 2016 22:53:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98C5B28307 for ; Tue, 14 Jun 2016 22:53:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D9532833B; Tue, 14 Jun 2016 22:53:17 +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 C467228307 for ; Tue, 14 Jun 2016 22:53:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752330AbcFNWxL (ORCPT ); Tue, 14 Jun 2016 18:53:11 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34696 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbcFNWvN (ORCPT ); Tue, 14 Jun 2016 18:51:13 -0400 Received: by mail-pf0-f193.google.com with SMTP id 66so305924pfy.1 for ; Tue, 14 Jun 2016 15:51:13 -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=cE+kdY6bdtAgd0yvw2v+Z4jcBH/ncBWQ3X2EzSiSOxBxo/P8+UQZnnshFWzAV+jwPv P6kPGqUYm7dFutEFE7gn8GfP46T28lTcyvNxhBsJc7Oc8ZmppuTp79nTQ24H8p+fm9o0 LNPOZLEnbgn3fuhMtdjtqvBw1X02JIbmWp9KNCbUnQeVZ2e5i0jFC4GxKxyGsu57RoSJ kBInG6Vjvsa6dWLBNSQZDJ7m5krYldZU/uuEsqCBBy9xtWW5Y6P8FMe8dT7seeG54S7U 2XxyTSlvAlfiYtLKL6WKqoh4KXwOctCKFe7zx6unZUja8rtyZ18Wibo+loKLEoSdHta9 SGQw== 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=hnW0Dh4gmGXvvNn2ggzq+Yy518YPBnsC6odGIaaG56lvbq4qrtioBLVXwcCL30+Dte R6r/9JvbovYhsBJvajx3RsNRjgvor3wTV9LCzj35M5twhRHnFtTURAUj0lnspzVwcYEK Jwt2z0s1ROo/S+n3pbFnnLWgjI1z1Vrry2CzHJK7M9cvVa//b1Z07TYDIFFbWT9mSPYe bs4zxcW9o1wya4p1RwmNqc9B/ZvA3wtynjs76iQ6ME2Pb8aainF1UC2zHkg5A68UDq/8 HuN9BEtVqEfNzufHw2KoV+eV1S+4/QdLweG/2B1R6M/AYjAXkNr577zbPXz+hV8wANBG kd2Q== X-Gm-Message-State: ALyK8tKzwhwkyR1IUnsXyyxfWXzTsFj5xe8XbROsU2Pf5rme9+9kc0aOePXC9aDiYP9ezA== X-Received: by 10.98.149.149 with SMTP id c21mr42914pfk.73.1465944673129; Tue, 14 Jun 2016 15:51:13 -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.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 15:51:12 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Suresh Dhandapani Subject: [PATCH 12/38] gpu: ipu-v3: Fix CSI0 blur in NTSC format Date: Tue, 14 Jun 2016 15:49:08 -0700 Message-Id: <1465944574-15745-13-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 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,