Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5749616pxu; Thu, 22 Oct 2020 10:03:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQfpAP0xJmrCtZYvwJfYK75LOqoNm7z/vOL0FShbdNVgHncEuBvF6x8mkv/aUFMUJlwIPu X-Received: by 2002:a17:906:b285:: with SMTP id q5mr3115845ejz.135.1603386230249; Thu, 22 Oct 2020 10:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386230; cv=none; d=google.com; s=arc-20160816; b=UrZuq5KtKy4WCzWEnW13q4KbjK1gJzP7cqsHfnKKFCLMyGihgGhQoheurNE/QCZbfq 4KHxhWwnBNFLTE83NsmygAniiA7nvoPmq3csq1ntVCHykD1oh5U1FyIYiljsFUFVGL1a bN42XygMQo8LCLJlNNfuuVrirRwAfgxXUsqDKv7WVbNB808HUKmnbYtZV+tzivbRln/p sbuqn2FMqu47NV4vNlsk0gXvMVOu3JxbXKTmr9Pwil5KSsppDPxx+q6XA5BQNanSuVJa aYhT5CVJBemMb4TfSECfK9nZsQ3lvXZEpS7bxUP1cn55pv9TprsP956YvhtYQ66AAh5Z L6OQ== 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=CrkNA8CWgdGfdzmNmP0Mx4SbrCnJU5z3LzWlm7srplY=; b=SlocPvhnOi4Yh9jhq7KwCWq9lZuYwgZP+Vf9aEPyklRRph5EeaVoyGhqoTqJiJNPb3 N5e0SiuF8QycDGo81dGk6RBTSiMQoGlph6oOoOjJ0N9WG3sx95fqwNL/CjZsG50e3y7Z ZarT92/mp8sXLo7Klx0fWheScmpiLlmcUPkFWFI4KbhS5llz45v+S0qO8J3+2wtYjPgg JgtiwbJFMPcHHDhCGaRebFNCnutSQWE1lg3OU8QtqBMdI1oSYD8KEaCxc4sHELOleTWk gBzdQtedRuq9JZPRB3rQui5DHmwiPIAeATunWs9brM4maxr3Fkee0aSOLlHf5bp9Xivf TYGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=i8sosWge; 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 e19si1246505eje.429.2020.10.22.10.03.25; Thu, 22 Oct 2020 10:03:50 -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=i8sosWge; 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 S2506505AbgJVMnP (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:15 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44200 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2439613AbgJVMnO (ORCPT ); Thu, 22 Oct 2020 08:43:14 -0400 X-UUID: 11aba410b8af40e9b0ca4eddf9fecd24-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=CrkNA8CWgdGfdzmNmP0Mx4SbrCnJU5z3LzWlm7srplY=; b=i8sosWgeybPWcU/PhlBMxpkhE0BJwMwr9TrgWaRWMRYHtxucf9AvwmCk63IHja+iCqvIdbW6VMA3hApHZvag1deNZnpEX8zo8Km8iKsvPBzoRr+EPDGK1szqlB6My9Kt1VBERPJrF7dQ+94kHiiwDkUOzZ7ed0wA3LvNUez8r2I=; X-UUID: 11aba410b8af40e9b0ca4eddf9fecd24-20201022 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] 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 30453470; Thu, 22 Oct 2020 20:37:55 +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:53 +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 17/34] clk: mediatek: Add MT8192 imgsys clock support Date: Thu, 22 Oct 2020 20:37:10 +0800 Message-ID: <1603370247-30437-18-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 QWRkIE1UODE5MiBpbWdzeXMgY2xvY2sgcHJvdmlkZXINCg0KU2lnbmVkLW9mZi1ieTogV2VpeWkg THUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvY2xrL21lZGlhdGVrL0tj b25maWcgICAgICAgICAgfCAg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