Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5754691pxu; Thu, 22 Oct 2020 10:10:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6VdEjCFSlsuSEUX8NgGr8cgN4jkDoJDDG6STG1ZCjyF+bvZ53zDiV8SnAUHv+1WUEyFMH X-Received: by 2002:a05:6402:1446:: with SMTP id d6mr3200794edx.244.1603386602360; Thu, 22 Oct 2020 10:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386602; cv=none; d=google.com; s=arc-20160816; b=pdEZT7Y9MIhtky2cza8Xzo0raTUKuV0JyaRRZd30jy7hQ5VlgY4DErw6PmDa8NyMHa NoDW38qlDUv6kWwB71ueqkmv1IgDZUEXW75y62qN93QM6nDYMu7V1OPpW8+eGB5eOdS6 QyD3U6BL/3NNsvVd8xsWIw0BigG4lvuive1TEw5iHJyX9ag60DgMs5ItkzKnXR49uCAB RNlRu/8ZgN14hAqaITSv+VPLvlG56sn+ph3pGtCJD+6FaQXBUzG9HjNXhcgJWeApBvZl GgyVOOtsiijTG+ijGINuLnl+nqBwdda4pU7AvKJ/DLOE3UzzcpWTvqOfxZECd0kyai9J mDUQ== 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=2EHjMnXHk99N/kTVT5U3zLxaMSlvFJbeciwRaPo0mzw=; b=E/0SCjDqQU0bLW4nu/j2mTswaH+PB9zCEKfzjulccnVsS31R17hnMAy12TH/Ic58kT Jx4hm0cDeuG3sWmaMFMDe5riswqulxxzDJr+v9yeyIHSr3c3mgs/l3CB/rUC6RiAqVuz xXOMuzMeVNDkFT5hc/1zgCJRuMW5J+KuIUvLkVLoRMa7VSNEXqIyZrAhuNP697rWJ7z7 4+U/eHBLQ+85rO96FmF/hTsXusN93akbL0dt29m7OMa20lciRXxnR0pWXOanXFCITIGP OhC3XsDF5EApb1JF9Y4siDAqG8k9S1/OiuYfmVptsMYb5q0XOmxTSh1KanKaYA4XryJQ Y1SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LTmafrxZ; 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 le9si1390776ejb.208.2020.10.22.10.09.39; Thu, 22 Oct 2020 10:10:02 -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=LTmafrxZ; 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 S2898712AbgJVMnq (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:46 -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 S2898665AbgJVMnf (ORCPT ); Thu, 22 Oct 2020 08:43:35 -0400 X-UUID: 3e892226e552462c8863b4fef2d44f18-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=2EHjMnXHk99N/kTVT5U3zLxaMSlvFJbeciwRaPo0mzw=; b=LTmafrxZlngGlUfCsnicdHi+xEMcKnDbdbgLYq+B/Wtnc6vYkSIlYo2hbd7+lkDl5oj/Y3llQblWiW8M69zPJSqOK9jfdD2G/z7dD4LwykrLC+aFzhyTA6+IFP48FBbp2xeeHPKUQ4OwkI+wjigWuEz748ArJk/9FKr84gn/r44=; X-UUID: 3e892226e552462c8863b4fef2d44f18-20201022 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] 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 810757863; Thu, 22 Oct 2020 20:37:58 +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:57 +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:57 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 33/34] clk: mediatek: Add MT8192 vdecsys soc clock support Date: Thu, 22 Oct 2020 20:37:26 +0800 Message-ID: <1603370247-30437-34-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 QWRkIE1UODE5MiB2ZGVjc3lzIHNvYyBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2ZmLWJ5OiBX ZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jbGsvbWVkaWF0 ZWsvS2Nvbm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