Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5867856pxu; Thu, 22 Oct 2020 13:09:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZFCJUxPTQYHkMt4RwX2LI+gu6nA1ESrAn0QOU+aaS/46A6qeungY3B4S4HYa4bzUdRQsC X-Received: by 2002:a17:906:1806:: with SMTP id v6mr3817064eje.320.1603397355831; 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=NMJ3APHLr1I8sUdcSlfRx9YuUXnimwgCBQdUujQGCMJ628CrO1R9tKLTbiMkYSNlMN 1CDGJHXnj8Ll0D2OwffFB5BQ5ryg4pRaIzYZF92n1gN7lkLndjx2d71qEgto15TF5zOo b5f4zMMS8M9SR2RqFyj3WdJ9+PtrdewVpPCFqvQLIE8sVWDem+4UYN0gPpzykFpn1t3/ 06WAFJjZ7/kuFXjRTPMxH3cw1Mxmn7gi5EMl4WCiO/1uNGgqOv+19gdUry1fTTnqwHXq KO/fXw8kgYw9HyQLwvJTXKMIVFULjGQRg0qyVH/6AyS2dMAIKpHuFeQoMFQCPHJhUVRE GGDw== 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=aBzxpn89OHFE6mNwRbJORzl7ZATcKhhfOKp4Ir7+2g4=; b=C4JWn56Lw68DwMnbMTjKSKBV8AqYBI6/+FbYt//u+W3UVWP0n/gvaWTUzWh7prUrhl 17VpTTE//ZOO4+1WayUPHewzOkFhNP1Uk1A5P6FfCqwjAQmUnrKeg7xsJKq+1f11mxfd HbhjnpsOlza+DfLuOr3vmOOHUZoZVKBM9aO1ChRDyPgFWtlTfRkj0fYZ7kNGzEjk0v8m VhbGjqdZaoQ5F3vm04fxXerrD2ZR0BO/pe5O/KQR7Vyf1I8+c139jA9yOR6S+wrOVVaV MiAfSlLZglXxsEThzl1heGNPoOAJqPiwYGZF+xUAh9rFHKJ6aGBJgl01sb19rCgzlpEd wPwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pvsBarbJ; 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 g3si1642799edu.80.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=pvsBarbJ; 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 S2898671AbgJVMnd (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:33 -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 S2506347AbgJVMnc (ORCPT ); Thu, 22 Oct 2020 08:43:32 -0400 X-UUID: 13fb070031214982969e6fa8294fdbd6-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=aBzxpn89OHFE6mNwRbJORzl7ZATcKhhfOKp4Ir7+2g4=; b=pvsBarbJBQFgg6mDFTY/g2xxohivfbbPNvG+SVwg7yQ9axWKtW+7tY6NUeK1m06iQyRy9TuaGwZBs75YsCKFwl/NPJnJYAVE1Z6FBufIu1VkIJ/tG8jAWPdBuUh3IlpPnXFbsmumYsnxuLvKNBWt6MGTcDcXjwkYIQd8N+I2WOI=; X-UUID: 13fb070031214982969e6fa8294fdbd6-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 1924466255; 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 31/34] clk: mediatek: Add MT8192 scp adsp clock support Date: Thu, 22 Oct 2020 20:37:24 +0800 Message-ID: <1603370247-30437-32-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 QWRkIE1UODE5MiBzY3AgYWRzcCBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2ZmLWJ5OiBXZWl5 aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jbGsvbWVkaW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