Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5867640pxu; Thu, 22 Oct 2020 13:08:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlLSsIZ+o+UIiMKptjC0YQLB5aj9PR8UCji8HZPWaUwRkYm39rozrmtaGwSkOOyKw8nWFm X-Received: by 2002:a17:906:6d99:: with SMTP id h25mr3965577ejt.281.1603397336887; Thu, 22 Oct 2020 13:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603397336; cv=none; d=google.com; s=arc-20160816; b=MSqCdM79NIPoFLy/m5LEViEJeqcpgOZgEzr1RhDNcM1SoR0WJ79ho7lioTg5qagOQI w9gE58vcmpbl6sZz1tdj4xTeGilSbgXY/XqBzDap56gkFVDTMGsx4ciTyEPOsvlDB6zd IGAB3Ac+fm1VOirl/zcyqmKMNSaEfhLTTzaLiaaN4x2WNnIdmwr0fH91aYljMot4Olx9 ml5Bl5xoGvxDxNX5xawByE3AlmmHi6vlLaZ0ZNjLebgTeh6/TfMpnS/tPTizw7U2bT5Z CN5GqT85A2PR7jpmJFt0pNT3jFmPMMThyKFbSQKLC4fBceDBzpFaG1HqH+vo0pCD/Na3 tITw== 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=oAEXG2KaJ84sNJOfAwlzhYaxNi72jIV2QEgroAmM1No=; b=OHubrcMIND2A+ocQ6vjPJ8yCj0D9edghFQtmzs0UON1Xjuq9Q036OHRKHyldVJXh5G NFtHmKFM/CE759XjTG4l+yr8ckxzkZr3t98b5mYsyqCCAEmK+qyJm8FPcEysd5AKInRR 3W6b9m2HY5XVa/4nCy/sc1SevI60TtF1yyz820eaqb9Fl4y10VuCWrmmbLfBZeaFcxEM sdLPUmJzSKKq223PDZflYOmucwfB3ufRE2cgqwA/msZpa7PcX4W68p4yek+FC7Flf/0A gT48/z3g40x7+5hm8pndBcYKqCCxFFUGxBUjSMtyppP81mVaSA156iRrhuXmjDq33ulJ zwEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=teTiPwo0; 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 d12si1833189ejj.595.2020.10.22.13.08.34; Thu, 22 Oct 2020 13:08:56 -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=teTiPwo0; 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 S2898466AbgJVMjP (ORCPT + 99 others); Thu, 22 Oct 2020 08:39:15 -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 S2898379AbgJVMiX (ORCPT ); Thu, 22 Oct 2020 08:38:23 -0400 X-UUID: 1aa4f79f3b134c33bf2e97c6021ee1ce-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=oAEXG2KaJ84sNJOfAwlzhYaxNi72jIV2QEgroAmM1No=; b=teTiPwo04+bMVBgn6XN7eeffrl2yUuKXQOtzCMJZ+68riQZvPWEd0YDYRFb6/7PzrxaVPAjvXqMbGQkegEnB/Js9+Vy8+sWyIB8nqUL0+tf7H307Mpkyb3XP9UtYXOtJsd744qE6RLUzNGDsUO4RGVp8pjIN8PlM0cXyVp0mqCE=; X-UUID: 1aa4f79f3b134c33bf2e97c6021ee1ce-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 1250786638; Thu, 22 Oct 2020 20:37:57 +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: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 26/34] clk: mediatek: Add MT8192 mdpsys clock support Date: Thu, 22 Oct 2020 20:37:19 +0800 Message-ID: <1603370247-30437-27-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 QWRkIE1UODE5MiBtZHBzeXMgY2xvY2sgcHJvdmlkZXINCg0KU2lnbmVkLW9mZi1ieTogV2VpeWkg THUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvY2xrL21lZGlhdGVrL0tj b25maWcgICAg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