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>
This commit is contained in:
parent
17fbaa6e42
commit
3c31316135
|
@ -579,7 +579,8 @@ int bcma_sprom_get(struct bcma_bus *bus)
|
||||||
u16 offset = BCMA_CC_SPROM;
|
u16 offset = BCMA_CC_SPROM;
|
||||||
u16 *sprom;
|
u16 *sprom;
|
||||||
size_t sprom_sizes[] = { SSB_SPROMSIZE_WORDS_R4,
|
size_t sprom_sizes[] = { SSB_SPROMSIZE_WORDS_R4,
|
||||||
SSB_SPROMSIZE_WORDS_R10, };
|
SSB_SPROMSIZE_WORDS_R10,
|
||||||
|
SSB_SPROMSIZE_WORDS_R11, };
|
||||||
int i, err = 0;
|
int i, err = 0;
|
||||||
|
|
||||||
if (!bus->drv_cc.core)
|
if (!bus->drv_cc.core)
|
||||||
|
|
|
@ -173,6 +173,7 @@
|
||||||
#define SSB_SPROMSIZE_BYTES_R123 (SSB_SPROMSIZE_WORDS_R123 * sizeof(u16))
|
#define SSB_SPROMSIZE_BYTES_R123 (SSB_SPROMSIZE_WORDS_R123 * sizeof(u16))
|
||||||
#define SSB_SPROMSIZE_BYTES_R4 (SSB_SPROMSIZE_WORDS_R4 * sizeof(u16))
|
#define SSB_SPROMSIZE_BYTES_R4 (SSB_SPROMSIZE_WORDS_R4 * sizeof(u16))
|
||||||
#define SSB_SPROMSIZE_WORDS_R10 230
|
#define SSB_SPROMSIZE_WORDS_R10 230
|
||||||
|
#define SSB_SPROMSIZE_WORDS_R11 234
|
||||||
#define SSB_SPROM_BASE1 0x1000
|
#define SSB_SPROM_BASE1 0x1000
|
||||||
#define SSB_SPROM_BASE31 0x0800
|
#define SSB_SPROM_BASE31 0x0800
|
||||||
#define SSB_SPROM_REVISION 0x007E
|
#define SSB_SPROM_REVISION 0x007E
|
||||||
|
|
Loading…
Reference in New Issue
Block a user