Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2897976pxb; Sun, 8 Nov 2020 18:13:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0hYDidjZNOIRYuKcon1h9LGCGe0SjrwbGCNlUjBj3MpCTFQQZ/uH1mJ+TFhij2yEdX5ZC X-Received: by 2002:a17:907:2706:: with SMTP id w6mr12791392ejk.107.1604887989551; Sun, 08 Nov 2020 18:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604887989; cv=none; d=google.com; s=arc-20160816; b=VVOqkVfkqxC5PUezvS04Vu2vYDXx9f20fXwd/V53pozflxvCGl8X9de4JA2bcBouC/ HLYqFtho/e8iMy00cEqZS7QyOmejMvFfn5HpxSCt2QDTrFTOy8rpxB0H89YkcYkf03mj hXCKAsvubpn6pMcpf6YUaKbhT8UHCUotrzKVW/fWiYFLxElc1QPo4KQxQNXDbUeZxEey 1/g44ulxSI/chHB0/tsAg8X9/mBqEMAfMgAFa18x6Hic1hYmex9vxDIz6fKnTN/Xl5et o/tWDIypptT8/dJ9O29MhKu/7ZCQIN/xUL8UpOGr2D7z87hbKvyxa+CCdYC4rSDJdPmc MiZw== 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=6mOjFQp5tiS27/BpZ/cU8++Z2JHSDO2GwBGWDc1VIQc=; b=Z4jNUdK6jZnH3tR25ca91/s6BPiqjpougMvt63JKni7O1MmOkRiSqv9yHGn0eI8VuD BxXHa77+RfHrVHBsRhOmOvRYLPxl4SkmMACNWhC1YPkbZiKvu7eaKnplXzFx7M33l553 jMZc6LegiFFFWc28+KnhllFLRooQj7uW0z1z58dzkuiYWUSETiI0htgKSVHhZAf5wDiJ 3PBjezk1lUKuAo6HE+1MKos6exTYPZz6HBJ6zCnIgawPJFypJeGUcFwjApB8LFRa+jw+ QfhBsSsVxPDCI2j3YAY9VeLDrUrsKw8/bFSJhZbzrLoCNt7G8zL8lk16dFOQs41PcZJj U1Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="SyD//EBg"; 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 ml11si5944915ejb.697.2020.11.08.18.12.46; Sun, 08 Nov 2020 18:13:09 -0800 (PST) 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="SyD//EBg"; 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 S1729138AbgKICJX (ORCPT + 99 others); Sun, 8 Nov 2020 21:09:23 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58255 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729100AbgKICJV (ORCPT ); Sun, 8 Nov 2020 21:09:21 -0500 X-UUID: 73bb0fff315c476ab367be3d75617052-20201109 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=6mOjFQp5tiS27/BpZ/cU8++Z2JHSDO2GwBGWDc1VIQc=; b=SyD//EBgIW9PRKhNO28soRs1Xpw+M8s4wCY3AQ8YMRhe5b7AN62C2FGyYtvE1nR85swYDQTugxCrzeg1/AxJbWPxw/kTHlqqu3AOYSKm0UL4HxJNQ2bV26eG1VYaLXLMP9g/x1lbrYLW6rgSyJ8bGBsPqjCcGcu/saFxUKYtDA0=; X-UUID: 73bb0fff315c476ab367be3d75617052-20201109 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 14594520; Mon, 09 Nov 2020 10:03:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Nov 2020 10:03:54 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 9 Nov 2020 10:03:54 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu , Yingjoe Chen Subject: [PATCH v5 21/24] clk: mediatek: Add MT8192 vdecsys clock support Date: Mon, 9 Nov 2020 10:03:46 +0800 Message-ID: <1604887429-29445-22-git-send-email-weiyi.lu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1604887429-29445-1-git-send-email-weiyi.lu@mediatek.com> References: <1604887429-29445-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 QWRkIE1UODE5MiB2ZGVjc3lzIGFuZCB2ZGVjc3lzIHNvYyBjbG9jayBwcm92aWRlcnMNCg0KU2ln bmVkLW9mZi1ieTogV2VpeWkgTHUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZl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