Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp28413pxu; Thu, 22 Oct 2020 14:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxATHRFqvP7W55A+0p6iaWSdOmWBwznhGTDpwEYdGtg4rmVDB+qwXUVcVYVTbNH0wC0Vd5r X-Received: by 2002:a05:6402:b66:: with SMTP id cb6mr3917394edb.110.1603401898908; Thu, 22 Oct 2020 14:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603401898; cv=none; d=google.com; s=arc-20160816; b=CjnddiYNz/Pq50oiNP4QFvhH9OCBSjQ6MnROt+nOtXaBSFHBqf9wH7VNKtUDu2tDWX SOx/qpU+YbWTyHOEW8D0fVKvdCTMBEPBGzowoqWzipbXEKRrCKUIIR9/GOEE3y7FBKOp YPfZVyGV574I2+Gd59onSzTvtTch7+pTQT0glC+BnUzwnyfU6B/okiKBlSa/gQC2wLT3 EPFrWZXgSmQSDcKrMUwBbni/tepy8K6K1DP7xs4+uwwLuZZBgXz0Wx2XFGbJWTCRcK8/ bxS8Tcaw+jjm/5iBKDOPzWTd3ETnqXo2hzk9kZt+K9xM1YqEzadis9ESnACWjXsWjiF2 91Sg== 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=umJ+B7G8uBrs1AH7lu+KiWUNLiA2sEVEMyWkU8lAiu0=; b=rbASWIS4bC07F57KZvqd7MVZIjSRognjOvSfemO99gAyi6v9dcnIKNAVGTMxUhpOsd ZRIG+ZWoHdnJYA8+KgxpixENE3ybH44oPA+pwk9tX74058YOwn+hZ/92TXXEJp6r7o1X 3UyS2ffGDP/i9empxdH7HvXkO6OCr7DjNJ+8ZHx6SwjBBgUFJlv9mrcNz/dKSAbLp1wo fqIdD5pHz3BPaJ6nr6GnBBxY7n1tEnM9xpg+K6cQ+T2Ph6zyTMm9udh7ewM/nL6AMHLV l4Fk3RM1zU4MygK+U2txtbWBdvSiGOmLm3Mc1scpTtxc96r4B3gBr4aX9cbp5kr7c6nf 7m4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="hJc/h75p"; 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 g92si1632575ede.516.2020.10.22.14.24.35; Thu, 22 Oct 2020 14:24:58 -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="hJc/h75p"; 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 S2898686AbgJVMoH (ORCPT + 99 others); Thu, 22 Oct 2020 08:44:07 -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 S2505972AbgJVMnP (ORCPT ); Thu, 22 Oct 2020 08:43:15 -0400 X-UUID: caed0c48b64c4a2a86e16df9398158ac-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=umJ+B7G8uBrs1AH7lu+KiWUNLiA2sEVEMyWkU8lAiu0=; b=hJc/h75pHpKJjxN84Zcwijt7yMXDaS9YfcUcBcLS8J0V9SrqZeKu8MAMlklG/zMVhRlqLxT94JyrTts1NwB/V0Xxy1IXJbAkOWgWhkItMqVmo2gOiUlraCD9edSSn2h/Hp+Em4wLXIJoG3c0pJT0BI9+BjWJWgorsJC6Yc/yCr4=; X-UUID: caed0c48b64c4a2a86e16df9398158ac-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 1630510094; Thu, 22 Oct 2020 20:37:55 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) 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 15/34] clk: mediatek: Add MT8192 camsys rawb clock support Date: Thu, 22 Oct 2020 20:37:08 +0800 Message-ID: <1603370247-30437-16-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 QWRkIE1UODE5MiBjYW1zeXMgcmF3YiBjbG9jayBwcm92aWRlcg0KDQpTaWduZWQtb2ZmLWJ5OiBX ZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZHJpdmVycy9jb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