Message ID | fccddebeb0481c6d9692489ab7c52a345bf3a6b7.1520334961.git.christophe.leroy@c-s.fr |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=c-s.fr Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zwbJL4149z9sZj for <incoming@patchwork.ozlabs.org>; Tue, 6 Mar 2018 23:12:50 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 28C3AC21DF3; Tue, 6 Mar 2018 12:09:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4EC1FC21EA1; Tue, 6 Mar 2018 12:07:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 16A13C21EB9; Tue, 6 Mar 2018 12:06:53 +0000 (UTC) Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by lists.denx.de (Postfix) with ESMTPS id E6FD5C21E7D for <u-boot@lists.denx.de>; Tue, 6 Mar 2018 12:06:49 +0000 (UTC) Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 3zwb9F49Hfz9ttwP; Tue, 6 Mar 2018 13:06:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id fk-29VFHi4Cr; Tue, 6 Mar 2018 13:06:41 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 3zwb9F3hsnz9ttCq; Tue, 6 Mar 2018 13:06:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 88BEB8B7FC; Tue, 6 Mar 2018 13:06:49 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id ZYd-XMmOmSBb; Tue, 6 Mar 2018 13:06:49 +0100 (CET) Received: from po15720vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.5]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 634D88B7E1; Tue, 6 Mar 2018 13:06:49 +0100 (CET) Received: by po15720vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 35FFB6F0E5; Tue, 6 Mar 2018 13:06:49 +0100 (CET) Message-Id: <fccddebeb0481c6d9692489ab7c52a345bf3a6b7.1520334961.git.christophe.leroy@c-s.fr> In-Reply-To: <cover.1520334961.git.christophe.leroy@c-s.fr> References: <cover.1520334961.git.christophe.leroy@c-s.fr> From: Christophe Leroy <christophe.leroy@c-s.fr> To: Tom Rini <trini@konsulko.com> Date: Tue, 6 Mar 2018 13:06:49 +0100 (CET) Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v3 13/15] powerpc: mpc8xx: use PVR related defines and macros X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
Powerpc: mpc8xx: cleanup before migration to DM model
|
expand
|
diff --git a/arch/powerpc/cpu/mpc8xx/cpu.c b/arch/powerpc/cpu/mpc8xx/cpu.c index c5669e6a8e0..07139544156 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu.c +++ b/arch/powerpc/cpu/mpc8xx/cpu.c @@ -42,7 +42,7 @@ static int check_CPU(long clock, uint pvr, uint immr) /* the highest 16 bits should be 0x0050 for a 860 */ - if ((pvr >> 16) != 0x0050) + if (PVR_VER(pvr) != PVR_VER(PVR_8xx)) return -1; k = (immr << 16) |
Avoid hardcoding the PVR values in C since they are defined in processor.h Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> --- arch/powerpc/cpu/mpc8xx/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)