xref: /openbmc/linux/arch/powerpc/include/asm/mpc85xx.h (revision b34e08d5)
1 /*
2  * MPC85xx cpu type detection
3  *
4  * Copyright 2011-2012 Freescale Semiconductor, Inc.
5  *
6  * This is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  */
11 
12 #ifndef __ASM_PPC_MPC85XX_H
13 #define __ASM_PPC_MPC85XX_H
14 
15 #define SVR_REV(svr)	((svr) & 0xFF)		/* SOC design resision */
16 #define SVR_MAJ(svr)	(((svr) >>  4) & 0xF)	/* Major revision field*/
17 #define SVR_MIN(svr)	(((svr) >>  0) & 0xF)	/* Minor revision field*/
18 
19 /* Some parts define SVR[0:23] as the SOC version */
20 #define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFF7FF)	/* SOC Version fields */
21 
22 #define SVR_8533	0x803400
23 #define SVR_8535	0x803701
24 #define SVR_8536	0x803700
25 #define SVR_8540	0x803000
26 #define SVR_8541	0x807200
27 #define SVR_8543	0x803200
28 #define SVR_8544	0x803401
29 #define SVR_8545	0x803102
30 #define SVR_8547	0x803101
31 #define SVR_8548	0x803100
32 #define SVR_8555	0x807100
33 #define SVR_8560	0x807000
34 #define SVR_8567	0x807501
35 #define SVR_8568	0x807500
36 #define SVR_8569	0x808000
37 #define SVR_8572	0x80E000
38 #define SVR_P1010	0x80F100
39 #define SVR_P1011	0x80E500
40 #define SVR_P1012	0x80E501
41 #define SVR_P1013	0x80E700
42 #define SVR_P1014	0x80F101
43 #define SVR_P1017	0x80F700
44 #define SVR_P1020	0x80E400
45 #define SVR_P1021	0x80E401
46 #define SVR_P1022	0x80E600
47 #define SVR_P1023	0x80F600
48 #define SVR_P1024	0x80E402
49 #define SVR_P1025	0x80E403
50 #define SVR_P2010	0x80E300
51 #define SVR_P2020	0x80E200
52 #define SVR_P2040	0x821000
53 #define SVR_P2041	0x821001
54 #define SVR_P3041	0x821103
55 #define SVR_P4040	0x820100
56 #define SVR_P4080	0x820000
57 #define SVR_P5010	0x822100
58 #define SVR_P5020	0x822000
59 #define SVR_P5021	0X820500
60 #define SVR_P5040	0x820400
61 #define SVR_T4240	0x824000
62 #define SVR_T4120	0x824001
63 #define SVR_T4160	0x824100
64 #define SVR_C291	0x850000
65 #define SVR_C292	0x850020
66 #define SVR_C293	0x850030
67 #define SVR_B4860	0X868000
68 #define SVR_G4860	0x868001
69 #define SVR_G4060	0x868003
70 #define SVR_B4440	0x868100
71 #define SVR_G4440	0x868101
72 #define SVR_B4420	0x868102
73 #define SVR_B4220	0x868103
74 #define SVR_T1040	0x852000
75 #define SVR_T1041	0x852001
76 #define SVR_T1042	0x852002
77 #define SVR_T1020	0x852100
78 #define SVR_T1021	0x852101
79 #define SVR_T1022	0x852102
80 
81 #define SVR_8610	0x80A000
82 #define SVR_8641	0x809000
83 #define SVR_8641D	0x809001
84 
85 #define SVR_9130	0x860001
86 #define SVR_9131	0x860000
87 #define SVR_9132	0x861000
88 #define SVR_9232	0x861400
89 
90 #define SVR_Unknown	0xFFFFFF
91 
92 #endif
93