diff options
Diffstat (limited to 'include/asm-mips/sibyte/sb1250_defs.h')
-rw-r--r-- | include/asm-mips/sibyte/sb1250_defs.h | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/include/asm-mips/sibyte/sb1250_defs.h b/include/asm-mips/sibyte/sb1250_defs.h index 40ef97c76c8b..335dbaf1d831 100644 --- a/include/asm-mips/sibyte/sb1250_defs.h +++ b/include/asm-mips/sibyte/sb1250_defs.h | |||
@@ -8,8 +8,6 @@ | |||
8 | * | 8 | * |
9 | * SB1250 specification level: User's manual 1/02/02 | 9 | * SB1250 specification level: User's manual 1/02/02 |
10 | * | 10 | * |
11 | * Author: Mitch Lichtenberg | ||
12 | * | ||
13 | ********************************************************************* | 11 | ********************************************************************* |
14 | * | 12 | * |
15 | * Copyright 2000,2001,2002,2003 | 13 | * Copyright 2000,2001,2002,2003 |
@@ -97,13 +95,17 @@ | |||
97 | * ordering, so be careful when adding support for new minor revs. | 95 | * ordering, so be careful when adding support for new minor revs. |
98 | ********************************************************************* */ | 96 | ********************************************************************* */ |
99 | 97 | ||
100 | #define SIBYTE_HDR_FMASK_1250_ALL 0x00000ff | 98 | #define SIBYTE_HDR_FMASK_1250_ALL 0x000000ff |
101 | #define SIBYTE_HDR_FMASK_1250_PASS1 0x0000001 | 99 | #define SIBYTE_HDR_FMASK_1250_PASS1 0x00000001 |
102 | #define SIBYTE_HDR_FMASK_1250_PASS2 0x0000002 | 100 | #define SIBYTE_HDR_FMASK_1250_PASS2 0x00000002 |
103 | #define SIBYTE_HDR_FMASK_1250_PASS3 0x0000004 | 101 | #define SIBYTE_HDR_FMASK_1250_PASS3 0x00000004 |
102 | |||
103 | #define SIBYTE_HDR_FMASK_112x_ALL 0x00000f00 | ||
104 | #define SIBYTE_HDR_FMASK_112x_PASS1 0x00000100 | ||
104 | 105 | ||
105 | #define SIBYTE_HDR_FMASK_112x_ALL 0x0000f00 | 106 | #define SIBYTE_HDR_FMASK_1480_ALL 0x0000f000 |
106 | #define SIBYTE_HDR_FMASK_112x_PASS1 0x0000100 | 107 | #define SIBYTE_HDR_FMASK_1480_PASS1 0x00001000 |
108 | #define SIBYTE_HDR_FMASK_1480_PASS2 0x00002000 | ||
107 | 109 | ||
108 | /* Bit mask for chip/revision. (use _ALL for all revisions of a chip). */ | 110 | /* Bit mask for chip/revision. (use _ALL for all revisions of a chip). */ |
109 | #define SIBYTE_HDR_FMASK(chip, pass) \ | 111 | #define SIBYTE_HDR_FMASK(chip, pass) \ |
@@ -111,8 +113,17 @@ | |||
111 | #define SIBYTE_HDR_FMASK_ALLREVS(chip) \ | 113 | #define SIBYTE_HDR_FMASK_ALLREVS(chip) \ |
112 | (SIBYTE_HDR_FMASK_ ## chip ## _ALL) | 114 | (SIBYTE_HDR_FMASK_ ## chip ## _ALL) |
113 | 115 | ||
116 | /* Default constant value for all chips, all revisions */ | ||
114 | #define SIBYTE_HDR_FMASK_ALL \ | 117 | #define SIBYTE_HDR_FMASK_ALL \ |
118 | (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL \ | ||
119 | | SIBYTE_HDR_FMASK_1480_ALL) | ||
120 | |||
121 | /* This one is used for the "original" BCM1250/BCM112x chips. We use this | ||
122 | to weed out constants and macros that do not exist on later chips like | ||
123 | the BCM1480 */ | ||
124 | #define SIBYTE_HDR_FMASK_1250_112x_ALL \ | ||
115 | (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL) | 125 | (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL) |
126 | #define SIBYTE_HDR_FMASK_1250_112x SIBYTE_HDR_FMASK_1250_112x_ALL | ||
116 | 127 | ||
117 | #ifndef SIBYTE_HDR_FEATURES | 128 | #ifndef SIBYTE_HDR_FEATURES |
118 | #define SIBYTE_HDR_FEATURES SIBYTE_HDR_FMASK_ALL | 129 | #define SIBYTE_HDR_FEATURES SIBYTE_HDR_FMASK_ALL |
@@ -133,6 +144,12 @@ | |||
133 | #define SIBYTE_HDR_FEATURE_CHIP(chip) \ | 144 | #define SIBYTE_HDR_FEATURE_CHIP(chip) \ |
134 | (!! (SIBYTE_HDR_FMASK_ALLREVS(chip) & SIBYTE_HDR_FEATURES)) | 145 | (!! (SIBYTE_HDR_FMASK_ALLREVS(chip) & SIBYTE_HDR_FEATURES)) |
135 | 146 | ||
147 | /* True for all versions of the BCM1250 and BCM1125, but not true for | ||
148 | anything else */ | ||
149 | #define SIBYTE_HDR_FEATURE_1250_112x \ | ||
150 | (SIBYTE_HDR_FEATURE_CHIP(1250) || SIBYTE_HDR_FEATURE_CHIP(112x)) | ||
151 | /* (!! (SIBYTE_HDR_FEATURES & SIBYHTE_HDR_FMASK_1250_112x)) */ | ||
152 | |||
136 | /* True if header features enabled for that rev or later, inclusive. */ | 153 | /* True if header features enabled for that rev or later, inclusive. */ |
137 | #define SIBYTE_HDR_FEATURE(chip, pass) \ | 154 | #define SIBYTE_HDR_FEATURE(chip, pass) \ |
138 | (!! ((SIBYTE_HDR_FMASK(chip, pass) \ | 155 | (!! ((SIBYTE_HDR_FMASK(chip, pass) \ |