Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1332386rwo; Wed, 2 Aug 2023 12:14:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlGOZ28ZEJjH93qFAjhaCk6Xpj9aUag1ro7SdDAzzUxq6Cxc3dSIdBcA79mDF03i7b/XaAQM X-Received: by 2002:adf:f04e:0:b0:316:fc63:dfed with SMTP id t14-20020adff04e000000b00316fc63dfedmr5328496wro.39.1691003681112; Wed, 02 Aug 2023 12:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691003681; cv=none; d=google.com; s=arc-20160816; b=WLsA6RlsfOjfIFlwEE57EXk8B12gUhzffjG8f4T/a1mf+qfLKiW3H5iyrQuucSeSEs 3ma6PiSx8GEbizRbGIChi2X8Rv+pKPEKXCx2GY6f4dOphBYZ8i7RvPrS4NNe1KTHtIU6 h+oVkqgmJ83OBnBkwBcoosTxRISYzpgxZPtzCaGWDDMjH8o1/kYATVQFi0KJcLK75wH7 xizOGxIThX71EAAI10htrj8CbbXD/N7JjJyGN1LYSAu7IAMjmqqmwJW21kbXxONo7/ku HJGCyB+pNEydI3CKgCvdzJHp9tIwZDTTiFQcAVKGqDGdJgagwNDN1ahd35TLDsqujEZm irDg== 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=I90LJo0Qvr0m8Tixppw/bWGpHsIXXjsTyEab2KhJc7o=; fh=JPZv9Z+p5Faf1JjpYqTkHdhcUHXxCguhgPx2Rny6gR0=; b=aUFgIXjBUjEafhNCSKeAjgXeZ4ZZtmtG7HiEnay5jddOhSKN7Km1B6Q0I/vehzDAph 6i3Qvel0uHgFJ5UTcCHPsWCm2zVvGvZgiOVSbKSjQ+AgfXmFjo4Qcs5/d0kd1ojziAR/ Nxscp1+B1EPfaG4dEr+Cv3PLp9GAJjyRiYRuUiArONeL1LFWYH8b+AlV+/gmlsIfRkfR 9U7d3o2VG3qs2+CP6vKJ+2Y5XSgTAUbWCgz0GDO9cqEhwOUnQQ2S3EBRUbQeTCzEZ+o4 RgdjecPHr8y5JS4Yo4VnnGDJE7Jz0XYFsx+Is8nf9qqlrgIFRZqPNB6TZJWFxXMEgL58 Osew== 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 sb9-20020a170906edc900b009937af8ac4asi6430308ejb.241.2023.08.02.12.14.16; Wed, 02 Aug 2023 12:14:41 -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 S231277AbjHBSnj (ORCPT + 99 others); Wed, 2 Aug 2023 14:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbjHBSng (ORCPT ); Wed, 2 Aug 2023 14:43:36 -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 BBF1E1BC1; Wed, 2 Aug 2023 11:43:35 -0700 (PDT) Received: from dslb-094-219-037-101.094.219.pools.vodafone-ip.de ([94.219.37.101] 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 1qRGoh-0003Eh-8u; Wed, 02 Aug 2023 20:43:27 +0200 From: Martin Kaiser To: Arnd Bergmann , Abel Vesa , Stephen Boyd Cc: Shawn Guo , linux-imx@nxp.com, Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v7 1/2] clk: imx25: print silicon revision during init Date: Wed, 2 Aug 2023 20:40:45 +0200 Message-Id: <20230802184046.153394-2-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230802184046.153394-1-martin@kaiser.cx> References: <20230802184046.153394-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 Acked-by: Stephen Boyd --- 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