diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-03-16 19:20:35 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-06 23:30:37 +0300 |
commit | fdef3895a03eb45245215eb319fbbbf519d3759c (patch) | |
tree | 9298244da98793f09390dd5a21e80021ec5e9947 /arch/powerpc/cpu | |
parent | 374a0e306e05985a2b949713b2e80d60a6268395 (diff) | |
download | u-boot-fdef3895a03eb45245215eb319fbbbf519d3759c.tar.xz |
powerpc: mpc8xx: get rid of the multiple PVR_ values
Avoid hardcoding the PVR values in C since they are defined
in processor.h
At the same time, remove those multiple PVR values for 8xx and
keep only one that we call PVR_8xx
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r-- | arch/powerpc/cpu/mpc8xx/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/cpu.c b/arch/powerpc/cpu/mpc8xx/cpu.c index 9da73ac22e..5a81bed5a1 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) | |