Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5753840pxu; Thu, 22 Oct 2020 10:09:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi/VNZjlhOBSLjhnEQMWOvKFl3XS6HL9rwp9wbGpEnujezNkdRVSM+bltgYvkbZ5aoQOZq X-Received: by 2002:a17:906:1643:: with SMTP id n3mr3161012ejd.459.1603386540022; Thu, 22 Oct 2020 10:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386540; cv=none; d=google.com; s=arc-20160816; b=z+WeYJaYyXC+pQrATjEIqYvXu/55EvfwW3Rk+1txpvx1pW3fG1H2XmWAum4UYM3bqJ eAIgaq5u69D9ACLVVW3Nr3PU6Ql2X+Spt9WuQVvPt1rxfvDbk4+Z+KOSFul8yJuHwNlD 7NYFP4uVMoBK0022APsK0WL7Tu/tZrzOBsINrRUln8C6tnLP9qFd0X7JuwWZq5hjDXmj b6NhqrGYV1JPpzIbp67M2b9xUF3NBqMPCkv940u+krP6vVbV42DCFMeDogl/YkF/CvQV GwNapfTt4cIQ3RS/B+I2TMwETwvqNxceUdwvSTvNvM7sNWifLQWRWa76R1dN6QyiEXJW mQqw== 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=83j0kwQAyFVqLf1XBD4MFGpu/MErLTUdsh7N2pnQ1DU=; b=b3wg5BknuCwfh+cwR2eQ4Vt8cUlm2YRypl7SaSLP4/TiroeX3VggX+9G75YjeRolhk 1eNIpISXOK/tSup2HOHkB87AnGQ/G+TC+3WoyE8VGz9wDBtaZQMIcdTEivKc3Cjym0ms JBTNOPADjXrHT82GQEX8xByGY0PuDr7ylfpRH1G89sDvkBVS8CNGvnBfrpNQxlS6oiUs JPOB6ERae1TdegeS3IW+Vr1tUoS7ZcrFbz5/js3x7zHdTsgXfAb5S+nJWui4fEunwCfN uomPMGhPWOu//RQctgC3EoI4n4LhFNnXoQpk1qjBWSynvaHmRzXiG7t/CVSZvawdXlWB lzVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UtQtaPC0; 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 p25si1494750ejc.412.2020.10.22.10.08.36; Thu, 22 Oct 2020 10:09:00 -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=UtQtaPC0; 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 S2898705AbgJVMno (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:44 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44187 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2506218AbgJVMnf (ORCPT ); Thu, 22 Oct 2020 08:43:35 -0400 X-UUID: 1c0f673ce52a41a39655cc0594d551dd-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=83j0kwQAyFVqLf1XBD4MFGpu/MErLTUdsh7N2pnQ1DU=; b=UtQtaPC0uWMF6qAlxQjNvH+26p1ZXFZr8O5cbMCVXkbfz+sgmCZ4uQnpB1PXqmGVAfnrYuDSScTBq668mwT8v0EkthsX8rUh1oteloi2OlyWaV5pKlQbu/dITxybAx6RF6a1QiTjcM1tPbTygX22WwNx1NuhwtvvgfIUWqHlNms=; X-UUID: 1c0f673ce52a41a39655cc0594d551dd-20201022 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] 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 919484187; Thu, 22 Oct 2020 20:37:58 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 20:37:56 +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:56 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 29/34] clk: mediatek: Add MT8192 msdc top clock support Date: Thu, 22 Oct 2020 20:37:22 +0800 Message-ID: <1603370247-30437-30-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 QWRkIE1UODE5MiBtc2RjIHRvcCBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2ZmLWJ5OiBXZWl5 aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jbGsvbWVkaWF0ZWsv S2NvbmZ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