Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3972624imc; Sun, 24 Feb 2019 18:11:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IYR4kE4WX8GR165HzSyOnUy+KIYdUK0mibZ+4tZruf+fFYd8NVciScC5fZFDW3DrOys71/S X-Received: by 2002:a17:902:bd82:: with SMTP id q2mr1770437pls.65.1551060711823; Sun, 24 Feb 2019 18:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551060711; cv=none; d=google.com; s=arc-20160816; b=jvhLNVEFZM3yTsiUfgcsmXPKzbUQzNoNshEn23GByX8EfT4qeDsrhcXKlHkO+2qDSt VU3o8V8eK7Zk8TcpJ+rhWUzKdK/tGU17BFUttBhxt0HlI0DV2MIS5ys2L+jAdmzTGOzL Ckdf3+G1f+sFnRqt5VEDJ00fm/ekBe04LGzheoYIgMKk79vVGgn1v/GmBJbKsRv+jowR ZT44F02m8iykoFaLz6NMxcM6Ji6WehBw14JI9NysrmfcFLsjo3xvTbtiNarUzKq67vI+ Ia5NkwCnGgar1hzmfVCo2jpNHbWxlUltKYuk90kKKxLQu6wGgNWbgZu72VyyvJzfrr0a qdeQ== 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=fi+O9W4aYZqQz2V4tdu/QKfLyytjpeR/81JdjclGtxKIThAnAL65mQxbrhhXeXDn11 +5iGzGWFjNiEYH1eIDSKeYQ4zvUKGUEGETlMYiBN5LaG4//jnxGgi/NICAHWWrLDuEPB 4abHsr1qcR1HMzRl9NARfE3jsDO2JgssXFk261XGwJxP1Sv99cL3ggLa4FyyQkHLKmXi X5qMIAWrfR7nagY9/kvV7E7Y6AYPGkTrkT4p6W3F808nXFVy2HBNKfTuHIgjwvDMMobI vRjMororvKwcp6fltR3PbaC5wL5mMDfMF3fml8rw9uNrCfauaMkmUN1ZyIu14CsiV8lI nQUA== 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 v4si4583076pff.172.2019.02.24.18.11.36; Sun, 24 Feb 2019 18:11:51 -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 S1728607AbfBYCJ5 (ORCPT + 99 others); Sun, 24 Feb 2019 21:09:57 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:59632 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727537AbfBYCJz (ORCPT ); Sun, 24 Feb 2019 21:09:55 -0500 X-UUID: 1c61bdda92104c8383c0bd575b9174a6-20190225 X-UUID: 1c61bdda92104c8383c0bd575b9174a6-20190225 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 12757382; Mon, 25 Feb 2019 10:09:42 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 25 Feb 2019 10:09:40 +0800 Received: from mszsdaap41.mediatek.inc (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 25 Feb 2019 10:09:39 +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 V6 7/8] drm/mediatek: using new factor for tvdpll in MT2701 Date: Mon, 25 Feb 2019 10:09:11 +0800 Message-ID: <20190225020912.29120-8-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190225020912.29120-1-wangyan.wang@mediatek.com> References: <20190225020912.29120-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