Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27726pxu; Thu, 22 Oct 2020 14:23:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyBTlz2NLASyOFoYmGokcU1ONFc8WLUaq0d0QRNKVJheYQY9THAThYXzrlwOai7NhKC1Ha X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr3753352edb.125.1603401827732; Thu, 22 Oct 2020 14:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401827; cv=none; d=google.com; s=arc-20160816; b=fleTq9p0xzu3LdX3fvPTYn7Y0hDpObb2S1yMlF1ylZYSwIYFAIv/5lnDx1xjZoq9u7 2G2pPjoWm61cmYohqE93mMacZiJkPdsbav6Y2vx7zVtilnCJe3RG9pLi1//fl7xacWUw ObnnJLvQKLmueDfgpHzIS8R40SRVB37v39GG6jHhOXskiNTnxqPf1UvjwemegN11Cnfy nW01NEkPBF2pDfVy9UPZVuEyPGPc67/BC4Ys5g88TUspc66+NfsWmAewZnjzcqooNeYb kJn7JREPmHvmw4UIO+uNf924eJWEhhD8e7WEVtkTOa4fb88e2AruXSeU9Z2qT5StmsPV 7eVQ== 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=t4rRKlccRQ0Y+5Tqpwe5a2eb4dQFFEahxDVTIrjjXaA=; b=Le6oEGVhFgDW+ghEZf4oDcJ0WyscCKINh97th4aSgwatPgaVrQoJGy0CpuoVUYRCrs qFosIvKYGLQ5pm/sUGyHn+PDdkcbu/5rbJfWwo+LiD+0rDJfkFjyaLNB8+yA7zDxWzYq g/BSvZlpIF5uTYkvRft/l8VRNQRQxW/iPo93EoBbKp3ZGxIFAqR+T2RCngdMEB2eFa5V z/oPLG6R45cp8Rxf7VJ5I2sO71KdeT6pdRs97cCD1KeAHVlp7AlvrgQFIUCMB9qFJ5HJ o4RbjpIh6gd1a/7Hmt0wdrohETgKNiQtiRWb4+kikmqd4f+FgHDeg/FHQRPnqPZyH4Sv WGxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Zbzt9kfO; 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 gj23si74359ejb.600.2020.10.22.14.23.25; Thu, 22 Oct 2020 14:23:47 -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=Zbzt9kfO; 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 S2898374AbgJVMiS (ORCPT + 99 others); Thu, 22 Oct 2020 08:38:18 -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 S2898354AbgJVMiK (ORCPT ); Thu, 22 Oct 2020 08:38:10 -0400 X-UUID: eb9dcb8e743d4beeaacbe35cc7e51ef8-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=t4rRKlccRQ0Y+5Tqpwe5a2eb4dQFFEahxDVTIrjjXaA=; b=Zbzt9kfOeCkP8FsxxNC45UklPyANqou/ga6+ffGXKljalogPFju4cfDOgGkKlY0fwnYg0kPF3qSY/zWjziyxbka7NvJ/r9TgCHhei0s4H1eaft75JUGDYt40uda8K1UVFkVQl5UIfR5alrzGw45gT2H9xE+t/ukUa+b+QQw7G3Q=; X-UUID: eb9dcb8e743d4beeaacbe35cc7e51ef8-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 700992461; Thu, 22 Oct 2020 20:37:58 +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: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 32/34] clk: mediatek: Add MT8192 vdecsys clock support Date: Thu, 22 Oct 2020 20:37:25 +0800 Message-ID: <1603370247-30437-33-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 QWRkIE1UODE5MiB2ZGVjc3lzIGNsb2NrIHByb3ZpZGVyDQoNClNpZ25lZC1vZmYtYnk6IFdlaXlp IEx1IDx3ZWl5aS5sdUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJzL2Nsay9tZWRpYXRl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