diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-02-28 00:56:10 +0100 |
---|---|---|
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) | |
download | linux-stable-a027237a56f7d519eee5749cfb720e568d0bb0b6.tar.gz linux-stable-a027237a56f7d519eee5749cfb720e568d0bb0b6.tar.bz2 linux-stable-a027237a56f7d519eee5749cfb720e568d0bb0b6.zip |
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); extern void bcma_driver_unregister(struct bcma_driver *drv); +/* Set a fallback SPROM. + * See kdoc at the function definition for complete documentation. */ +extern int bcma_arch_register_fallback_sprom( + int (*sprom_callback)(struct bcma_bus *bus, + struct ssb_sprom *out)); + struct bcma_bus { /* The MMIO area. */ void __iomem *mmio; |