From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 3F06EC433DB for ; Tue, 5 Jan 2021 01:33:14 +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 E9CB22072C for ; Tue, 5 Jan 2021 01:33:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9CB22072C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZYmcDFn6/Y0ih8PXthTzvI1BwqC+OmEbT/93342aUFo=; b=3GAYpRyl4HQq2QTxvE25RRMYz gYV3tMtZ7Auf3yyese+tcgDZIfWs0Z94mOZhwUfs6Ab96c39zv1fGWNTO31QAeTj/9K67kBIJ4P5h 0LrLaLkW1AYV452I/FMx24woAlQS/xsMEMPXgfGvZrAuFMNl1QzSkI3DaHkkRjYlOhL/Xkdms4NJW 3Auv6wGhkxdhqkHR4kHNZ44pVi3bPtU5m3qk4kkHq/MglA/o3I5S0siqovTK3P5Cq/IJQLYL15RxI dTfWlO+i/PsQ+QqncE2nc1w4ik0dN5ryNVZsb8Fi6Nz7AJLxagvHhxGO52y+RxNmQ8XdymIMGPWlI Kuo/TasFg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwbC6-0004It-1h; Tue, 05 Jan 2021 01:31:30 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwbC2-0004IL-EY for linux-arm-kernel@lists.infradead.org; Tue, 05 Jan 2021 01:31:27 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id EA60322581; Tue, 5 Jan 2021 01:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609810284; bh=QFdx03wrzTi2wygUDzfEa7Q6kFPO8u/HOvnbl3Or804=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=phip5SsEf8JF2eWhaB9m+mOtcp9WHOWLWR6e1hX1SXgpr4nsal0/4La5Nvjb5HPYc 6jsyDTzF5ilSTbgI1KAft/sQOPpeIZTR642Fs5BWyATp+quvorW+Xg1JTheEmTeTOS NiXrPr7Zm7n8ZMCO0zvaXEiZ+pMQrn0ALwp5cP3xjOYo/jqXrdXW/AOTZ0YyBRousn mhwR/rCg2D0LkW8DsIb6+0JrdZ7AH+cYdwEgV8h/70aa7xV1kWHs6IyAlWdvugIXyE 4DKp7ZKzobYD1/25tMAZb38JKUr1ebidfT5vhMMdDUqhKUyiAwfZG+ooEHmCr7EU4R qiZIXWC/wip4Q== Date: Tue, 5 Jan 2021 09:31:19 +0800 From: Shawn Guo To: Robert Karszniewicz Subject: Re: [PATCH 1/2] ARM: mach-imx: imx6ul: Print SOC revision on boot and set system_rev Message-ID: <20210105013118.GE4142@dragon> References: <1606151291-288303-1-git-send-email-r.karszniewicz@phytec.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1606151291-288303-1-git-send-email-r.karszniewicz@phytec.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210104_203126_585190_27FC0319 X-CRM114-Status: GOOD ( 18.65 ) 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 , Sascha Hauer , Russell King , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org 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 On Mon, Nov 23, 2020 at 06:08:10PM +0100, Robert Karszniewicz wrote: > 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 Considering we already have /sys/devices/soc0 providing these information, I do not this change is really necessary. Shawn > --- > 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