Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3972275imc; Sun, 24 Feb 2019 18:11:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IYHpzUgqnsjalRtcWNXdhIaM1eX3UNUfNMUz86GokijW1N1PytvLNaFFkaK9DmL7eAtX3mm X-Received: by 2002:a17:902:f24:: with SMTP id 33mr1456704ply.47.1551060678457; Sun, 24 Feb 2019 18:11:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551060678; cv=none; d=google.com; s=arc-20160816; b=FDvBGC/hNzep+ndT38w+7TSC9tIPHXHc1Ro68XaUGU5G6oS9UpjH5twsdxrzO2TJJc 6Lt6uWIKs2jGKb+vDwJ7tQPOs36y0DXDKna8pQvzs3MlAaEPfNjPPlKt+TM9D1hrwBlZ 40WvrrKB3KZjRsvUQk42NOgC4AW0Yo+6fCD7OITN8uJWNXn7QspHJq8Tc4KAIJ9EBG+z uYpddzrmXY/ebsbmyBuhwIONeGRCaWK8SLHmsSWJ/I6TnOkvVo065YmEZTpSvjE2uHsH dUFQNsYy1lDR/NlICN9V6H/xkofctWfZubIDMArlDM/w/PiksF9wv39jbFBE1WfUbUeu zyYQ== 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=wvuiYGT0Ge72kT5XcYTEhLDOwCykugVaK9IIZ2FjAU+bybx2DhVEwxmaMVSVh9BtHL /nv0lXhLTFrCDuJMya3rDicR9LtTTmE0Ig6kKAGvZzKphik7sJVg3J8JmYyTNmBIzuJb jeygZ7Tc6Fw4ZArEuJ32Vg5HWlIHpqVkMqA91pwKUsPMu5bThX2HTDu9+hNH19LdPuCx UmL6WxPAktfGezUxxB76Fpdd1Xk7EGSFd6GFHk39FQw4XxPN2TmSBvdWwJH0QMh70YVW YjdfDyS4IkHa7+iFZ2EGmC/DUJns7x+OX3wWhug2Yru7MlhEBZIH6uoPoGHNJ3KRC3ae wdNA== 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 d73si8843640pfm.210.2019.02.24.18.11.03; Sun, 24 Feb 2019 18:11:18 -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 S1728585AbfBYCJx (ORCPT + 99 others); Sun, 24 Feb 2019 21:09:53 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:43014 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728417AbfBYCJv (ORCPT ); Sun, 24 Feb 2019 21:09:51 -0500 X-UUID: 397c713a589d443ab209c25614665348-20190225 X-UUID: 397c713a589d443ab209c25614665348-20190225 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1791226743; Mon, 25 Feb 2019 10:09:39 +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; Mon, 25 Feb 2019 10:09:38 +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:37 +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 6/8] clk: mediatek: using CLK_MUX_ROUND_CLOSEST for the clock of dpi1_sel Date: Mon, 25 Feb 2019 10:09:10 +0800 Message-ID: <20190225020912.29120-7-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 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