Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2897136pxb; Sun, 8 Nov 2020 18:11:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKCdmp8eWQMIYzSvzlcBb4KbO1V6ZiErvYpUEc2RRPAqhmD5aw/5/O4HYaQZSb03bJw5VD X-Received: by 2002:a50:e04d:: with SMTP id g13mr13326110edl.72.1604887894776; Sun, 08 Nov 2020 18:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604887894; cv=none; d=google.com; s=arc-20160816; b=YOLW11yy91Z0H2tNHydlzex769n5XPNpmelqewhKbODYQr2+9wVtvAscyipvNeiK8m 2Ef2JJ/2qNKTo3l5NcyucA2n1+lsOPguABdiIg5Ca55Mi0rSbpuKd6Q0v0f+468Xpr9n 8owhb8RnEsbkMOa1hGVvBMoa/H9goFwHdEensgppNy6FqBHDmNhWk6oq+wvunwigcV5w spwX2pM1iZyfay9HshQtOs9+5kXReuOU+Yy0LGpsBPsD47XjWvn5jm/b+zbVcAOL/Nv7 Ivu2GigLdouL7uHdDkbeDmsJQdi87tSxhRF0GWuycCO82d/3we8Pl3M3wcFgDo4OlDQa gUoQ== 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=uBdJBOGJxWj2moBFh8n/KpIwH0ve1GHQH2eVZtORZy0=; b=IaG0NRa3H2wOeD15+COx4sj27zXS+PMhRzKOBEiJ2XSB8Lt6gQVeiazm4blVW7guXI /R7MHxh5oZcF6p1hYwyEVm/fVHztailW6KT6KLGvPk2vVAw2g7OuY4gZUKmWEEgZQ1Em XfDekQaSUcuJfmL8evgPwrbZaiojY0WKfcgxsC8+uT+c4Wd59dvuIr8Rhnv9MNhwio9k GNAgOTTSi6y0Ff3D2L1wfDfz0zoB/24CxkKhaXL+3QLUjhzjOns3ywD92L5ASyjLrxJQ pUKy2Ldb2p6qC3voHVzMD4sQvYgcXbwKHoIficMhjjYMI+8jYog16MqBQKPw0Gf7uFIy WLMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kdlSGEg5; 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 r13si5207718edi.101.2020.11.08.18.11.11; Sun, 08 Nov 2020 18:11:34 -0800 (PST) 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=kdlSGEg5; 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 S1729208AbgKICJg (ORCPT + 99 others); Sun, 8 Nov 2020 21:09:36 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58255 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729170AbgKICJc (ORCPT ); Sun, 8 Nov 2020 21:09:32 -0500 X-UUID: 726fb34b39564789a85a898fda471bf3-20201109 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=uBdJBOGJxWj2moBFh8n/KpIwH0ve1GHQH2eVZtORZy0=; b=kdlSGEg5M+U7oi7uAQtIyDqvfJwI2eXkk+hfHaobS4onvcFd3AS7utVavhCBlaVwQ8e7eDsbi9yjWwVndpVTBfVj0Kev9S6d+5DOuY7w9D43vY7T9uhWuDfL1BjILT5i0e5oH8/dGKY8dq3CxksfZOpcLmr8vw4lBPrjUmLHYxI=; X-UUID: 726fb34b39564789a85a898fda471bf3-20201109 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.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 253466357; Mon, 09 Nov 2020 10:04:00 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Nov 2020 10:03:54 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 9 Nov 2020 10:03:54 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu , Yingjoe Chen Subject: [PATCH v5 17/24] clk: mediatek: Add MT8192 mfgcfg clock support Date: Mon, 9 Nov 2020 10:03:42 +0800 Message-ID: <1604887429-29445-18-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> References: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 844058F88B8BD5591EAC1C3B923A91A42A35FF37517570B362519A39CEA625DD2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIE1UODE5MiBtZmdjZmcgY2xvY2sgcHJvdmlkZXINCg0KU2lnbmVkLW9mZi1ieTogV2VpeWkg THUgPHdlaXlpLmx1QG1l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