Commit 845da6e5 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Kalle Valo

ssb: add Kconfig entry for compiling SoC related code

This allows saving a little of space when not using ssb on Broadcom SoC.
Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 830c7df4
...@@ -4,6 +4,7 @@ config BCM47XX_SSB ...@@ -4,6 +4,7 @@ config BCM47XX_SSB
bool "SSB Support for Broadcom BCM47XX" bool "SSB Support for Broadcom BCM47XX"
select SYS_HAS_CPU_BMIPS32_3300 select SYS_HAS_CPU_BMIPS32_3300
select SSB select SSB
select SSB_HOST_SOC
select SSB_DRIVER_MIPS select SSB_DRIVER_MIPS
select SSB_DRIVER_EXTIF select SSB_DRIVER_EXTIF
select SSB_EMBEDDED select SSB_EMBEDDED
......
...@@ -80,6 +80,15 @@ config SSB_SDIOHOST ...@@ -80,6 +80,15 @@ config SSB_SDIOHOST
If unsure, say N If unsure, say N
config SSB_HOST_SOC
bool "Support for SSB bus on SoC"
depends on SSB
help
Host interface for a SSB directly mapped into memory. This is
for some Broadcom SoCs from the BCM47xx and BCM53xx lines.
If unsure, say N
config SSB_SILENT config SSB_SILENT
bool "No SSB kernel messages" bool "No SSB kernel messages"
depends on SSB && EXPERT depends on SSB && EXPERT
......
...@@ -7,7 +7,7 @@ ssb-$(CONFIG_SSB_SPROM) += sprom.o ...@@ -7,7 +7,7 @@ ssb-$(CONFIG_SSB_SPROM) += sprom.o
ssb-$(CONFIG_SSB_PCIHOST) += pci.o pcihost_wrapper.o ssb-$(CONFIG_SSB_PCIHOST) += pci.o pcihost_wrapper.o
ssb-$(CONFIG_SSB_PCMCIAHOST) += pcmcia.o bridge_pcmcia_80211.o ssb-$(CONFIG_SSB_PCMCIAHOST) += pcmcia.o bridge_pcmcia_80211.o
ssb-$(CONFIG_SSB_SDIOHOST) += sdio.o ssb-$(CONFIG_SSB_SDIOHOST) += sdio.o
ssb-y += host_soc.o ssb-$(CONFIG_SSB_HOST_SOC) += host_soc.o
# built-in drivers # built-in drivers
ssb-y += driver_chipcommon.o ssb-y += driver_chipcommon.o
......
...@@ -761,6 +761,7 @@ int ssb_bus_sdiobus_register(struct ssb_bus *bus, struct sdio_func *func, ...@@ -761,6 +761,7 @@ int ssb_bus_sdiobus_register(struct ssb_bus *bus, struct sdio_func *func,
EXPORT_SYMBOL(ssb_bus_sdiobus_register); EXPORT_SYMBOL(ssb_bus_sdiobus_register);
#endif /* CONFIG_SSB_PCMCIAHOST */ #endif /* CONFIG_SSB_PCMCIAHOST */
#ifdef CONFIG_SSB_HOST_SOC
int ssb_bus_ssbbus_register(struct ssb_bus *bus, unsigned long baseaddr, int ssb_bus_ssbbus_register(struct ssb_bus *bus, unsigned long baseaddr,
ssb_invariants_func_t get_invariants) ssb_invariants_func_t get_invariants)
{ {
...@@ -777,6 +778,7 @@ int ssb_bus_ssbbus_register(struct ssb_bus *bus, unsigned long baseaddr, ...@@ -777,6 +778,7 @@ int ssb_bus_ssbbus_register(struct ssb_bus *bus, unsigned long baseaddr,
return err; return err;
} }
#endif
int __ssb_driver_register(struct ssb_driver *drv, struct module *owner) int __ssb_driver_register(struct ssb_driver *drv, struct module *owner)
{ {
......
...@@ -161,7 +161,9 @@ static inline int ssb_sdio_init(struct ssb_bus *bus) ...@@ -161,7 +161,9 @@ static inline int ssb_sdio_init(struct ssb_bus *bus)
* host_soc.c * host_soc.c
**************************************************/ **************************************************/
#ifdef CONFIG_SSB_HOST_SOC
extern const struct ssb_bus_ops ssb_host_soc_ops; extern const struct ssb_bus_ops ssb_host_soc_ops;
#endif
/* scan.c */ /* scan.c */
extern const char *ssb_core_name(u16 coreid); extern const char *ssb_core_name(u16 coreid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment