From patchwork Wed Dec 9 17:20:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Karszniewicz X-Patchwork-Id: 11961973 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 B6016C433FE for ; Wed, 9 Dec 2020 17:21:51 +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 7300123C92 for ; Wed, 9 Dec 2020 17:21:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7300123C92 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=NTadZyurOqH/UR3CGQGJkMNmNj83nEvI/WDElhLBP7w=; b=JYsDaQLQFpgB0fkJN3Z0gR//zB wOI8uHAnXKqebe09gqe1PV/USbFb3/tdcjo9pEFnyheXp+TrXUcus3FEhQIGCg9TzD3EGq7E2jW5W H7aB9f9OUnAL0nEfviRW5QI+JOVmsbCv+15ix05BsgPH+dMJX6/rxvTI+AtxjOp/2qQdVzWnhuoMX DMKqAQw5mu6hqAcbTkZu9VPtGwXKeNZKjpxUrEDt8dm541jpPScAe8KHE/GBt1T9D+MYfOCGF63Ul lLNJHQp6qeNOVOkosVKSHs23CLUJa6tJ7+pnuoUXczZcMqvKnuD6zIvT7ITT3U5ybLjkGvFDrnBuv uwc9ugNA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kn38g-0006qu-BD; Wed, 09 Dec 2020 17:20:30 +0000 Received: from mickerik.phytec.de ([195.145.39.210]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kn38c-0006qN-UL for linux-arm-kernel@lists.infradead.org; Wed, 09 Dec 2020 17:20:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a1; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1607534423; x=1610126423; 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=QlP135Dll114xJdDQNQiGLBmcIy/rcUoHgqe/abfwGw=; b=o1IDxeHGrk0prcNblElpvfDQMaEYT0X5VooVhykaY17gQQeAHuNGz+m7SKmzW4w0 d98wTuPMSOdKIxKl0610WI7zGpyKCIsDW2blODtV8mycNjqvc389cDM1aJiHVXpK 2V4hL4iwq0hljpxBwVlt+qE4LkUDP2jJHnf8WWTIHwc=; X-AuditID: c39127d2-981ff70000006435-0c-5fd1075721f4 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 69.F8.25653.75701DF5; Wed, 9 Dec 2020 18:20:23 +0100 (CET) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2020120918202304-948394 ; Wed, 9 Dec 2020 18:20:23 +0100 From: Robert Karszniewicz To: Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: mach-imx: imx6ul: Print SOC revision on boot Date: Wed, 9 Dec 2020 18:20:23 +0100 Message-Id: <1607534423-158503-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 09.12.2020 18:20:23, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 09.12.2020 18:20:23, Serialize complete at 09.12.2020 18:20:23 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpiluLIzCtJLcpLzFFi42JZI8DApRvOfjHeYMIkFYvtM5MtHl71t1g1 dSeLxabH11gtun6tZLY4NHUvo8WPVV9YLf5u38Ri8WKLuAOnx+VrF5k9ds66y+6xaVUnm8fm JfUeG9/tYPLo/2sQwBbFZZOSmpNZllqkb5fAlfHz+G72gsfsFRv3z2JsYDzL1sXIwSEhYCJx 9mVWFyMXh5DAVkaJ+wtbWSCcc4wSi3vPsHYxcnKwARXtbr7FDNIgIlAgcfKZB0gNs8B+Jomr r3rBaoQFnCS+3j8GZrMIqEhcvruYEcTmFfCU2LbvDROILSEgJ3HzXCczSLOEQCOTxLrtR9kh EkISpxefZZ7AyLOAkWEVo1BuZnJ2alFmtl5BRmVJarJeSuomRmA4HZ6ofmkHY98cj0OMTByM hxglOJiVRHjVpM7GC/GmJFZWpRblxxeV5qQWH2KU5mBREufdwFsSJiSQnliSmp2aWpBaBJNl 4uCUamBceMf9VcHtvoVnLOvlnjnOeuBjlrBh2QX1z/8WeMzR3L/io6XWde43TBzVSS80p8rL V6ucWlQZclNXewm3rdJFjTfTdk71qwnnzZAIffpboqna2oNT/b2t+9czDvdSVzCmn3vQtFn/ 5dHfIRHbdF6uiPDaca9q1gbtCGH3eUsO6f7eXDyl7ES6EktxRqKhFnNRcSIAOuxM6RUCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201209_122027_237021_E71B838B X-CRM114-Status: GOOD ( 12.91 ) 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 , Robert Karszniewicz , Fabio Estevam MIME-Version: 1.0 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. Signed-off-by: Stefan Riedmueller Signed-off-by: Robert Karszniewicz --- arch/arm/mach-imx/mach-imx6ul.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index e018e716735f..fb6d164a49f4 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -14,6 +14,7 @@ #include "common.h" #include "cpuidle.h" +#include "hardware.h" static void __init imx6ul_enet_clk_init(void) { @@ -55,6 +56,9 @@ static inline void imx6ul_enet_init(void) static void __init imx6ul_init_machine(void) { + imx_print_silicon_rev(cpu_is_imx6ull() ? "i.MX6ULL" : "i.MX6UL", + imx_get_soc_revision()); + of_platform_default_populate(NULL, NULL, NULL); imx6ul_enet_init(); imx_anatop_init();