From patchwork Sun Jul 30 16:39:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 128250 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1595578vqg; Sun, 30 Jul 2023 10:25:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEdCYoEIKJELAHbBsKYnC/yCf69UrhNxuIF/obEiSKdaEVr7fdXqns8dzQEs63DA1m7T4IP X-Received: by 2002:aa7:df99:0:b0:522:1bdd:d41a with SMTP id b25-20020aa7df99000000b005221bddd41amr8155619edy.4.1690737927186; Sun, 30 Jul 2023 10:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690737927; cv=none; d=google.com; s=arc-20160816; b=hhdp7Bk0xVaAAC8VPYXoEai06rGv29EEKvtstQSOdB9UuVI0ouYdcOxVPeblTRJjUK 9EFs1X1jkad66NHCMCG0l3vZFgq9HHgQqdU41g8c/yTzFHFcnsYAsiMVcsFxmzopEQR8 RPo+bgkPyD2WjP3T/R7/lUH5JLrytg3vJ3jKxzDDiy7MhIrWNK7WzgVtHZ1WMEbCcnll vwffHm/zraV+GejufsdM8M9v5LfvcI5ll5LatDlqy1T0WXvzJ8cvux3lciViJMRzqBdf 4SKAy5+GAeDaQNB6pqQTfScfcmp7rlEh1as3duyzAUitH3wRB8hw6JibxtUDTQsjzuId NQ3Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h25-20020aa7c619000000b005222c082b54si5475903edq.437.2023.07.30.10.25.03; Sun, 30 Jul 2023 10:25:27 -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 S229529AbjG3Ql7 (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772867212585283318 X-GMAIL-MSGID: 1772867212585283318 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);