Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3572381rwb; Sun, 30 Jul 2023 10:33:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGcQCN9JfkwbxhYnlrmMQAXcTivaeBHiW8WwQz8qW0dML81IREohLC7O3Ejr4OKZNb2t3ml X-Received: by 2002:a17:902:d491:b0:1b8:5ab2:49a4 with SMTP id c17-20020a170902d49100b001b85ab249a4mr8813659plg.53.1690738405447; Sun, 30 Jul 2023 10:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690738405; cv=none; d=google.com; s=arc-20160816; b=X9b/8vDVRYRCQ5SHicJA/5P0fypi3R7W0uqLTMFALA2aX3WW6RpuQOqtbG57L6F2fs rhTBfqUctCxaLglMWKsMGQnQ4fMhz8b7mIWADHujfvyCjKbRMYwk8IHehDXNMRO5fine sqZrn9PZTrJRD6dQhDegui+ylL3kl0xuniTSZ+/ByBXdymS44BtDLWIuyPyHzSk0ZrrM W3BAfgx+4A7uHLeix7BcS7FNi+MDPGaX8U3/dJcRHW9+cE4YgGUVn4xNJbg67z4mow6R LzOU/J4YnViP7mjwDtnyzfd4tTXCHiqAH6OppCs5bgcHBRpKumkQofviXFJKx3fmGjlM 1WBQ== 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; bh=p6qo4COGx45412V9Gjn5YGSIMKy63Ro/ZyOqtD1WHnY=; fh=WwzKZuyFi/F+VmNIz+NPOftR+wclUc1MyRRZ7hHl7Aw=; b=OWLw3FIbRbYULTREMkfghXSm0o4CTnLf5tFSTBe1Ci0wLcybjo3Fb3q0kAKqGZUgy+ 4oOG0OODqEzruavC8wpU+lwGnGCJ2I8l+5cVXfhyKKZUnMDDMDqzYMXhX0dJUjratoI0 kv0sal/RJX96aimWwu1JHvTHFahkMmp0OpPTc8BnSEthr5B83X4lel+wYd3erkc+2o5C WAswJU0un1NdzXyizIJJYVgkcf7MepzeAnLGl8oXpzTILQJwWsG8O1K0CLqNOK3+Aaj2 zq0o7+0bJf53UUxYhdSdZL4ISj5SbtnS/hDKrXxlNPoPT/W1zfxxzzU46QQBEYB9KPVW cOOg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a170902684d00b001bba6128bf5si5999656pln.368.2023.07.30.10.33.13; Sun, 30 Jul 2023 10:33:25 -0700 (PDT) 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 S229526AbjG3Ql7 (ORCPT + 99 others); Sun, 30 Jul 2023 12:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjG3Ql6 (ORCPT ); Sun, 30 Jul 2023 12:41:58 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04651170D; Sun, 30 Jul 2023 09:41:57 -0700 (PDT) Received: from ipservice-092-217-095-237.092.217.pools.vodafone-ip.de ([92.217.95.237] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1qQ9UN-0003mQ-Lj; Sun, 30 Jul 2023 18:41:51 +0200 From: Martin Kaiser To: Abel Vesa , Stephen Boyd Cc: Shawn Guo , Fabio Estevam , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v6 1/2] clk: imx25: print silicon revision during init Date: Sun, 30 Jul 2023 18:39:27 +0200 Message-Id: <20230730163928.70637-2-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230730163928.70637-1-martin@kaiser.cx> References: <20220602080344.208702-1-martin@kaiser.cx> <20230730163928.70637-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Print the imx25 silicon revision when the clocks are initialised. Use the same mechanism as for imx27, i.e. call mx25_revision. This function is unused at the moment. Signed-off-by: Martin Kaiser Reviewed-by: Fabio Estevam Acked-by: Arnd Bergmann --- drivers/clk/imx/clk-imx25.c | 3 +++ include/soc/imx/revision.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/clk/imx/clk-imx25.c b/drivers/clk/imx/clk-imx25.c index cc013b343e62..bee3da2e21e1 100644 --- a/drivers/clk/imx/clk-imx25.c +++ b/drivers/clk/imx/clk-imx25.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "clk.h" @@ -220,6 +221,8 @@ static int __init __mx25_clocks_init(void __iomem *ccm_base) imx_register_uart_clocks(); + imx_print_silicon_rev("i.MX25", mx25_revision()); + return 0; } diff --git a/include/soc/imx/revision.h b/include/soc/imx/revision.h index b2a55dafaf0a..b122d2fc8881 100644 --- a/include/soc/imx/revision.h +++ b/include/soc/imx/revision.h @@ -22,6 +22,7 @@ #define IMX_CHIP_REVISION_3_3 0x33 #define IMX_CHIP_REVISION_UNKNOWN 0xff +int mx25_revision(void); int mx27_revision(void); int mx31_revision(void); int mx35_revision(void); -- 2.39.2