Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5598574iog; Thu, 23 Jun 2022 01:07:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1utF3R8NWWfC9tVkM2Ks0p6s8jAZetRPUOTmnEjq0qILhdeK6p7TZXHzW7CIawNI7e6BZjC X-Received: by 2002:a17:906:39d1:b0:6fa:8e62:c8a2 with SMTP id i17-20020a17090639d100b006fa8e62c8a2mr7057512eje.487.1655971679088; Thu, 23 Jun 2022 01:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655971679; cv=none; d=google.com; s=arc-20160816; b=LsXlx6Djdis28NLbbF9ip3IciXhcVob9hH3Zl3h2gnfHkWw+8aFprwmpUKqoHZ64ur l1Wsz/UEGZgrRbsLFr4XUi9g+8jSgMIKtbFXCQY04Fjkz3hoNgemFaKQefYSub67Tk7t Bv2V36Lh740uclzxPZ+XwYpqlF7OkA4Ic8gPfW7NLdP0gbHZi5wcZKodUEj0h4yXsoed 57x+rmAOGB/w7IVdwv+ul139rW5Xhc01Bo4oU/luiD/bXCt6Cqhu1CdIQiX1S0q9qbFX 6xFbM1IItenPUirlSwAdFqSgDP5ut58ROGYJpI7QkaQr0Y9bN3L2xewJ2zYWnDkRTOED Y9KA== 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=jcPzUXrdJxABPvphB6ML2OHwazL/1B2NrUk9cEn9/wc=; b=XFOHyF7T4F5VIFpJIV6MlPrSMJgFIvB5+ZjyjszOyCwVZg6zS4XTQe5TpTrjbD1Gmo GrwEil0ETeXZAm0SjTMkSuMxyEizHfQD542jA5LZeow1j7a+sja+sZNksGdYASiy3vR3 CgNO8Lwyp2Mdcy04L5GZwnzc1G0xrooJSQO7LFjiC318bbtnPFpv9VqqQ3ijDFHKRqHw qEnBMku8KnLhhIMtiuhAAKyXEvIW1kIbFCNc+/FCL3N5Bm66OvU9MDVvdidv72/Y1MAO WC7KeSVsD/FPdFaDpyLf9vhvqBH+qI7G+y86gLpVYmVjr2cLIQCacZLpZSW4weJIAK4e TIVw== 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 i2-20020aa7c702000000b00435828bf0f8si2652713edq.116.2022.06.23.01.07.32; Thu, 23 Jun 2022 01:07:59 -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 S229948AbiFWHvv (ORCPT + 99 others); Thu, 23 Jun 2022 03:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbiFWHvs (ORCPT ); Thu, 23 Jun 2022 03:51:48 -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 E0F7D2CE0E; Thu, 23 Jun 2022 00:51:47 -0700 (PDT) Received: from dslb-188-096-142-050.188.096.pools.vodafone-ip.de ([188.96.142.50] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1o4Hcr-0006sS-JZ; Thu, 23 Jun 2022 09:51:41 +0200 From: Martin Kaiser To: Abel Vesa , Stephen Boyd Cc: Shawn Guo , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v2 1/2] clk: imx25: print silicon revision during init Date: Thu, 23 Jun 2022 09:51:03 +0200 Message-Id: <20220623075104.166529-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220623075104.166529-1-martin@kaiser.cx> References: <20220602080344.208702-1-martin@kaiser.cx> <20220623075104.166529-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_NONE,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 --- changes in v2: - send the patch to the clk maintainers 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 66192fe0a898..263409fca1eb 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(6); + 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.30.2