aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/sibyte/sb1250_defs.h
diff options
context:
space:
mode:
authorAndrew Isaacson <adi@broadcom.com>2005-10-20 02:55:11 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:32:45 -0400
commit4cbf2beac2265b3619be9c8e88ff4ff45b49d7c2 (patch)
treefa7701264e60759b080b7953bcfad081a51e63d2 /include/asm-mips/sibyte/sb1250_defs.h
parentd121ced21d79eab7726bfe6b1e33da4ae86072c0 (diff)
BCM1480 headers
Add header files for BCM1480/1280/1455/1255 family of chips, and update sb1250 headers which are shared by BCM1480 family. Signed-Off-By: Andy Isaacson <adi@broadcom.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org> diff --git a/include/asm-mips/sibyte/bcm1480_int.h b/include/asm-mips/sibyte/bcm1480_int.h new file mode 100644
Diffstat (limited to 'include/asm-mips/sibyte/sb1250_defs.h')
-rw-r--r--include/asm-mips/sibyte/sb1250_defs.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/include/asm-mips/sibyte/sb1250_defs.h b/include/asm-mips/sibyte/sb1250_defs.h
index 40ef97c76c8..f67f5a3381a 100644
--- a/include/asm-mips/sibyte/sb1250_defs.h
+++ b/include/asm-mips/sibyte/sb1250_defs.h
@@ -97,13 +97,17 @@
97 * ordering, so be careful when adding support for new minor revs. 97 * ordering, so be careful when adding support for new minor revs.
98 ********************************************************************* */ 98 ********************************************************************* */
99 99
100#define SIBYTE_HDR_FMASK_1250_ALL 0x00000ff 100#define SIBYTE_HDR_FMASK_1250_ALL 0x000000ff
101#define SIBYTE_HDR_FMASK_1250_PASS1 0x0000001 101#define SIBYTE_HDR_FMASK_1250_PASS1 0x00000001
102#define SIBYTE_HDR_FMASK_1250_PASS2 0x0000002 102#define SIBYTE_HDR_FMASK_1250_PASS2 0x00000002
103#define SIBYTE_HDR_FMASK_1250_PASS3 0x0000004 103#define SIBYTE_HDR_FMASK_1250_PASS3 0x00000004
104 104
105#define SIBYTE_HDR_FMASK_112x_ALL 0x0000f00 105#define SIBYTE_HDR_FMASK_112x_ALL 0x00000f00
106#define SIBYTE_HDR_FMASK_112x_PASS1 0x0000100 106#define SIBYTE_HDR_FMASK_112x_PASS1 0x00000100
107
108#define SIBYTE_HDR_FMASK_1480_ALL 0x0000f000
109#define SIBYTE_HDR_FMASK_1480_PASS1 0x00001000
110#define SIBYTE_HDR_FMASK_1480_PASS2 0x00002000
107 111
108/* Bit mask for chip/revision. (use _ALL for all revisions of a chip). */ 112/* Bit mask for chip/revision. (use _ALL for all revisions of a chip). */
109#define SIBYTE_HDR_FMASK(chip, pass) \ 113#define SIBYTE_HDR_FMASK(chip, pass) \
@@ -111,8 +115,17 @@
111#define SIBYTE_HDR_FMASK_ALLREVS(chip) \ 115#define SIBYTE_HDR_FMASK_ALLREVS(chip) \
112 (SIBYTE_HDR_FMASK_ ## chip ## _ALL) 116 (SIBYTE_HDR_FMASK_ ## chip ## _ALL)
113 117
118/* Default constant value for all chips, all revisions */
114#define SIBYTE_HDR_FMASK_ALL \ 119#define SIBYTE_HDR_FMASK_ALL \
120 (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL \
121 | SIBYTE_HDR_FMASK_1480_ALL)
122
123/* This one is used for the "original" BCM1250/BCM112x chips. We use this
124 to weed out constants and macros that do not exist on later chips like
125 the BCM1480 */
126#define SIBYTE_HDR_FMASK_1250_112x_ALL \
115 (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL) 127 (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL)
128#define SIBYTE_HDR_FMASK_1250_112x SIBYTE_HDR_FMASK_1250_112x_ALL
116 129
117#ifndef SIBYTE_HDR_FEATURES 130#ifndef SIBYTE_HDR_FEATURES
118#define SIBYTE_HDR_FEATURES SIBYTE_HDR_FMASK_ALL 131#define SIBYTE_HDR_FEATURES SIBYTE_HDR_FMASK_ALL
@@ -133,6 +146,12 @@
133#define SIBYTE_HDR_FEATURE_CHIP(chip) \ 146#define SIBYTE_HDR_FEATURE_CHIP(chip) \
134 (!! (SIBYTE_HDR_FMASK_ALLREVS(chip) & SIBYTE_HDR_FEATURES)) 147 (!! (SIBYTE_HDR_FMASK_ALLREVS(chip) & SIBYTE_HDR_FEATURES))
135 148
149/* True for all versions of the BCM1250 and BCM1125, but not true for
150 anything else */
151#define SIBYTE_HDR_FEATURE_1250_112x \
152 (SIBYTE_HDR_FEATURE_CHIP(1250) || SIBYTE_HDR_FEATURE_CHIP(112x))
153/* (!! (SIBYTE_HDR_FEATURES & SIBYHTE_HDR_FMASK_1250_112x)) */
154
136/* True if header features enabled for that rev or later, inclusive. */ 155/* True if header features enabled for that rev or later, inclusive. */
137#define SIBYTE_HDR_FEATURE(chip, pass) \ 156#define SIBYTE_HDR_FEATURE(chip, pass) \
138 (!! ((SIBYTE_HDR_FMASK(chip, pass) \ 157 (!! ((SIBYTE_HDR_FMASK(chip, pass) \