Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5867846pxu; Thu, 22 Oct 2020 13:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZjc39pv7jBm/7f/1qXda8Lt+fOt2rhWW/5eHaaP8mD3bnxWYyX1dHDdyEQGpjTvkMUx48 X-Received: by 2002:a50:a454:: with SMTP id v20mr3751623edb.98.1603397355218; Thu, 22 Oct 2020 13:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603397355; cv=none; d=google.com; s=arc-20160816; b=Tw+kJ9xJt4rl4HNsMEWu1aOqMJ4/Bn/5QyJpdYfLgmtq5/FbPTi5O7dyrwM8WVcGYS KPo/tpS1D9iBNgebpN3B+cqYki4VvaChB1ul6f9TuXv3dzucTplawkOQP6EFS26DFPUN NhCBYxMuW3carxdI5kmC5DgZpbV3P4kDxW0dcM8WSUPyN3yGFNZgOXGTb4x2wMfLQ0v+ NsnuU4m2eHMRzG/62it5iqXwKrznE1vFZEkjPOi2HllGpbbRxO15RpmxJvfUmTnfRpm+ CxYPs5uDx3hqIjVYTWvzAmKYb52ixef7LR28dxcw2a5bMQUg23rVQhKMpNv3b1O49znx yTLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ftPxtc+iQCzrE74P/pq+OCJL4UAyhW8S1+eTiI7YSZ4=; b=bAQHFQMZV5vwx2h6/sfLIDL7LZfW7Fw5hhGR5VYSBwTk6u8myFokB9MWsxZ6xOaKM9 dWsmroelNHc5szKF+39vM1Nh0U6hpSzKKPumihg4pfTcjd0pn5YmijG0fEiGJepCkcA2 T5b/7ZKZkyj+M8812eZVZMgy1Uu+wPjOKuTdFKIs5UQ77gH4K1uZIXX152Y70n5zqvIc hwN0i0GmX5rmI7JfxZucgQ2Dor8lMv+fC/1assBXCczmEd4OKEV6TPigMFKY7WS1HDu8 maKWxPNee8yDjASjyBts4xYnWeYHbASWgbjXBk8DHWqi7I959yNFcvkSUKkpwFkVFBz9 AwHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aCZYEsND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si1538426edr.199.2020.10.22.13.08.53; Thu, 22 Oct 2020 13:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aCZYEsND; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2506106AbgJVMnN (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:13 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44200 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2505972AbgJVMnM (ORCPT ); Thu, 22 Oct 2020 08:43:12 -0400 X-UUID: ab8b4c7e6f6847e08ace1c49ae296dc3-20201022 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=ftPxtc+iQCzrE74P/pq+OCJL4UAyhW8S1+eTiI7YSZ4=; b=aCZYEsNDSyYUfUJ3Mx6eR+zp/3TDAnvDVARWhx9xw3sMfyWyK8eJBHgArgvlrKvJS+fIRAow6zFkZmGqq9ymtYweHbEgILf2dStJAM6WNDJYC8Tu7GcEJwjtlQvqxaOUSVa91C0f16tGkZInNXq1zGaWr0H0IYOk1FX7x1KHxTI=; X-UUID: ab8b4c7e6f6847e08ace1c49ae296dc3-20201022 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1697855878; Thu, 22 Oct 2020 20:37:53 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 20:37:52 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 22 Oct 2020 20:37:52 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 10/34] clk: mediatek: Add configurable enable control to mtk_pll_data Date: Thu, 22 Oct 2020 20:37:03 +0800 Message-ID: <1603370247-30437-11-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1603370247-30437-1-git-send-email-weiyi.lu@mediatek.com> References: <1603370247-30437-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SW4gYWxsIE1lZGlhVGVrIFBMTCBkZXNpZ24sIGJpdDAgb2YgQ09OMCByZWdpc3RlciBpcyBhbHdh eXMNCnRoZSBlbmFibGUgYml0Lg0KSG93ZXZlciwgdGhlcmUncyBhIHNwZWNpYWwgY2FzZSB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