summaryrefslogtreecommitdiff
path: root/include/linux/ssb/ssb_regs.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-03-31 23:59:21 +0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-26 21:51:08 +0400
commitea2db495f92ad2cf3301623e60cb95b4062bc484 (patch)
tree7cbfbc413f573673fc802fc44919ebbfcb5239ef /include/linux/ssb/ssb_regs.h
parentd53cdbb94a52a920d5420ed64d986c3523a56743 (diff)
downloadlinux-ea2db495f92ad2cf3301623e60cb95b4062bc484.tar.xz
ssb: Look for SPROM at different offset on higher rev CC
Our offset handling becomes even a little more hackish now. For some reason I do not understand all offsets as inrelative. It assumes base offset is 0x1000 but it will work for now as we make offsets relative anyway by removing base 0x1000. Should be cleaner however. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/ssb/ssb_regs.h')
-rw-r--r--include/linux/ssb/ssb_regs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ssb/ssb_regs.h b/include/linux/ssb/ssb_regs.h
index 9ae9082eaeb4..b8be23ce1915 100644
--- a/include/linux/ssb/ssb_regs.h
+++ b/include/linux/ssb/ssb_regs.h
@@ -170,7 +170,8 @@
#define SSB_SPROMSIZE_WORDS_R4 220
#define SSB_SPROMSIZE_BYTES_R123 (SSB_SPROMSIZE_WORDS_R123 * sizeof(u16))
#define SSB_SPROMSIZE_BYTES_R4 (SSB_SPROMSIZE_WORDS_R4 * sizeof(u16))
-#define SSB_SPROM_BASE 0x1000
+#define SSB_SPROM_BASE1 0x1000
+#define SSB_SPROM_BASE31 0x0800
#define SSB_SPROM_REVISION 0x107E
#define SSB_SPROM_REVISION_REV 0x00FF /* SPROM Revision number */
#define SSB_SPROM_REVISION_CRC 0xFF00 /* SPROM CRC8 value */