Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27905pxu; Thu, 22 Oct 2020 14:24:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvAFUz+88uO4HFtix44Op5SxfZkZFk7gcJkhkbQSLTXRgDAGYkzpcAbLsA++sf1FAR7VNk X-Received: by 2002:a17:906:5594:: with SMTP id y20mr4405365ejp.196.1603401845452; Thu, 22 Oct 2020 14:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401845; cv=none; d=google.com; s=arc-20160816; b=p79fFiJ5IjqQmK36krNjgBVfW/O0TsmU7Tyv5tOQHhnC5KwOmI+22uSqEFocE0OEyj iSfeq+CoVja68jZrJD/MfyGHmI9Ji7cx15mCa3fD18kmODK4F5Gg3JgEjkjDV/3+NN7o XT8Tc5M/Yug5dN9zZiM9DqiYXjyR774o6Uc6ZrSXbDuXOJ4Y1HNykfK7TcLZBQhD9XFL /+6lycr0y9bGAzySC2Ya9PGW54DlrbPDJWuJFZpcwEblVyxSNlbXxkPxiiVcCg0X/VDb 6JLvB/kEwoFBdimvvBNc+AcqJeQAbWbX9sZLiWD9XKsmxQgqxdhf7+reICyDahWFoYvF Fnxw== 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=vPhNG+HyyTcfkCD5hPQ1WNKP0Kj3+DkOb2QHAyPFxaU=; b=xzVrFNX6kmw0B45qyPC2G5pHWrRgsWI4T5aT2bQBD+7xMYPU8zUT94BDBL3I+RGYNL LnYQgWd2h/D8BuU13CiUcDDertlfcdSlUko+esG+uIh+eJwM6sRdT3+1b/Btgw+7MoLy 9yMsgQWbqjyIWt0ryWCtmW/TBbNPu4HtPUoXtTwjwQnwoMrlVN8LDkaERXBAS1UnkELE 2A0+zEjd4RBdEnQ24w6SxcrLOMtEruT0/JI5Sbwlqhrtgct9LASh43lprvPBlPv0fSlm JJBR1JqfWnpdqTfkUvUGC5TF3v4jb2J7wwJRyK5/dZNiZT6LcigaY7M+Go1qk8plul4u e0qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Lg05ChVG; 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 r1si1710338ejh.137.2020.10.22.14.23.42; Thu, 22 Oct 2020 14:24:05 -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=Lg05ChVG; 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 S2898454AbgJVMjD (ORCPT + 99 others); Thu, 22 Oct 2020 08:39:03 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33670 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898396AbgJVMid (ORCPT ); Thu, 22 Oct 2020 08:38:33 -0400 X-UUID: 7af3a97575e44bf9886dba8bd02d6f94-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=vPhNG+HyyTcfkCD5hPQ1WNKP0Kj3+DkOb2QHAyPFxaU=; b=Lg05ChVG1hjo+5sseD3LdtZCscuaB1BKuDApvog6ks8Ls6J8bDDBmbRzckKEkdK5fT2aq4Q2Nfw5ft3aANI5B2ATyKH0Pbc6wfcoAdaiMmjvG0Z0LfREMbZBE25QisxnfaAf3IeeQ9eNdx5kly3zXypcz4P3J/pu9Jbn8ho8jYE=; X-UUID: 7af3a97575e44bf9886dba8bd02d6f94-20201022 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] 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 222321369; Thu, 22 Oct 2020 20:37:56 +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:54 +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:54 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 19/34] clk: mediatek: Add MT8192 imp i2c wrapper c clock support Date: Thu, 22 Oct 2020 20:37:12 +0800 Message-ID: <1603370247-30437-20-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 QWRkIE1UODE5MiBpbXAgaTJjIHdyYXBwZXIgYyBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2Zm LWJ5OiBXZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQ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