Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp91867imp; Tue, 19 Feb 2019 18:55:46 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib0ke1Kh4MNWTxALTpL7J4cPp1+0r2p2VQspES6IfwHY08jOWW/KQ/i5kOFsqphus6CihkN X-Received: by 2002:a63:5a42:: with SMTP id k2mr13278756pgm.333.1550631346042; Tue, 19 Feb 2019 18:55:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550631346; cv=none; d=google.com; s=arc-20160816; b=ZmugFTN9xXNYJ5BGVpFIekGluSx5EhGUNNHL43Yljyba5JoRi26iJlRQ0K1IdwzVmA 9wR4AgumAZtow+VeVvhD0Jo+eWEZYo1+Nlyma1fj96kAD80B+ZRaFrOxD7+xI/fIMiF/ SgcgOwdY15wVcJyLbaLYe3LsxI9gpAzpKuM62TOxhgxXDTNuU2+ii+oqwDHpIYTZKbhW naCaNqXubfiuBSZ1sokJ/C9U0hAHqrdh+Zz7JqYvlG490RSTvUqY4H1UoaRUjYyiVx2d HIIngIIYfkrzAfsoc4FCo/mqauJe+oF6llrBAvOjMGEZO2LqUM5569oV9Wye7uV3fkjG pyQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=wKtaKB3eHjiaIrQuq4Yr+MTH3jrG7tyEgRVg1qOig1M=; b=Cbey7mwmKO4pMQNXAacypy2LSby+KT4yfhTZwUrBZO/4z2ww8NE8IXXKXHFlL6/eHh /l28s2AzaBkswEsiFLVXHfK8fqE2TMjAr7mSlFsqm4sr1iYC+vA6MnKyydEJptOkmBy0 nO1ftIt+gOFszz9qc9xkP0CCdSGgbUvH/DF9gfZahSkNwaOvvgPZI9VMJ10H1X6uEGn8 lj8Iu7yRtrJW2tLZv4KrWiftaH3nFeQUSMiOqI1t1WiG5o13xBepg6G0qea24ELkEkh0 dyVi7iW/1kWAY2hqAfpxaqkYb3ZxlG+W2vJpeZZbSklVAjwrWq2vO/FlRt8GsrPkAQDn XWfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p74si17309639pfa.279.2019.02.19.18.55.31; Tue, 19 Feb 2019 18:55:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730454AbfBTCyg (ORCPT + 99 others); Tue, 19 Feb 2019 21:54:36 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:8719 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730425AbfBTCyd (ORCPT ); Tue, 19 Feb 2019 21:54:33 -0500 X-UUID: 370b66b2d3de4461ad42a757c82ce3a7-20190220 X-UUID: 370b66b2d3de4461ad42a757c82ce3a7-20190220 Received: from mtkcas35.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1394144575; Wed, 20 Feb 2019 10:54:22 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Feb 2019 10:54:21 +0800 Received: from mszsdaap41.mediatek.inc (10.16.6.141) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 20 Feb 2019 10:54:20 +0800 From: wangyan wang To: Michael Turquette , Stephen Boyd , CK Hu CC: wangyan wang , Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , chunhui dai , Colin Ian King , Sean Wang , Ryder Lee , , , , , , Subject: [PATCH V5 7/8] drm/mediatek: using new factor for tvdpll in MT2701 Date: Wed, 20 Feb 2019 10:53:56 +0800 Message-ID: <20190220025357.7354-8-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190220025357.7354-1-wangyan.wang@mediatek.com> References: <20190220025357.7354-1-wangyan.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: chunhui dai The factor depends on the divider of DPI in MT2701, therefore, we should fix this factor to the right and new one. Signed-off-by: chunhui dai Signed-off-by: wangyan wang --- drivers/gpu/drm/mediatek/mtk_dpi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 69c6e42dad6b..4a2f4a650494 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -662,13 +662,11 @@ static unsigned int mt8173_calculate_factor(int clock) static unsigned int mt2701_calculate_factor(int clock) { if (clock <= 64000) - return 16; - else if (clock <= 128000) - return 8; - else if (clock <= 256000) return 4; - else + else if (clock <= 128000) return 2; + else + return 1; } static const struct mtk_dpi_conf mt8173_conf = { -- 2.14.1