Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp27534pxu; Thu, 22 Oct 2020 14:23:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK+XCTl6BQTnjIDkHm7aX3sGEAQjHSVNdNm46zwOOHBCL/FATwo9PtF+u8exy8d1IZqh/O X-Received: by 2002:a50:f316:: with SMTP id p22mr4007270edm.201.1603401803166; Thu, 22 Oct 2020 14:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401803; cv=none; d=google.com; s=arc-20160816; b=EneVgrfxOavlKXko32ZAKnswRxtWyHXTXNxR5xiqR7wHjy/xrjZi1i+nI727rTl4hK iVhV0/xNyrFP8pXTsf7dX02yunB+IgWMXVUMUoBgJMauR1Z0Qo2JucN3XUQ1Mf/BuPvr +NhIDd1pZyF08pNxc53YpPqyYd40PR6yNRrd5on7sUlT3pvWIaYaEUmZWf78BN3oHSMt lMcTd36+g/lOQDgCIOzq8DzNHJEdzSJMEuce3W4BLv6Htz0ZIiBi05/CAKIRr2PHsba3 niu920ETyXguS2H8PtNhTc/3XHcq9i4DBtb6bIWnWYvBw59wOJiEgjo7D4vOkT7KAnHB zM2w== 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=94ERqEezAl61WLflohrVVCYOOOkHB1z2OaNseGbFxoA=; b=FhkRI/nwld0nMJt1z2zre3FAPO+ds3sYSHBnmFNaVn/A5HNjZgdBsks0qhVMu+udxu gRqPPTyvPxvA6N+I5MQf6KtArOuyOz5Uj1N1Y5ceSfXROnMu8qpf1RhFQ5E4KrolO8e4 917X72xeG5DEXIVvc5KCrjkXSboc3a+5ISbOVEYOCuw10FRlZGStpu2Wed06qIMk6Lf3 iZ1m3srwvNeCmJS9pEBgT9zLsQCMkTPvwsdy4ONUj3PVCH95odu+4LNXRjzPTwQN2t0z xWE6ekAFUI23ntBoRjnZ3iKfoQhhrYdnu17Iz+n+1jPr46SZp8ULLB+WCQkiGrVJuxN1 k/gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="k/H4bVoY"; 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 s13si132427ejx.448.2020.10.22.14.23.01; Thu, 22 Oct 2020 14:23:23 -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="k/H4bVoY"; 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 S2898360AbgJVMiN (ORCPT + 99 others); Thu, 22 Oct 2020 08:38:13 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33701 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898324AbgJVMiA (ORCPT ); Thu, 22 Oct 2020 08:38:00 -0400 X-UUID: 8df6d87e52aa4d4aa86956b8aa82c127-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=94ERqEezAl61WLflohrVVCYOOOkHB1z2OaNseGbFxoA=; b=k/H4bVoYIknNx4i9TnKNeoS4pcGeRN+UHubq1ZEzhLgRmZhilGytG7lu1p/kx7wVF2Zx9SFILhAYv9LcsVAlyKqOL9zpDI21JlcoVpu/Gs/3LsyVxlvVNbcYczLGppTFhkwRfeacy5tQmds2ubALa9SIk7t+q0P4csOOhG7bySs=; X-UUID: 8df6d87e52aa4d4aa86956b8aa82c127-20201022 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] 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 1111283399; Thu, 22 Oct 2020 20:37:54 +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:53 +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:53 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 16/34] clk: mediatek: Add MT8192 camsys rawc clock support Date: Thu, 22 Oct 2020 20:37:09 +0800 Message-ID: <1603370247-30437-17-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 QWRkIE1UODE5MiBjYW1zeXMgcmF3YyBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2ZmLWJ5OiBX ZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jbGsvbWVkaWF0 ZWsvS2Nvb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