mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
374a0e306e
commit
fdef3895a0
2 changed files with 3 additions and 5 deletions
|
@ -42,7 +42,7 @@ static int check_CPU(long clock, uint pvr, uint immr)
|
||||||
|
|
||||||
/* the highest 16 bits should be 0x0050 for a 860 */
|
/* the highest 16 bits should be 0x0050 for a 860 */
|
||||||
|
|
||||||
if ((pvr >> 16) != 0x0050)
|
if (PVR_VER(pvr) != PVR_VER(PVR_8xx))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
k = (immr << 16) |
|
k = (immr << 16) |
|
||||||
|
|
|
@ -973,10 +973,8 @@
|
||||||
* differentiated by the version number in the Communication Processor
|
* differentiated by the version number in the Communication Processor
|
||||||
* Module (CPM).
|
* Module (CPM).
|
||||||
*/
|
*/
|
||||||
#define PVR_821 0x00500000
|
#define PVR_8xx 0x00500000
|
||||||
#define PVR_823 PVR_821
|
|
||||||
#define PVR_850 PVR_821
|
|
||||||
#define PVR_860 PVR_821
|
|
||||||
#define PVR_7400 0x000C0000
|
#define PVR_7400 0x000C0000
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue