diff options
| author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-02-27 18:56:10 -0500 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-03-05 15:20:50 -0500 |
| commit | a027237a56f7d519eee5749cfb720e568d0bb0b6 (patch) | |
| tree | 0d408171f47086b66330a844701747d8aa0e37fc /include/linux/bcma | |
| parent | 1c9351cf2180924c91bb85e5ba607f24a3d875b1 (diff) | |
bcma: add support for sprom not found on the device
On SoCs the sprom is stored in the nvram in a special partition on the
flash chip. The nvram contains the sprom for the main bus, but
sometimes also for a pci devices using bcma. This patch makes it
possible for the arch code to register a function to fetch the needed
sprom from the nvram and provide it to the bcma code.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/bcma')
| -rw-r--r-- | include/linux/bcma/bcma.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/bcma/bcma.h b/include/linux/bcma/bcma.h index 46bbd088c4ad..5af9a075498f 100644 --- a/include/linux/bcma/bcma.h +++ b/include/linux/bcma/bcma.h | |||
| @@ -176,6 +176,12 @@ int __bcma_driver_register(struct bcma_driver *drv, struct module *owner); | |||
| 176 | 176 | ||
| 177 | extern void bcma_driver_unregister(struct bcma_driver *drv); | 177 | extern void bcma_driver_unregister(struct bcma_driver *drv); |
| 178 | 178 | ||
| 179 | /* Set a fallback SPROM. | ||
| 180 | * See kdoc at the function definition for complete documentation. */ | ||
| 181 | extern int bcma_arch_register_fallback_sprom( | ||
| 182 | int (*sprom_callback)(struct bcma_bus *bus, | ||
| 183 | struct ssb_sprom *out)); | ||
| 184 | |||
| 179 | struct bcma_bus { | 185 | struct bcma_bus { |
| 180 | /* The MMIO area. */ | 186 | /* The MMIO area. */ |
| 181 | void __iomem *mmio; | 187 | void __iomem *mmio; |
