Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5754433pxu; Thu, 22 Oct 2020 10:09:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOr701j7jb49hdTvZ8Bps8r7bMVPNvf52qVIa1K69oQUGx9IoVHXScGyP8VoUqNZ+W62zv X-Received: by 2002:adf:edcf:: with SMTP id v15mr3537177wro.291.1603386584528; Thu, 22 Oct 2020 10:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386584; cv=none; d=google.com; s=arc-20160816; b=qt0jiwBPzaKOIf67FihKKtQhGTUz5yxMI4EmrbJdI4NWTVQxpy8igMWmu7WlpSKezX 2im0oKPZZXCIOqLv/6R6gdtVB9wIXHjAz7gkH2yjIxOoQmmBeQ9DBCK9SGH6hL+ryyxk 2vSdbPukUK4Bou18d2dSNGDictSKE9vs5Picseu2WAdiYAsT3xqzAOUjMlxBZhEy4qBV j+zBLXJUjZhmuohTHAVyyIISCzA11J8QiAQczuns97jcU2asSwFowRnx9yGTwVNz7CSp ZnVp8BaJRZB/b9ngJFy9wxhnOBxtmogKQ5qrX8MG2bNXbC4bNspG4HUI5cVSLrnlsyNA i/7w== 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=ZMPcWi0+CUwGocrX5m4/D3sGTbKA+NU7kJfSH85Yv6w=; b=FumuDFmtYwImtz20Yjy6Gp8sWbAGDOo1NYqQxCFPeak2lIzmslRkaw1gy0NjgK2ZHR x8yGVg2bi5or3QO0sZecenVfbrJcocAFJlJ07/hizbHgt1f0QuD7lUKRFsAq3bNptTHb ATY1gGdHfRYhwxlXUC6SzCXUhumOxJSNS4Lq1XCxDazWuRV5zGsFmQxaSbBr9FuB1Qtv a4gNHUG0FgzJvVMrcbrICuabu0jTcvFm7KnxR30MfK23skGZga3px4oWP4d/dc0sqe+u +iKZpT+q0qLmhv6OLed2UTe3KGnTqp9w99RLqHsDsZPPId2rkg1N8qOFn4SxVEDKhbSU 9DXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ZFsiy4K4; 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 w1si1394558edf.589.2020.10.22.10.09.22; Thu, 22 Oct 2020 10:09:44 -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=ZFsiy4K4; 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 S2898697AbgJVMnl (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:41 -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 S2506264AbgJVMne (ORCPT ); Thu, 22 Oct 2020 08:43:34 -0400 X-UUID: 20c367e7615b4fe39430ebc0420fb5fc-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=ZMPcWi0+CUwGocrX5m4/D3sGTbKA+NU7kJfSH85Yv6w=; b=ZFsiy4K4/9hCaqHyIi7B5pR82yUhQjpahX4AHmqO3uyWAty4AdV6bGbDVxT5Uy1vPOIz7VF6mOrokRnncB3IvQqNDL5xHAxqAH+pUiSb0RcYEDaZ0SS032QnSpFrJ2Ji7FY0oDAQjjp1NWxvTKKfDgzgi6xPXlobWNS6GR/ooQs=; X-UUID: 20c367e7615b4fe39430ebc0420fb5fc-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 1647622374; Thu, 22 Oct 2020 20:37:56 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n1.mediatek.inc (172.21.101.16) 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:53 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 18/34] clk: mediatek: Add MT8192 imgsys2 clock support Date: Thu, 22 Oct 2020 20:37:11 +0800 Message-ID: <1603370247-30437-19-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 QWRkIE1UODE5MiBpbWdzeXMyIGNsb2NrIHByb3ZpZGVyDQoNClNpZ25lZC1vZmYtYnk6IFdlaXlp IEx1IDx3ZWl5aS5sdUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJzL2Nsay9tZWRpYXRlay9L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