bcm47xx: prepare to support different buses
Prepare bcm47xx to support different System buses. Before adding support for bcma it should be possible to build bcm47xx without the need of ssb. With this patch bcm47xx does not directly contain a ssb_bus, but a union contain all the supported system buses. As a SoC just uses one system bus a union is a good choice. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committato da
John W. Linville

parent
908debc8da
commit
08ccf57283
@@ -19,7 +19,17 @@
|
||||
#ifndef __ASM_BCM47XX_H
|
||||
#define __ASM_BCM47XX_H
|
||||
|
||||
/* SSB bus */
|
||||
extern struct ssb_bus ssb_bcm47xx;
|
||||
#include <linux/ssb/ssb.h>
|
||||
|
||||
enum bcm47xx_bus_type {
|
||||
BCM47XX_BUS_TYPE_SSB,
|
||||
};
|
||||
|
||||
union bcm47xx_bus {
|
||||
struct ssb_bus ssb;
|
||||
};
|
||||
|
||||
extern union bcm47xx_bus bcm47xx_bus;
|
||||
extern enum bcm47xx_bus_type bcm47xx_bus_type;
|
||||
|
||||
#endif /* __ASM_BCM47XX_H */
|
||||
|
Fai riferimento in un nuovo problema
Block a user