Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp228139pxk; Wed, 2 Sep 2020 20:25:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0tfAUGkazr+wfSfu673hPfFYZ3Tolf270srpwhqj7EblFQq3ZQiQG6/jKk3957bxlie0g X-Received: by 2002:a17:906:c043:: with SMTP id bm3mr98720ejb.148.1599103531372; Wed, 02 Sep 2020 20:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599103531; cv=none; d=google.com; s=arc-20160816; b=WyWRedPTT7MLDR1tRMnmPx4OGqutaKblW7UHGbSTZXC1CsJ6R3ZREThk88KM9MRhN8 DiQM+hp2N5ChKPfNqNzGEze7jSc8cZePDWdklGWHVQhreQL7nIC7QZnWbXgA3UiwnxEp 8Owx9n9lTDopk8qN7f+BtX1CEiR5NIkggZTuvDAgDfCZeEzC1kkAzlYjNqqzP6Kuxtid 2FTKJIYO3Xntp1la6OyRCI/bIBog6QNMYaPi4pzdsU8tnInfGuBNXrv7sLfYFvQI8pEb 6ekXyqwdkGepseV/SaSrkkMJy8hCnm/aL4fT3qYQVhxQedYBU69PFGpTpo0R4BCq2yKa o0/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6GC5eAEhDoBuRbi+wwESswcqG++nDs52pqdjgqQ4Kzg=; b=IL+NE5KZa6ZATNPy+gCtguU/BTCkNjbgoP8uyeHWfE/VotR7HomCQ/dSk+zj3UrexM FIXFFANA49Y+0jeneeV0T8DnXNAFN7MC9zPTcQDXNYykzSmW+M/oeVma/ngucpzEGty/ +uagm2yz2vpWvQAb9S/1cSrFlnSXBBatcPKY9OA6xEuvG49MB6R+c5UqM5EaSWI443z7 5MPWweURdZelVkrPMbg/Am500Oc9upEhJ+bJ+oZAIbE4ZSIhEhEUG2I3AWnYns/79zmP y4nyRutxO0Ghtuyk5sFlVTK9EGqmS6EVOtsd4jAPWxFyBmwnFUyRjp2C+CnVGYaKwwhY YmzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GmcOmGcg; 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 p7si937868ejo.392.2020.09.02.20.25.08; Wed, 02 Sep 2020 20:25:31 -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=GmcOmGcg; 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 S1728250AbgICDYD (ORCPT + 99 others); Wed, 2 Sep 2020 23:24:03 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:61351 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726654AbgICDX4 (ORCPT ); Wed, 2 Sep 2020 23:23:56 -0400 X-UUID: c250b6da12e94d0688d4db0d5f1c92eb-20200903 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=6GC5eAEhDoBuRbi+wwESswcqG++nDs52pqdjgqQ4Kzg=; b=GmcOmGcg5ODq6pzJRiuKhETv8OU3gliwCfSKMW5Ig+47/NOSeoSt6G8HjqF9gCh+PpBnSKZrJ65ZezowOkJugJR/F23Yy+HXcvwK4l+xVh5N/vcDUJdgO+ra0Kjdi5RM181Lb57TTny1jDTu1KprBf0yvz7KC7+altu74mn1LCc=; X-UUID: c250b6da12e94d0688d4db0d5f1c92eb-20200903 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 698853126; Thu, 03 Sep 2020 11:23:32 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Sep 2020 11:23:24 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 3 Sep 2020 11:23:25 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: James Liao , , , , , , Weiyi Lu , Wendell Lin Subject: [PATCH v3 8/9] clk: mediatek: Add configurable enable control to mtk_pll_data Date: Thu, 3 Sep 2020 11:22:59 +0800 Message-ID: <1599103380-4155-9-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1599103380-4155-1-git-send-email-weiyi.lu@mediatek.com> References: <1599103380-4155-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SW4gYWxsIE1lZGlhVGVrIFBMTCBkZXNpZ24sIGJpdDAgb2YgQ09OMCByZWdpc3RlciBpcyBhbHdh eXMNCnRoZSBlbmFibGUgYml0Lg0KSG93ZXZlciwgdGhlcmUncyB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