From patchwork Fri Sep 11 19:40:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hai Li X-Patchwork-Id: 53495 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by patches.linaro.org (Postfix) with ESMTPS id 1480322B26 for ; Fri, 11 Sep 2015 19:40:26 +0000 (UTC) Received: by lbbmp1 with SMTP id mp1sf27872069lbb.2 for ; Fri, 11 Sep 2015 12:40:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:subject:date :message-id:cc:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=ldLOOOJRVnOMYq29uL/0/8AILW9pafoUy4uovfz/rkg=; b=GkUMfMqalicO9dnf634gT0pzOGkl7fJI0KZxkVKYMQUxwW7Sy0Jyz0wyseMg5Uwhao esf1YA/gtr9bYJNFbCa/INPdVlz6aMWc5FWp8+Rl40Ie27Pr/EqZsy4RAagUP4ZH+bXt NraC7S8hbqfs95cMV3AGmDfrH5q7s5vd3aFKQX1cjUUdGqf2l3VilThlb4hhwfyyBJED yyLrpEbUxupaT/nBvSdwpNm6KFzifWq10acs1uXVdS0aS5xCIEqfMwyaXJ7g9eHQP3nx cKRYXy4KqkT7uh1qbF+Q28BVi4EI49OU4iKvE4zva2rZLk0hKsiAmwHULpez6NdeLj5e fSVA== X-Gm-Message-State: ALoCoQkifvxuetPjdwakpggJ08MucFSggxRUDNUmZoTIbhMww1k24CWlfT27WllKHVWJFq32pBvk X-Received: by 10.112.78.101 with SMTP id a5mr135887lbx.9.1442000425023; Fri, 11 Sep 2015 12:40:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.8.133 with SMTP id dk5ls356565lad.75.gmail; Fri, 11 Sep 2015 12:40:24 -0700 (PDT) X-Received: by 10.152.28.229 with SMTP id e5mr455449lah.110.1442000424871; Fri, 11 Sep 2015 12:40:24 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id ut13si1156548lbb.111.2015.09.11.12.40.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 12:40:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lamp12 with SMTP id p12so53433556lam.0 for ; Fri, 11 Sep 2015 12:40:24 -0700 (PDT) X-Received: by 10.112.168.66 with SMTP id zu2mr439124lbb.29.1442000424736; Fri, 11 Sep 2015 12:40:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1801733lbq; Fri, 11 Sep 2015 12:40:23 -0700 (PDT) X-Received: by 10.66.186.39 with SMTP id fh7mr1063954pac.48.1442000423674; Fri, 11 Sep 2015 12:40:23 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id xl6si2466295pbc.74.2015.09.11.12.40.22; Fri, 11 Sep 2015 12:40:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 497AD6E1A2; Fri, 11 Sep 2015 12:40:21 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by gabe.freedesktop.org (Postfix) with ESMTPS id CCCDC6E1A2 for ; Fri, 11 Sep 2015 12:40:20 -0700 (PDT) Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 881BE1419B8; Fri, 11 Sep 2015 19:40:20 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 78B8D1419C8; Fri, 11 Sep 2015 19:40:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-caf-smtp.dmz.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from yyzubuntu32.qualcomm.com (rrcs-67-52-130-30.west.biz.rr.com [67.52.130.30]) (using TLSv1.1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hali@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9710B1419B8; Fri, 11 Sep 2015 19:40:19 +0000 (UTC) From: Hai Li To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/msm/dsi: Updata LNn_CFG4 register settings for 28nm PHY Date: Fri, 11 Sep 2015 15:40:12 -0400 Message-Id: <1442000412-8790-1-git-send-email-hali@codeaurora.org> X-Mailer: git-send-email 1.8.2.1 X-Virus-Scanned: ClamAV using ClamSMTP Cc: linux-arm-msm@vger.kern X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hali@codeaurora.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The current settings for 28nm PHY data lane CFG4 registers do not work with certain panels. This change is to modify them to hw recommended values. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c index f1a7c7b..edf7411 100644 --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c @@ -99,16 +99,14 @@ static int dsi_28nm_phy_enable(struct msm_dsi_phy *phy, int src_pll_id, dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_1(i), 0); dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_2(i), 0); dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_3(i), 0); + dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_4(i), 0); dsi_phy_write(base + REG_DSI_28nm_PHY_LN_TEST_DATAPATH(i), 0); dsi_phy_write(base + REG_DSI_28nm_PHY_LN_DEBUG_SEL(i), 0); dsi_phy_write(base + REG_DSI_28nm_PHY_LN_TEST_STR_0(i), 0x1); dsi_phy_write(base + REG_DSI_28nm_PHY_LN_TEST_STR_1(i), 0x97); } - dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_4(0), 0); - dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_4(1), 0x5); - dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_4(2), 0xa); - dsi_phy_write(base + REG_DSI_28nm_PHY_LN_CFG_4(3), 0xf); + dsi_phy_write(base + REG_DSI_28nm_PHY_LNCK_CFG_4, 0); dsi_phy_write(base + REG_DSI_28nm_PHY_LNCK_CFG_1, 0xc0); dsi_phy_write(base + REG_DSI_28nm_PHY_LNCK_TEST_STR0, 0x1); dsi_phy_write(base + REG_DSI_28nm_PHY_LNCK_TEST_STR1, 0xbb);