Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5745325pxu; Thu, 22 Oct 2020 09:58:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAPGoBSCJ3rM++dNw+Lk9er/dn+2glZMUk8Lw0KzhrQ+uzgJoMCdsJWusQiYxvnXDo1OP7 X-Received: by 2002:a17:906:f0d8:: with SMTP id dk24mr3135241ejb.492.1603385929173; Thu, 22 Oct 2020 09:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603385929; cv=none; d=google.com; s=arc-20160816; b=XS8cdLMHU47sNhdqLU24smmFS1KIuCkhjiY/I2mYaD6Pl2yc21/aTisUBgqzNIt1h5 Qo6eVIVzIWC0RWhnF4am4hGpK3s9JdbAIYhWIm8HO1MfjaPEUD2nzsXONOr7XsHRSP9G gJS4h9T8F55wVRqwreCMvkEDc7KBony7yka8UI06DrBBn7aTBy+IohtPWtmRALOwOUVK 92m49r2JQeHT2uQyn4pEorfZYBn/mnQSAh5O3mxs/a1qt6QEsj/dohHqLWxOgX4VFCah KlVzL49a+52CVA4hP9FleYkbmK40+/MoX4d7u9JGUO+onO1SkxZz4/0N5QnwpM/bu2CP /vaw== 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=qSUcANkAhDa/we0e4fJU+cUCoF6peimefUK8ZGX7+SM=; b=Gxql7R0j0eysEJkB2t5iXxLelx49xRtTbSCG8Z/i+SqAIBk9o5AIY3Etl9IZJTdpVp JiJL+l9rWrzeUtpyjZ08a9V80d08eaGr9HLyPJO9Z/o9MRYEhHYJv085azsFAT/tqrEY 7Vm1BC5k6Po6xCe3PnVaeuglCa97+dYENrs3UQvgltE7eul/KpkcdOrkJ3SEaEVHBoHo jGE9VfqWjxzrIOiPLmquQ7nA+BkeIMIGAcOmyZ/4xZoUN0IYUx+JuIpO2poV4Xpjruv7 mX0+OahR90h0uQx7LwBoNY82LbYM7HhXtKDr9J6eEJKx6Q2NkwFsKQoP1icrXz8Qc9uV no8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=scgzDBPO; 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 v10si1239091edi.16.2020.10.22.09.58.26; Thu, 22 Oct 2020 09:58:49 -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=scgzDBPO; 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 S2898417AbgJVMip (ORCPT + 99 others); Thu, 22 Oct 2020 08:38:45 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33701 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898371AbgJVMiS (ORCPT ); Thu, 22 Oct 2020 08:38:18 -0400 X-UUID: cfd677bbec4c428a81e3bbca7655171e-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=qSUcANkAhDa/we0e4fJU+cUCoF6peimefUK8ZGX7+SM=; b=scgzDBPOz1d2Ak3MGqT8G4R5GiKDfTnO8wb+7mTikYnGpGb2SzuwAQFtsuv3wu2aj81iwJQM1AjSIHrkIUGRizEBTt2dIbKrR9V9I2AzqDD3PtDzMzXynDOizl7ZenFNRkRqyS/sD+vq4pcKHmV97e8lhYWtfEpHWSSH/RDnEO4=; X-UUID: cfd677bbec4c428a81e3bbca7655171e-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 220904012; 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:55 +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:55 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 21/34] clk: mediatek: Add MT8192 imp i2c wrapper n clock support Date: Thu, 22 Oct 2020 20:37:14 +0800 Message-ID: <1603370247-30437-22-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 QWRkIE1UODE5MiBpbXAgaTJjIHdyYXBwZXIgbiBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2Zm LWJ5OiBXZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jbGsv bWVk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