Message ID | 20221129034157.15036-3-zhuyinbo@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp109268wrr; Mon, 28 Nov 2022 19:45:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf7eBeFZP0JmFlMqJM1koLXed+7GFYCkTnOnRAOhjfTB2bZOQdx1MLElopQn2Rrni4VS+9Ae X-Received: by 2002:a17:907:8c83:b0:7bf:4ac7:56e4 with SMTP id td3-20020a1709078c8300b007bf4ac756e4mr8423110ejc.39.1669693514270; Mon, 28 Nov 2022 19:45:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669693514; cv=none; d=google.com; s=arc-20160816; b=yakqk9uIbbexApq2RVH1UicmpLVAhjMTUbFjsIBR5SQCFQux4gyW/LkSB9h1uDr+UB 2rqt2Zlg+9YwxJP2BsQ6BsTbkFZPrbai1tyZ5FOiDqJVvWRGXsYj/pMaqICcaQ9YiRqc tc7dwdOJZb/NBhwM4k6CCdKtMAbxSXP4c63wbV/ew+iqq+Y05Hy8w7r56TEGxtqeZP7Z TVuAVim5eRVS117qhIUSijIg3FR5spSYC2CHBXFvNx4wfyIlAuzQmo57lm3L2cnzOji1 U1lyeu9xRPnDaUCzjiD48dK04QJ85adXW7GXkX82tMKXk28NpbDzapGA6aCJ5vxgCV+N aAiw== 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:to:from; bh=Mr6HVYd5LNJ9wZqEHZ+CfTmIHerGIUVNRCuIj/dLWzY=; b=qyBDYZpxDF/UCtMMFl0iQmItJUjCYm28RqCoKofQBiFub3wix7gZS1OMvVeFIGKqfW dKsNeSrdYVKIx4oVOSE/+eKFJdMyLk6KA6dfUWi9Tx0/mmOG1J+liOCRb1S4PSpbjhxh Rcz0qjEQwb/T82rzT+4jS0XFt5afoXNfm5UFQlphd10TjbbGzsPcDqoNsssTgHk36mFy zzZ8GZ5O3+ei0vDZUTuu+Vd4t1XCVt0u94jjoS3B8F3sqo5+w/kU9CNB3f5MSrS7SVzT QMwXdL2mBG8jG4TNiVGlnrJ0sWTb7IT/FAkX3s241fAumY+YOVcyhrRE0BbGP81rL3u4 hvCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a1709065d0e00b0078049ab4bbasi1037255ejt.526.2022.11.28.19.44.51; Mon, 28 Nov 2022 19:45:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235556AbiK2DmO (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Mon, 28 Nov 2022 22:42:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235532AbiK2DmG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 28 Nov 2022 22:42:06 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D3A5F4B779; Mon, 28 Nov 2022 19:42:04 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8BxXeuLf4VjbOgBAA--.4562S3; Tue, 29 Nov 2022 11:42:03 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPuCGf4VjjecdAA--.10584S4; Tue, 29 Nov 2022 11:42:02 +0800 (CST) From: Yinbo Zhu <zhuyinbo@loongson.cn> To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Jianmin Lv <lvjianmin@loongson.cn>, Yang Li <yang.lee@linux.alibaba.com>, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Yinbo Zhu <zhuyinbo@loongson.cn> Subject: [PATCH v10 3/4] LoongArch: time: add of_clk_init in time_init Date: Tue, 29 Nov 2022 11:41:56 +0800 Message-Id: <20221129034157.15036-3-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221129034157.15036-1-zhuyinbo@loongson.cn> References: <20221129034157.15036-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxPuCGf4VjjecdAA--.10584S4 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoW7Wr4UWFyruw17uw47ZFy5Arb_yoWfZrg_uw 17Cw1DWryfJ39ak34vq3ZxXw1jkw48tFn0vas7Zr17CFn7J3yUCw43Z343ArnI9as29rs5 ZrWrGF97Cr13KjkaLaAFLSUrUUUUnb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY C7CY07I20VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r126r13M28lY4IEw2 IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84AC jcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM2 8EF7xvwVC2z280aVCY1x0267AKxVW8Jr0_Cr1UM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE 52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I 80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUAVWUtwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Gr0_ Xr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1U YxBIdaVFxhVjvjDU0xZFpf9x07UKXd8UUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750800546418275091?= X-GMAIL-MSGID: =?utf-8?q?1750800546418275091?= |
Series |
[v10,1/4] dt-bindings: clock: add loongson-2 clock include file
|
|
Commit Message
Yinbo Zhu
Nov. 29, 2022, 3:41 a.m. UTC
The Loongson-2 clock controller driver used CLK_OF_DECLARE to
register clock subsystem that ask of_clk_init was called in
time_init and this patch was to addd such support.
Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
---
arch/loongarch/kernel/time.c | 3 +++
1 file changed, 3 insertions(+)
Comments
Quoting Yinbo Zhu (2022-11-28 19:41:56) > The Loongson-2 clock controller driver used CLK_OF_DECLARE to > register clock subsystem that ask of_clk_init was called in > time_init and this patch was to addd such support. > > Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> > --- Acked-by: Stephen Boyd <sboyd@kernel.org>
diff --git a/arch/loongarch/kernel/time.c b/arch/loongarch/kernel/time.c index 786735dcc8d6..09f20bc81798 100644 --- a/arch/loongarch/kernel/time.c +++ b/arch/loongarch/kernel/time.c @@ -12,6 +12,7 @@ #include <linux/kernel.h> #include <linux/sched_clock.h> #include <linux/spinlock.h> +#include <linux/of_clk.h> #include <asm/cpu-features.h> #include <asm/loongarch.h> @@ -214,6 +215,8 @@ int __init constant_clocksource_init(void) void __init time_init(void) { + of_clk_init(NULL); + if (!cpu_has_cpucfg) const_clock_freq = cpu_clock_freq; else