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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 831A4C433EF for ; Sat, 2 Apr 2022 22:06:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5AC2483989; Sun, 3 Apr 2022 00:05:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="I8XCelbs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2467F83931; Sun, 3 Apr 2022 00:05:28 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D5FB08395F for ; Sun, 3 Apr 2022 00:05:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EE3A960F29; Sat, 2 Apr 2022 22:05:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AC02C340F2; Sat, 2 Apr 2022 22:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648937119; bh=jbYhL+LA4X7ZeprwCUBrQIQcG9rzxJUTQUajwmVcgnc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I8XCelbsi2XhkAWAnKEV5LMjdsXyxfriba374gUcjqQ3zxfq5LLzlLdL0em2UYF8m gDdiFLN4X/1m14LCknhsZQ9z9YWyOgLTAzPzOwgbguUXIwAILgOwntvlLDu+pJpi26 fZ/hzIt6lp5QxPfgqMLkXCt5wKw9465ND/466k40pzXiqDBp1KgbOY45Z8kC5Yg8/J z4X2fiGCISewfo6Nr6Fs4QTkWUNMWmzxZUlcPXJBq3DtpIRv/RFRh3MpT7i3sp9omu ZUJ0boowkB/Dnw56NpB2JQRj3ZHB+XAxCUE0Iohq37sVuPtVzfV/7p0YNefUjnW/Rz joyRLfPpa1G8w== Received: by pali.im (Postfix) id F34122819; Sun, 3 Apr 2022 00:05:16 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain , Wolfgang Denk Cc: u-boot@lists.denx.de Subject: [PATCH 3/3] powerpc: mpc85xx: Show e500 core version Date: Sun, 3 Apr 2022 00:05:10 +0200 Message-Id: <20220402220510.17879-4-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220402220510.17879-1-pali@kernel.org> References: <20220402220510.17879-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Distinguish between e500v1 and e500v2. Signed-off-by: Pali Rohár --- arch/powerpc/cpu/mpc85xx/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c index cd32290410f6..261f79e40585 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu.c +++ b/arch/powerpc/cpu/mpc85xx/cpu.c @@ -143,8 +143,10 @@ int checkcpu (void) printf("Core: "); switch(ver) { case PVR_VER_E500_V1: + puts("e500v1"); + break; case PVR_VER_E500_V2: - puts("e500"); + puts("e500v2"); break; case PVR_VER_E500MC: puts("e500mc"); -- 2.20.1