aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2008-08-19 13:50:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-29 16:24:05 -0400
commit095f695cbb07281682462da0618fffabb499d0be (patch)
treeb46e86b862d0c5928cc1829f22ebef1b57ecfc14 /include
parent2f58bbf27fe5321a7a208be9071efc54e8a8a3bd (diff)
ssb: Update for Rev. 5 SPROM
Although a revision 5 SPROM has not been seen in the wild, the open-source portion of the MIPS driver 4.150.10.5 describes its layout, which is mostly inherited from revision 4. This patch implements the differences. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Acked-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ssb/ssb_regs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb_regs.h b/include/linux/ssb/ssb_regs.h
index ebad0bac9801..271bb4b6446e 100644
--- a/include/linux/ssb/ssb_regs.h
+++ b/include/linux/ssb/ssb_regs.h
@@ -316,6 +316,21 @@
316#define SSB_SPROM4_PA1B1 0x1090 316#define SSB_SPROM4_PA1B1 0x1090
317#define SSB_SPROM4_PA1B2 0x1092 317#define SSB_SPROM4_PA1B2 0x1092
318 318
319/* SPROM Revision 5 (inherits most data from rev 4) */
320#define SSB_SPROM5_BFLLO 0x104A /* Boardflags (low 16 bits) */
321#define SSB_SPROM5_BFLHI 0x104C /* Board Flags Hi */
322#define SSB_SPROM5_IL0MAC 0x1052 /* 6 byte MAC address for a/b/g/n */
323#define SSB_SPROM5_CCODE 0x1044 /* Country Code (2 bytes) */
324#define SSB_SPROM5_GPIOA 0x1076 /* Gen. Purpose IO # 0 and 1 */
325#define SSB_SPROM5_GPIOA_P0 0x00FF /* Pin 0 */
326#define SSB_SPROM5_GPIOA_P1 0xFF00 /* Pin 1 */
327#define SSB_SPROM5_GPIOA_P1_SHIFT 8
328#define SSB_SPROM5_GPIOB 0x1078 /* Gen. Purpose IO # 2 and 3 */
329#define SSB_SPROM5_GPIOB_P2 0x00FF /* Pin 2 */
330#define SSB_SPROM5_GPIOB_P3 0xFF00 /* Pin 3 */
331#define SSB_SPROM5_GPIOB_P3_SHIFT 8
332
333
319/* Values for SSB_SPROM1_BINF_CCODE */ 334/* Values for SSB_SPROM1_BINF_CCODE */
320enum { 335enum {
321 SSB_SPROM1CCODE_WORLD = 0, 336 SSB_SPROM1CCODE_WORLD = 0,