Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5116592img; Wed, 27 Mar 2019 02:21:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWUybzJMe8A3N9wI9ErZtaSFcTJMYPCf9ekoZBD/5ClQxhZifLGsb9nNajXm++L7Df3p63 X-Received: by 2002:aa7:8201:: with SMTP id k1mr34406928pfi.53.1553678502230; Wed, 27 Mar 2019 02:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553678502; cv=none; d=google.com; s=arc-20160816; b=AqA0IOGf5RLIE6ipwMU5099oDV+2oiNs0+D+fyI9IMVRkabRhFt4e66Wl4/OrfEifV yRV4j0rnKju5RrxpCYYsGtcbG3qDEHyy2FFCEhIFOzS/NtQuOYAuOC+aD4kVw8imxEmS 1GDbXpvXtPO/5jw8N8w5BqsaqGJR57SBHdFVciub+38I2F0X+xy2kRFxzAKJpEmmbIAG Qty9ni/dQ+q10jzDMUF7IeE2cFRmzwI6rYm4I24EN9+HZyRLB1vTi8i7vomb62qgfaMA 7IyUiiN2Yi0HafIkIyp+CFrQ2Z5P3Gpgvgq9WHhVwG6QwnTyZOA5C7b9YHrkYqqzoY2b CQpw== 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=YamdW3fxMEoRtKhUkmdCy8RMn0b3R+xj6r2cb/dvd+OUMxbs2JiD/LGqCGfQ9QtT0X pv3phPau5s/3zzYETTPpAKHGQffUIYZO62VUkcmRywVlXaw0yevNY2GnwT5mpkmrdS0l ffe1V7T0iD77XMpYAJdLa5kSSi0ErD0WJ4gHKncpPZxcIV3eDGFnwNua60v1H1hxzpyT Fi+7YGVaIBNbM59UbS7ukuYyjQ/2xZ8yj7gOc4HdlbVa6pJy+L+K3UroUUroS3I2OC1e +kE8UqX73FOa8oFSzw73ZL6ISu0FdZWn8xU87WdJcbJ/1XkrEk0B7sHpps2vRW+fKN/i 4bWA== 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 m10si2467773pll.355.2019.03.27.02.21.26; Wed, 27 Mar 2019 02:21:42 -0700 (PDT) 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 S1732921AbfC0JUR (ORCPT + 99 others); Wed, 27 Mar 2019 05:20:17 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:3354 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726743AbfC0JUP (ORCPT ); Wed, 27 Mar 2019 05:20:15 -0400 X-UUID: bdd4db1eb89345d097aeda849b56108c-20190327 X-UUID: bdd4db1eb89345d097aeda849b56108c-20190327 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1518159594; Wed, 27 Mar 2019 17:20:06 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS33N2.mediatek.inc (172.27.4.76) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Mar 2019 17:20:05 +0800 Received: from mszsdclx1067.gcn.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; Wed, 27 Mar 2019 17:20:03 +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 V7 5/6] drm/mediatek: using new factor for tvdpll in MT2701 Date: Wed, 27 Mar 2019 17:19:28 +0800 Message-ID: <20190327091929.73162-6-wangyan.wang@mediatek.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190327091929.73162-1-wangyan.wang@mediatek.com> References: <20190327091929.73162-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