Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2201329imi; Sun, 24 Jul 2022 10:52:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vS16mUlz3KPyk1wRSXEwQ2QPneVJHj0D0ko489LhLTH87tr3I0fJSbL5XlcDY/NJS+10+J X-Received: by 2002:a17:90b:2496:b0:1ef:a94:7048 with SMTP id nt22-20020a17090b249600b001ef0a947048mr10473206pjb.244.1658685124897; Sun, 24 Jul 2022 10:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658685124; cv=none; d=google.com; s=arc-20160816; b=QTSuCKn03Lw8fNzu2Q0kaPKuctE0eHzGyKx08O0xJjx43TeAypGxAav9vuPX32Hq6J g7/A6PtHCwqp2m7fhKh1ABsQkowyKX0TZhrUNNurkXiPcFjJKeTxEXcRl1NpFp4ltBQ7 Qc8KCd1ie2epDgrKFrGfdfCj8ohFR2nL8o0iN8sgJ/tAVmkEC1khLaq1CGmszv3kepP8 y/QaidiPguKLuCCUqhmdqRj/zNtPL2/H024LpeyBQi9c4BgxXrpWH4UVH7w3QYB2XRTe EfxKAFLHPBHIALtes3rFf8C8nXMwqwcRO+F7eCeLk5zzVSUNW6KLEHMcJqnl7Fcpo1B0 +s0w== 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=bipMuL7m0Sh+IwOqFTRK+sQsAibQZZXtkS6Cffnt6+E=; b=ChG2bqjzuqHvsxX4GBt28s3LIsbeypMjMRcFC2nHBeMm4/4dHikPEOAVnKIMV8F8H7 18qx8VIpB4NbW77ZqOpKV1c3FHVjMVCvFz0f1bYY0VF5v6AXmos95F0AA4OLfT+PCA/J KVXexjuHyk4C0q/7vp/sdjc8KTvAZEdfQ3ZrLpaXb2zi91NXkqmEtZpE4j5gVfWxF+hU pXbB5/kjZ2tHBaeZwS8qnd6JWNuLDdBYqP+lzHXqLNkwbq6wMj3ZajfCEFVw7AHvp5xh 6yo15akq4KR0MPShGEZDRt6fMTi4D2wkFOZ3Kv2IxLgU92JzX1Ef9DC0U44i56Ujx0eA p16g== 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 o73-20020a17090a0a4f00b001ef881980d5si14190318pjo.29.2022.07.24.10.51.50; Sun, 24 Jul 2022 10:52:04 -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 S231318AbiGXRsv (ORCPT + 99 others); Sun, 24 Jul 2022 13:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiGXRsp (ORCPT ); Sun, 24 Jul 2022 13:48:45 -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 284D811463; Sun, 24 Jul 2022 10:48:45 -0700 (PDT) Received: from dslb-178-004-201-227.178.004.pools.vodafone-ip.de ([178.4.201.227] 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 1oFfiT-0005LM-Lg; Sun, 24 Jul 2022 19:48:33 +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 v3 1/2] clk: imx25: print silicon revision during init Date: Sun, 24 Jul 2022 19:47:36 +0200 Message-Id: <20220724174737.212028-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220724174737.212028-1-martin@kaiser.cx> References: <20220602080344.208702-1-martin@kaiser.cx> <20220724174737.212028-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 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 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 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