diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-01-24 12:47:20 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-29 03:49:28 -0500 |
commit | 3c313161353ad527de1a6ecde0f0d41700858fd6 (patch) | |
tree | 1cf1db15214e2101770e37561b96a679729fec02 | |
parent | 17fbaa6e426bf88226551374e3255f51220a22a6 (diff) |
bcma: detect SPROM revision 11
Extracting values from it is still unsupported, but at least we'll
display some meaningful error now.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/bcma/sprom.c | 3 | ||||
-rw-r--r-- | include/linux/ssb/ssb_regs.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c index efb037f9c98a..206edd3ba668 100644 --- a/drivers/bcma/sprom.c +++ b/drivers/bcma/sprom.c | |||
@@ -579,7 +579,8 @@ int bcma_sprom_get(struct bcma_bus *bus) | |||
579 | u16 offset = BCMA_CC_SPROM; | 579 | u16 offset = BCMA_CC_SPROM; |
580 | u16 *sprom; | 580 | u16 *sprom; |
581 | size_t sprom_sizes[] = { SSB_SPROMSIZE_WORDS_R4, | 581 | size_t sprom_sizes[] = { SSB_SPROMSIZE_WORDS_R4, |
582 | SSB_SPROMSIZE_WORDS_R10, }; | 582 | SSB_SPROMSIZE_WORDS_R10, |
583 | SSB_SPROMSIZE_WORDS_R11, }; | ||
583 | int i, err = 0; | 584 | int i, err = 0; |
584 | 585 | ||
585 | if (!bus->drv_cc.core) | 586 | if (!bus->drv_cc.core) |
diff --git a/include/linux/ssb/ssb_regs.h b/include/linux/ssb/ssb_regs.h index f7b9100686c3..c0f707ac192b 100644 --- a/include/linux/ssb/ssb_regs.h +++ b/include/linux/ssb/ssb_regs.h | |||
@@ -173,6 +173,7 @@ | |||
173 | #define SSB_SPROMSIZE_BYTES_R123 (SSB_SPROMSIZE_WORDS_R123 * sizeof(u16)) | 173 | #define SSB_SPROMSIZE_BYTES_R123 (SSB_SPROMSIZE_WORDS_R123 * sizeof(u16)) |
174 | #define SSB_SPROMSIZE_BYTES_R4 (SSB_SPROMSIZE_WORDS_R4 * sizeof(u16)) | 174 | #define SSB_SPROMSIZE_BYTES_R4 (SSB_SPROMSIZE_WORDS_R4 * sizeof(u16)) |
175 | #define SSB_SPROMSIZE_WORDS_R10 230 | 175 | #define SSB_SPROMSIZE_WORDS_R10 230 |
176 | #define SSB_SPROMSIZE_WORDS_R11 234 | ||
176 | #define SSB_SPROM_BASE1 0x1000 | 177 | #define SSB_SPROM_BASE1 0x1000 |
177 | #define SSB_SPROM_BASE31 0x0800 | 178 | #define SSB_SPROM_BASE31 0x0800 |
178 | #define SSB_SPROM_REVISION 0x007E | 179 | #define SSB_SPROM_REVISION 0x007E |