Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2392289rwd; Wed, 17 May 2023 09:17:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4i3w0g9/fJ8mjOO1PmEvggha3tfnsK4/EtHHHC9YvxT7G4uH1fjn9ur3GD4gERZQ97XZin X-Received: by 2002:a05:6a20:8e13:b0:101:73a9:1683 with SMTP id y19-20020a056a208e1300b0010173a91683mr39764799pzj.33.1684340268464; Wed, 17 May 2023 09:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684340268; cv=none; d=google.com; s=arc-20160816; b=dCG730BfIAgTZihBSeC69+KiNJYtPAx4VwsCQZQiCjWLlPP5gye8ST50iaVOF5F9He wQglR6Ex8ioIagYqE/+C89WN32KmH5Q0+4JexyOfI/YX0T4+FNKyPyeI4i0msvQukWiG SGnfdVcJgHLpz+tK0Jm0MfES1x/MAw+B9nFvavRTEpixEtVoypJy5JzHF/mOHsHwAnQ0 fULFkLEldLogTfNjfHtLL6A947s/SrMpK98RA4DTuFLqDkkSvNzt5itCdvgL48wFXTeE 6ulsgAqv9DgbXIyZxY21r6zyIwj8IVhoh6R/1nH5m9RcS9YTraiNGYmE9SIo8Vt/9BYM NtpQ== 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=1JhVa5qnGK0IyWjwb2I5Rvt8U0fymSmO/6pgDoQHM8A=; b=XIZxrpENUHYld5MUknDLLTaFvJ+AllWO6Q1TdlM0xVRRwmNtEhwL1gHIuk4MdJ43Li Reb7IqhHdrs5uf6Md+Uwtq1GQSDTpdqT6RwSdZXka5Ul2QKqddLSNPjLadE+IaPjiGk8 SqKrDMrRNUAXy0RhG9FjTuQen5ECjxlOPkeWs94zQHeP4MOoxsoMj9VXwl1+IjBLQCab RrmWuvidgJZiV7i+MMOvOjVZ5ZMm8bT2eG2r2NkTLMZRnF11k+fpwgpTREerT6+eGiFj VJqbMWZKi4IRqKPrsIoIYlDNS3eYhcEB9uMBIJbAo4pg4awDECr9SAvKS0z3rmmU97MT XXRg== 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 p11-20020aa79e8b000000b00646cda8fe3bsi10646433pfq.81.2023.05.17.09.17.35; Wed, 17 May 2023 09:17:48 -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 S229727AbjEQQOz (ORCPT + 99 others); Wed, 17 May 2023 12:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjEQQOy (ORCPT ); Wed, 17 May 2023 12:14:54 -0400 X-Greylist: delayed 2033 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 17 May 2023 09:14:51 PDT 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 4F2637AA9; Wed, 17 May 2023 09:14:51 -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_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1pzJGh-0004yN-0U; Wed, 17 May 2023 17:40:47 +0200 From: Martin Kaiser To: Abel Vesa , Stephen Boyd Cc: Shawn Guo , Pengutronix Kernel Team , Fabio Estevam , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v5 1/2] clk: imx25: print silicon revision during init Date: Wed, 17 May 2023 17:39:31 +0200 Message-Id: <20230517153932.172081-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230517153932.172081-1-martin@kaiser.cx> References: <20220815190748.102664-1-martin@kaiser.cx> <20230517153932.172081-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 Reviewed-by: Fabio Estevam --- changes in v5: - rebase against today's linux-next changes in v4: - rebase against today's linux-next - add Fabio's Reviewed-by tag changes in v3: - rebase against today's linux-next 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 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.30.2