Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5747009pxu; Thu, 22 Oct 2020 10:00:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWg+yRl6ovZemog5palFdlgN7H5Qj18c4VtCYU188ZcIbe17Syya2YqgZINmU/6CUF9ncz X-Received: by 2002:a50:fb0d:: with SMTP id d13mr3157313edq.85.1603386056007; Thu, 22 Oct 2020 10:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603386056; cv=none; d=google.com; s=arc-20160816; b=PPpakL0RhEC0M4wWv5OeMB3UT7VpRS18D68+mxysJ7wceAoNzVCHYbQ6QWrAozAevV +redrGyd1pUP5JB98e81R5tSm78EIjj4P25uSMOpGxzMAbzg5cFYLCV0HDnv19Laxh6K S7jidN98TcXogHPlQwKX4aeFCsOZV3NkMrcK5Loszuz7AyrzORgI2EVjdRonpuexTZwT ny1Q8gzwsVi+atB3wl4pzSVhplktAp3QY2lCAXotF/byuxjhEFHQbIoFo7pUbslDmbqO Wnsem5ehv4RRG4rdQZKJkq0kr2nhJT+oJgJmjeTaJAI/ZT/Ij2l+vCPW2C7JGdt+utKc Qjjg== 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=xPx4w3Ifp8cMSmqWG4hsnZEw9kV1MHK5JqIFuK8Htwk=; b=yiQto1HT5Wl4k6cAD0O5nzEm1GbmCNTB+e+3vj0fvD6HuhENo6RafAQ0X6Ym/6EHkO Je2cKS2ELqY2dyx7iBJgGihSDywCP7S0ngTX6qdhQtFAMBR5ZIlAYsFNSwLgtMFpebcp Y4G3U0XTJrIxcFtyB1r+2I5VdcuUfixE5c4KcswvAYhiWmszCuLehfLbO6KJj/AqHt4G gtYkVwo7B9+tz3sP4bLKI1cztmjUCz68MfFPz3lYFBKnaz10ksc5EJM/ubnCpzgqmZS6 rsHlHGmqvgnmjXvFEmWRLK3BTBzj8NTXdmygX8J9KO7+mW1pZvPQwGhpKzrQZwpqEyg1 FRYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rja5kuNR; 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 y20si1231276ejm.593.2020.10.22.10.00.32; Thu, 22 Oct 2020 10:00:55 -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=rja5kuNR; 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 S2898321AbgJVMjh (ORCPT + 99 others); Thu, 22 Oct 2020 08:39:37 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33670 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2898318AbgJVMh7 (ORCPT ); Thu, 22 Oct 2020 08:37:59 -0400 X-UUID: ce20f45d2fb648ffac67ae84d7d40088-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=xPx4w3Ifp8cMSmqWG4hsnZEw9kV1MHK5JqIFuK8Htwk=; b=rja5kuNR+HfDdts17VrBQDFL82OtRYwg+tlzOf7xLvNSb7GmsUwa34TOxHTQdosYLGWJtbBAQrp5YeRqyDE/GeGMZQo3J14+E3RvbOHBCDp8JWcNPjZfhOwTHwffBoXcdBIz+8Wczcbn19ZE2NG0hqpTbknGFG/ZF+xYRZQEW9I=; X-UUID: ce20f45d2fb648ffac67ae84d7d40088-20201022 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 1992675347; Thu, 22 Oct 2020 20:37:53 +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:52 +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:52 +0800 From: Weiyi Lu To: Matthias Brugger , Rob Herring , Stephen Boyd , Nicolas Boichat CC: , , , , , Weiyi Lu Subject: [PATCH v4 13/34] clk: mediatek: Add MT8192 camsys clock support Date: Thu, 22 Oct 2020 20:37:06 +0800 Message-ID: <1603370247-30437-14-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 QWRkIE1UODE5MiBjYW1zeXMgY2xvY2sgcHJvdmlkZXINCg0KU2lnbmVkLW9mZi1ieTogV2VpeWkg THUgPHdlaXlpLmx1QG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvY2xrL21lZGlhdGVrL0tj b25maWcgICA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