Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp28520pxu; Thu, 22 Oct 2020 14:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIgR3RicnZmAHT/QTlIYyX48xw2GHvG0+9h/6B0R/rX4Y1Bybd3RDSlbHhC81QLdsSjFFV X-Received: by 2002:a17:906:4ac2:: with SMTP id u2mr166045ejt.224.1603401909040; Thu, 22 Oct 2020 14:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401909; cv=none; d=google.com; s=arc-20160816; b=a3MLc18jesOqLz4N3j1xuv8oGD0QVFku2xm2smnFQTPO4gj4/rQ5cVtTV7F8YDqS2q Ec+6+JNzlYNR8YqXM7aUjzQHmQhK0vX5pIcShyQPf8ppToStd45KJ8+f9d19AQjeyE16 CwEcqS083CJA2Tl/s30P89C/PdLXDMo0I46Gj47ChWxl4A5j6OWDDcV50vAbtDQ93qIL /OrAeQGwuuAby6//gB6PFkMzIgl/vSM4n9OU8cE2sO5usS1N9LPcoUCavylv2srRH5m+ JvWqEXDLK1561TfKFAc8Z8t+lOlyGeZSohV5Sykko++Yr5lwrPHBPrw7sjN7eKMg+Zd6 Se5g== 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=+NWnL0gLpX7Ip8SQczwvHvPP/3YKYMmdM76PpJzv7qw=; b=FAPqQFv0l3wu3LqgWO1x1i/QyiyoyBnw7kIV1zmuzQ61eo+BxIoMBRMLcujvrJ5s7c 48fxyIfcDCuaa3iHu0A4rwS7cWjxXL1WGGxab77E2nm/XcOCM1N8EGGBvMi3Ppb1gKch tfA9FYWRMk/KmBhJ+JYJm7EZ7jphcuum/oZkVirCWPM4MJceJWxKKeS0i9LmYuusH5KU tR5XdtgqgsLU7BAV01OillPz/tVyPzRtYlX7EqUqQo0CedhXXqqwe8ATuVeU0ntaLPSW txfXXjpk5e/pq/G/8g0YmwfOFHU/iYmWXNqOnr26Ai9/jC5ims47MWyGNcCrclex4Z59 GQRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NDMphSYG; 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 ne6si1469473ejb.416.2020.10.22.14.24.47; Thu, 22 Oct 2020 14:25:09 -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=NDMphSYG; 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 S2898683AbgJVMnf (ORCPT + 99 others); Thu, 22 Oct 2020 08:43:35 -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 S2506353AbgJVMnb (ORCPT ); Thu, 22 Oct 2020 08:43:31 -0400 X-UUID: 0d7b480edb7247c28564798f031850ee-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=+NWnL0gLpX7Ip8SQczwvHvPP/3YKYMmdM76PpJzv7qw=; b=NDMphSYG7HgKUnJ6HPSFIBmWdEKZAaWGXGWEonxfrkFW+wcBAE6zS5da/VoMHTI1/zmtOjxbNjgZDeZf5zoNUcFxTLndtYYXGv/r0B/12Yb46XNAUbrpdl6T/Ltlt75K8ch7QvC/7yeaO91F9U07L1eFHvRCQzeSGAwOmgblDH0=; X-UUID: 0d7b480edb7247c28564798f031850ee-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 1109368234; Thu, 22 Oct 2020 20:37:59 +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 34/34] clk: mediatek: Add MT8192 vencsys clock support Date: Thu, 22 Oct 2020 20:37:27 +0800 Message-ID: <1603370247-30437-35-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 QWRkIE1UODE5MiB2ZW5jc3lzIGNsb2NrIHByb3ZpZGVyDQoNClNpZ25lZC1vZmYtYnk6IFdlaXlp IEx1IDx3ZWl5aS5sdUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJzL2Nsay9tZWRpYXRlay9L Y29uZmlnICA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