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 d0e6762fec50..83bc088b941d 100644 --- a/drivers/ssb/sprom.c +++ b/drivers/ssb/sprom.c | |||
@@ -175,3 +175,17 @@ const struct ssb_sprom *ssb_get_fallback_sprom(void) | |||
175 | { | 175 | { |
176 | return fallback_sprom; | 176 | return fallback_sprom; |
177 | } | 177 | } |
178 | |||
179 | /* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ | ||
180 | bool ssb_is_sprom_available(struct ssb_bus *bus) | ||
181 | { | ||
182 | /* status register only exists on chipcomon rev >= 11 and we need check | ||
183 | for >= 31 only */ | ||
184 | /* this routine differs from specs as we do not access SPROM directly | ||
185 | on PCMCIA */ | ||
186 | if (bus->bustype == SSB_BUSTYPE_PCI && | ||
187 | bus->chipco.dev->id.revision >= 31) | ||
188 | return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM; | ||
189 | |||
190 | return true; | ||
191 | } | ||