Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5751395pxu; Thu, 22 Oct 2020 10:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0DSmQi3uMA/VRmkUwtmFwMXPtND7G1CByVmEzsQHlgXJZrP0Uohjy84+3rzWo3SQXgtQJ X-Received: by 2002:a5d:4282:: with SMTP id k2mr3621883wrq.270.1603386361383; Thu, 22 Oct 2020 10:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386361; cv=none; d=google.com; s=arc-20160816; b=biNmFZgjfs9dWVXjKMsPTPus7wEjKtm5BlAnawK91SeCgXIZn+OdvhNkjkWaoXt3ut 67ioKVGb16tty8RxmbkVxfjkyq9V/J+cU+7I+Tdh5kvPA/EZF8VKZoYZXJCjB/X4YjaP L4BzAa5NA/+l4T1dve3m6lPPXj5SrM3rU9iqx80Uj5pY7fPPWR1Fd6DCtvY4IMl8AFfj nSkK3OWPoIzKWYj+7qA8wEbs2WZWwEo0loPWTs68xrZ7vkYYUhdGDoMmFBLnZLlAfT0J lX6vgQBzmbF/Z7OKFuokmMyCpGPIG/gbsBPq1QTptkRnsKDoRGDZaeK2zjcZZCfCjS46 Qu2Q== 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=3Nd8edz5EroRY4Fw7PU6EzlKt9/wLguZKzRfZzQypwg=; b=YNGN1x79D9v8Y9kjTiErJt3J8VoOu32u7Q25BVqvu8zUYkeTS7hqG0+GGP36bWsYpd pB4x4bRJt0SnGC4I++5CpiFAX7/06Ppx7+1fvIWf8i2PN9YgqrYSKiAR+kw+dyi4e6Ok scshPwcioXRphJo9cH8raymMDLUXWtxKfIFu7buUqz7Yxe2IFndReIM/YE/VXkf43ZPy UpHMBQtz+UaSssRcUAF0JrGMypePa+GNAtLvERN9uMzkqrQvrkc22VAAoZKq+jAGGswG Iim+vrng71Mxs2JUikm6sJnF5PPCS/dG3uXucImjqYB96g7fbdeZwSNIcbojWB8LRp91 96Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=egt3Hd2C; 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 h10si1319260edn.193.2020.10.22.10.05.38; Thu, 22 Oct 2020 10:06:01 -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=egt3Hd2C; 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 S2898658AbgJVMn3 (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:29 -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 S2506307AbgJVMnW (ORCPT ); Thu, 22 Oct 2020 08:43:22 -0400 X-UUID: 7f4a1415cc564bffa4033bb9fd818517-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=3Nd8edz5EroRY4Fw7PU6EzlKt9/wLguZKzRfZzQypwg=; b=egt3Hd2CqKZFu9q7xJbqV0g4SzR2T0WyDhVMqiySpkDapOy7MiInLL7PLBpg8wKQYJTBe+2Z803MSJrGHzwiEZfzrG/z7QYiWsUCHktsUfgQz7rY/BHefbAgrPL5h8lBIe1EtXjONcAc7mhYurZV9MYkrF6ae4Opbri+VtwT2p4=; X-UUID: 7f4a1415cc564bffa4033bb9fd818517-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 1589635961; 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 27/34] clk: mediatek: Add MT8192 mfgcfg clock support Date: Thu, 22 Oct 2020 20:37:20 +0800 Message-ID: <1603370247-30437-28-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 QWRkIE1UODE5MiBtZmdjZmcgY2xvY2sgcHJvdmlkZXINCg0KU2lnbmVkLW9mZi1ieTogV2VpeWkg THUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvY2xrL21lZGlhdGVrL0tj b25ma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