Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp92926imp; Tue, 19 Feb 2019 18:57:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IZFZvE82nwkqkegwmpgWJJaORA9wHb6gXG/n7c5zN1R14uKEMPBYODiWS6ATk6Dygg10lDM X-Received: by 2002:a17:902:42e4:: with SMTP id h91mr34793782pld.18.1550631441680; Tue, 19 Feb 2019 18:57:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550631441; cv=none; d=google.com; s=arc-20160816; b=MFAw18Y42g7cFatKDg8pTfHpzmbl/H4S+8q3RRVqKyFktF2zbRmGZrtDooR+m6O4lf ijCUkNpOtzuKhYP4hoHxPq5Qu8lzR0JE0jG8rFIXUkAEjKhfOt/CbGKV7mjQiwlTifOq Z0pq5FP+/twLQLrh5FHNGkBCdySCl//bbkAU/xqKGlpM68nF7GnF4A5p3ALzWnKIAdaB XWFP1G8854n58a0wx1EU2yqeX2Gcqi+qDUJnKY1bhV6GUV3zyvDqtY61T2pZ+TNstJGL x19yX1G7qdoo9323lEsq4ybMf0rLz34Z0pR3re6Zz0rzZMjtB7qePjcmpIKu0A7NxqQD M23g== 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=CyIs9auRTvSu48KKdUhOYSlLTG84wUKNiRY82foH5V4=; b=brXT7cQKg5XL1QzOglAAWy3zEGxRpNUBmcxi0mTK/dpsruE88s3ob6tIuJcyH/zv39 fS4gIP+YjkhRh59Vp9covDxjebuXxy++UY3ijQ7Bg7ZNX4RIa+F+sdn/eEtZ+eHzVTa5 wYXj3ZRmTGvBSLoYxWi7nP88B+PB0bo8/il1SDkD6d+0X5nRabKdqh6WJ6ihkvyRBUHt 0Vclxg42JLfiFLAanylBk8sawIF8KDOcIZToTMFzc47vofkHRCMxEZSONv6UCi0QUtL9 Xnlki8bd1A9SyXu6GfjATLNnYHYvKEMY8Cuj0K4FcMQMWtUj6GR/BYattM+X7VfhvEpj 6l9w== 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 j2si14314364pfn.276.2019.02.19.18.57.06; Tue, 19 Feb 2019 18:57:21 -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 S1730395AbfBTCy3 (ORCPT + 99 others); Tue, 19 Feb 2019 21:54:29 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:62030 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730321AbfBTCy1 (ORCPT ); Tue, 19 Feb 2019 21:54:27 -0500 X-UUID: f042b27c668a494697ebb7d4618a4d8a-20190220 X-UUID: f042b27c668a494697ebb7d4618a4d8a-20190220 Received: from mtkcas34.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1080677928; Wed, 20 Feb 2019 10:54:20 +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:18 +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:17 +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 6/8] clk: mediatek: using CLK_MUX_ROUND_CLOSEST for the clock of dpi1_sel Date: Wed, 20 Feb 2019 10:53:55 +0800 Message-ID: <20190220025357.7354-7-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 MUX clock of dpi1_sel should select the closet clock for itself. We could add this flag to enable this function of MUX in CCF. Signed-off-by: chunhui dai Signed-off-by: wangyan wang --- drivers/clk/mediatek/clk-mt2701.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c index ab6ab07f53e6..905a2316f6a7 100644 --- a/drivers/clk/mediatek/clk-mt2701.c +++ b/drivers/clk/mediatek/clk-mt2701.c @@ -535,8 +535,8 @@ static const struct mtk_composite top_muxes[] = { 0x0080, 8, 2, 15), MUX_GATE(CLK_TOP_DPI0_SEL, "dpi0_sel", dpi0_parents, 0x0080, 16, 3, 23), - MUX_GATE(CLK_TOP_DPI1_SEL, "dpi1_sel", dpi1_parents, - 0x0080, 24, 2, 31), + MUX_GATE_FLAGS_2(CLK_TOP_DPI1_SEL, "dpi1_sel", dpi1_parents, + 0x0080, 24, 2, 31, 0, CLK_MUX_ROUND_CLOSEST), MUX_GATE(CLK_TOP_TVE_SEL, "tve_sel", tve_parents, 0x0090, 0, 3, 7), -- 2.14.1