Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27710pxu; Thu, 22 Oct 2020 14:23:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtNurtp0PzvhqS0BENJnLRrUDkMOwnQ8je4LoTK2aK+IC3vNxK2mh8Gl3E/kquRi750fnd X-Received: by 2002:aa7:da81:: with SMTP id q1mr4135016eds.179.1603401826324; Thu, 22 Oct 2020 14:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401826; cv=none; d=google.com; s=arc-20160816; b=hHARU3H20cnosTDqkQhsBZ8s9NuQVtnO2Y4btdjQ7/ETBFUbz9l4plBw9zC9RnTWmi dkn+6g83wn3dDOGhgOfs89qoirVWA2dSRHrtukhnrJIr3+kUM6PqoWthma8c0VfuGRlc b8h71REYs1ox4VO2r5ed4/u7ffcHLHkKJzONpyr3aEU/D+7KGH9uhxBqHLBWASz+Upro HHyKIQ9N1KjxJTWH2z8UZqUODmdV1yqwuPkPRKB/bXVB24Ufl9UGspdto5ypS8m854tX lLNOamyRC9zJhC8TK2+XFyb+4IoYhDZ/vmUTWKrLYkdOUNpj4dz1J59QUMQXbkwHgH6V 2mLg== 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=Rd/rgu71cjk7BJg3fJ7fmfL9SL7aLAs1L3NOIrXhYCY=; b=hPdwfYU0LObf/fb0HgEOs0nMObNaLkVapHUaZtkdOiO7L49jVXWoK82kDGLbxVyJLr fojiEhYEzOapFXbknfGNgBk1eW+tBIpH/W9Jy0Z10zBoAl2NAYqMucqs2hwN9jNuZ4Or 5vecABXxppmUwsR5yp2Ifukvexkt32+fguNMb5xyB7PmtzqHhU/IeNWBlZPxZuLzf/sE WAeGcPfsHQiFDGSyo1haI0ZtJ9jQFxScng57xZSm/UBS9D+6imiRa6iGDt1TcKfT3sRs KCfOvadPafjAtIxY61M3U2qeGTgV3M1el4NdnIMDzibt6zs4toYXJeFbQuICan5ef9QM 7mtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ohlgz9mz; 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 g15si1821701edy.58.2020.10.22.14.23.24; Thu, 22 Oct 2020 14:23:46 -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=ohlgz9mz; 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 S2898424AbgJVMjO (ORCPT + 99 others); Thu, 22 Oct 2020 08:39:14 -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 S2898380AbgJVMiY (ORCPT ); Thu, 22 Oct 2020 08:38:24 -0400 X-UUID: d4a881c48cb34228aeb4ec197787a272-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=Rd/rgu71cjk7BJg3fJ7fmfL9SL7aLAs1L3NOIrXhYCY=; b=ohlgz9mzruJr4w4xNIoIGEWOnp3icxIpp18/FG/zfPlM8oSnuDQg3kjAK8ZpYFM0ejE6x5kDeXuQGCPgFKK0oqA/vgRNy7rT+6CltN4KF0P/P2eFFAwbpjMlAb4xzGOABdiTc+a6nYJegmw0Sutc/6O1V3yGJDJk7Jaw7cTk4z0=; X-UUID: d4a881c48cb34228aeb4ec197787a272-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 733902154; Thu, 22 Oct 2020 20:37:57 +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 25/34] clk: mediatek: Add MT8192 ipesys clock support Date: Thu, 22 Oct 2020 20:37:18 +0800 Message-ID: <1603370247-30437-26-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 QWRkIE1UODE5MiBpcGVzeXMgY2xvY2sgcHJvdmlkZXINCg0KU2lnbmVkLW9mZi1ieTogV2VpeWkg THUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvY2xrL21lZGlhdGVrL0tj b25maWcgICAgICAgICAg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