Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B316C63697 for ; Mon, 23 Nov 2020 17:09:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B8FF6206B6 for ; Mon, 23 Nov 2020 17:09:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jncwdsE8"; dkim=temperror (0-bit key) header.d=phytec.de header.i=@phytec.de header.b="l6nLbDXL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B8FF6206B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=FTm6IV6L4aqFVbRmBDRI3FDqcdyGd6KO3VounEslhIA=; b=jncwdsE8HsDGGGFAJjmrDQOw+D wriMBGQdSvV3S49aqDdY8hxCxH6BN8RjUyKhfVp3LK7LvP6kq1WB2DOhJHEXEh724C7gobvkAX0PX Ad6KqNSB2GxvxShgYHtP0+nwBevVk52wpPt2ykl+DO21VC7QQOBtXLhOXdf5u4BHJ4o3z2P/1Wj18 4jZH7A9rOdLv8RHIpn85OUmBKKoAPE65gaEJfmegUES20dOy1lBCOn9Va/qN+sk8MsUkKtfYF169J zLzzhRbKZk5EZw+cwW1r63N3EzSZFQ7fgq4+4C1lPAGemVn3UhkTj56UJjN+AfjMwG6i357j82Y50 dHWqmH8g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khFK5-00006j-Vo; Mon, 23 Nov 2020 17:08:18 +0000 Received: from mickerik.phytec.de ([195.145.39.210]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khFK2-00005S-E4 for linux-arm-kernel@lists.infradead.org; Mon, 23 Nov 2020 17:08:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a1; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1606151291; x=1608743291; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xtcYlgDPBnYTibYqi1pcif28PsM+ASrwycZbXplQFuw=; b=l6nLbDXLxbiVCncSP/ccAVlv5/2ZApbYrOediSUWrBXlYOyaqMQwbqQqcRIehybG TNgoZJkJXsrm52H+83Pp+zIc9Z45l6NutAm/NRcccHaPMMvvZ5LgKGFr5/JggTZE f1NE1d6Mmx7QlaEhOhHgEw7Nq3c+R0Tbl1RcXymlp04=; X-AuditID: c39127d2-6dfff70000001abf-24-5fbbec7b6408 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 8F.A1.06847.B7CEBBF5; Mon, 23 Nov 2020 18:08:11 +0100 (CET) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2020112318081137-846708 ; Mon, 23 Nov 2020 18:08:11 +0100 From: Robert Karszniewicz To: Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] ARM: mach-imx: imx6ul: Print SOC revision on boot and set system_rev Date: Mon, 23 Nov 2020 18:08:10 +0100 Message-Id: <1606151291-288303-1-git-send-email-r.karszniewicz@phytec.de> X-Mailer: git-send-email 2.7.4 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 23.11.2020 18:08:11, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 23.11.2020 18:08:11, Serialize complete at 23.11.2020 18:08:11 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHJMWRmVeSWpSXmKPExsWyRoCBS7f6ze54g8e7tSy2z0y2eHjV32LV 1J0sFpseX2O16Pq1ktni0NS9jBY/Vn1htfi7fROLxYst4g6cHpevXWT22DnrLrvHplWdbB6b l9R7bHy3g8mj/69BAFsUl01Kak5mWWqRvl0CV8av3+tZCt5yVqya/4m5gXEtRxcjB4eEgInE lkfpXYxcHEICWxklfqz7ydTFyAnknGeUuPbdAsRmA6rZ3XyLGaReRKBA4uQzD5B6ZoF+Jonj q/Yxg9QIC0RKfGq6BFbDIqAqsWqXehcjOwevgKfETnuQAgkBOYmb5zqZQTolBBqZJH41v2eC SAhJnF58lnkCI88CRoZVjEK5mcnZqUWZ2XoFGZUlqcl6KambGIFhdHii+qUdjH1zPA4xMnEw HmKU4GBWEuFtldsZL8SbklhZlVqUH19UmpNafIhRmoNFSZx3A29JmJBAemJJanZqakFqEUyW iYNTqoGx5/3Jrnu1ji9i9F0Oh5WuZWnZEvjDgKdtokebAbOkt8fCYO100R+FPGf6DQMSdmv+ /M5hk26U/1LHYpar5Luod9cmOnEYyp2aulC4hzk/81u4gMfCnuaTQXd4T33Y+etl8tm4iSc+ 3JSqTtwWvSH009QLrn6TPwv/41/z+AFT4yzjwJhnc38qsRRnJBpqMRcVJwIAU2+71BECAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201123_120814_713997_A00CA788 X-CRM114-Status: GOOD ( 14.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , Stefan Riedmueller , Anson Huang , Russell King , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Stefan Riedmueller Add the print of the CPU type and SOC revision during boot and also set the system_rev variable to the SOC revision so the correct SOC revision will be shown in /proc/cpuinfo. Signed-off-by: Stefan Riedmueller Signed-off-by: Robert Karszniewicz --- arch/arm/mach-imx/mach-imx6ul.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index e018e716735f..9c92cc72b857 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -11,9 +11,11 @@ #include #include #include +#include #include "common.h" #include "cpuidle.h" +#include "hardware.h" static void __init imx6ul_enet_clk_init(void) { @@ -55,6 +57,10 @@ static inline void imx6ul_enet_init(void) static void __init imx6ul_init_machine(void) { + system_rev = imx_get_soc_revision(); + imx_print_silicon_rev(cpu_is_imx6ull() ? "i.MX6ULL" : "i.MX6UL", + system_rev); + of_platform_default_populate(NULL, NULL, NULL); imx6ul_enet_init(); imx_anatop_init(); -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel