Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5867658pxu; Thu, 22 Oct 2020 13:08:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzISDIDj0cUFhpcsMKIcTJcxN++/zbpxC/VzANsV4oMq36z0XQtI//reuqy6yEmfJSvSFCL X-Received: by 2002:a05:6402:3045:: with SMTP id bu5mr3955202edb.232.1603397339635; Thu, 22 Oct 2020 13:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603397339; cv=none; d=google.com; s=arc-20160816; b=KAhU6tyALhI4fHDSSGNmyiFStOQZPyd/xGhhK89SixMRvYOY3H+bc+sR8yy2v+m+qV +5vT8bGKPW9mHSRCrmG1o/G4dBaasbyDnVCzv6GsiwKEYvG9lYdwBLDMO2TmWhNXY38s HcpBxA6flDjHWA21KA9HqvEjNm/vULO8baMgEBCHEPgA9cxqDhwl7fvCGNKrC5M4fKhy QYT3nu/ooDPqQ7iq36DSDHkDNjGlzqUDwzF/sHdHr7YgS8DKujFVY6XBU5XxAC00UmtX lbf0dTASGVYtNTB1TzhWawPxSsDW2NnTGn/kLghIpaTvSSbocU6JyHZg/3PLY+yoiOU8 Fm7g== 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=TDOx6fhXaJsF0Fpoms+4Z1zLKnR/5sMBUH/V/FKsR+o=; b=zbYqhszYIWoMtnQyvhN/QwHNv0MJUbf5eZf4k5kibUU50qcaEBKpAcIgxnUUUJQkIc gti1iTw56XDjZz4zdZpr2lR1b6+VmsLJ7yHGBZrkbOX4howQN8FeYb1+C/WjWioPPjXf 9CbsQnCzsGbjWAgjauFFFo1NbZST9hTZH5j/wIfkJ3w/v3bPKoeEnRAZlz4iQcF6FGlc Pl5khkTXOS5UQxnu8qsH67gbhb8vOjo5jYs9D+AXwjtwbrHlJPVZZalLrdWIBWzLt099 QYSd827NizG1RZ8vdiR9mDYLW451CI9yjMcENpoUk6QyaiPyiHnydb481vnFAHqgxuZg uhiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NGPi9b2w; 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 l9si1562590ejq.664.2020.10.22.13.08.37; Thu, 22 Oct 2020 13:08:59 -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=NGPi9b2w; 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 S2898475AbgJVMjW (ORCPT + 99 others); Thu, 22 Oct 2020 08:39:22 -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 S2898340AbgJVMiG (ORCPT ); Thu, 22 Oct 2020 08:38:06 -0400 X-UUID: 4a5422d6263d4fcba56d57406cc6257a-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=TDOx6fhXaJsF0Fpoms+4Z1zLKnR/5sMBUH/V/FKsR+o=; b=NGPi9b2wl2SzT8Ux4RjZfZKS7+tKPgwuScIV6H3W9JNs36SZiHGKEDDKzNyR/BsdLVfHraCdVtbJ2FRisr4qj05U3ugW08GvHkIRK3YDZZ+n2ma5oCfpmnSP1lZsKYWVxHn7QV8NXDyD8jbW/707GMcuJcjd1bAZW9ucwcVf3lo=; X-UUID: 4a5422d6263d4fcba56d57406cc6257a-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 1493274751; 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 14/34] clk: mediatek: Add MT8192 camsys rawa clock support Date: Thu, 22 Oct 2020 20:37:07 +0800 Message-ID: <1603370247-30437-15-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 QWRkIE1UODE5MiBjYW1zeXMgcmF3YSBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2ZmLWJ5OiBX ZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jbGsvbWVkaWF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