diff options
Diffstat (limited to 'drivers/ssb/sprom.c')
-rw-r--r-- | drivers/ssb/sprom.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/ssb/sprom.c b/drivers/ssb/sprom.c index f2f920fef10d..007bc3a03486 100644 --- a/drivers/ssb/sprom.c +++ b/drivers/ssb/sprom.c | |||
@@ -176,3 +176,17 @@ const struct ssb_sprom *ssb_get_fallback_sprom(void) | |||
176 | { | 176 | { |
177 | return fallback_sprom; | 177 | return fallback_sprom; |
178 | } | 178 | } |
179 | |||
180 | /* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ | ||
181 | bool ssb_is_sprom_available(struct ssb_bus *bus) | ||
182 | { | ||
183 | /* status register only exists on chipcomon rev >= 11 and we need check | ||
184 | for >= 31 only */ | ||
185 | /* this routine differs from specs as we do not access SPROM directly | ||
186 | on PCMCIA */ | ||
187 | if (bus->bustype == SSB_BUSTYPE_PCI && | ||
188 | bus->chipco.dev->id.revision >= 31) | ||
189 | return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM; | ||
190 | |||
191 | return true; | ||
192 | } | ||