aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/bcma/bcma_private.h41
-rw-r--r--include/linux/bcma/bcma_driver_chipcommon.h11
-rw-r--r--include/linux/bcma/bcma_driver_gmac_cmn.h6
-rw-r--r--include/linux/bcma/bcma_driver_mips.h15
-rw-r--r--include/linux/bcma/bcma_driver_pci.h2
-rw-r--r--include/linux/bcma/bcma_driver_pcie2.h2
6 files changed, 41 insertions, 36 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h
index 29565e30700a..5a1d22489afc 100644
--- a/drivers/bcma/bcma_private.h
+++ b/drivers/bcma/bcma_private.h
@@ -43,6 +43,9 @@ int bcma_bus_scan(struct bcma_bus *bus);
43int bcma_sprom_get(struct bcma_bus *bus); 43int bcma_sprom_get(struct bcma_bus *bus);
44 44
45/* driver_chipcommon.c */ 45/* driver_chipcommon.c */
46void bcma_core_chipcommon_early_init(struct bcma_drv_cc *cc);
47void bcma_core_chipcommon_init(struct bcma_drv_cc *cc);
48void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable);
46#ifdef CONFIG_BCMA_DRIVER_MIPS 49#ifdef CONFIG_BCMA_DRIVER_MIPS
47void bcma_chipco_serial_init(struct bcma_drv_cc *cc); 50void bcma_chipco_serial_init(struct bcma_drv_cc *cc);
48extern struct platform_device bcma_pflash_dev; 51extern struct platform_device bcma_pflash_dev;
@@ -53,6 +56,8 @@ int bcma_core_chipcommon_b_init(struct bcma_drv_cc_b *ccb);
53void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb); 56void bcma_core_chipcommon_b_free(struct bcma_drv_cc_b *ccb);
54 57
55/* driver_chipcommon_pmu.c */ 58/* driver_chipcommon_pmu.c */
59void bcma_pmu_early_init(struct bcma_drv_cc *cc);
60void bcma_pmu_init(struct bcma_drv_cc *cc);
56u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc); 61u32 bcma_pmu_get_alp_clock(struct bcma_drv_cc *cc);
57u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc); 62u32 bcma_pmu_get_cpu_clock(struct bcma_drv_cc *cc);
58 63
@@ -102,10 +107,13 @@ static inline void __exit bcma_host_soc_unregister_driver(void)
102 107
103/* driver_pci.c */ 108/* driver_pci.c */
104u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); 109u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address);
110void bcma_core_pci_early_init(struct bcma_drv_pci *pc);
111void bcma_core_pci_init(struct bcma_drv_pci *pc);
105void bcma_core_pci_up(struct bcma_drv_pci *pc); 112void bcma_core_pci_up(struct bcma_drv_pci *pc);
106void bcma_core_pci_down(struct bcma_drv_pci *pc); 113void bcma_core_pci_down(struct bcma_drv_pci *pc);
107 114
108/* driver_pcie2.c */ 115/* driver_pcie2.c */
116void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2);
109void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2); 117void bcma_core_pcie2_up(struct bcma_drv_pcie2 *pcie2);
110 118
111extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc); 119extern int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc);
@@ -123,6 +131,39 @@ static inline void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc)
123} 131}
124#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ 132#endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */
125 133
134/**************************************************
135 * driver_mips.c
136 **************************************************/
137
138#ifdef CONFIG_BCMA_DRIVER_MIPS
139unsigned int bcma_core_mips_irq(struct bcma_device *dev);
140void bcma_core_mips_early_init(struct bcma_drv_mips *mcore);
141void bcma_core_mips_init(struct bcma_drv_mips *mcore);
142#else
143static inline unsigned int bcma_core_mips_irq(struct bcma_device *dev)
144{
145 return 0;
146}
147static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore)
148{
149}
150static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore)
151{
152}
153#endif
154
155/**************************************************
156 * driver_gmac_cmn.c
157 **************************************************/
158
159#ifdef CONFIG_BCMA_DRIVER_GMAC_CMN
160void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc);
161#else
162static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc)
163{
164}
165#endif
166
126#ifdef CONFIG_BCMA_DRIVER_GPIO 167#ifdef CONFIG_BCMA_DRIVER_GPIO
127/* driver_gpio.c */ 168/* driver_gpio.c */
128int bcma_gpio_init(struct bcma_drv_cc *cc); 169int bcma_gpio_init(struct bcma_drv_cc *cc);
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h
index db6fa217f98b..6cceedf65ca2 100644
--- a/include/linux/bcma/bcma_driver_chipcommon.h
+++ b/include/linux/bcma/bcma_driver_chipcommon.h
@@ -663,14 +663,6 @@ struct bcma_drv_cc_b {
663#define bcma_cc_maskset32(cc, offset, mask, set) \ 663#define bcma_cc_maskset32(cc, offset, mask, set) \
664 bcma_cc_write32(cc, offset, (bcma_cc_read32(cc, offset) & (mask)) | (set)) 664 bcma_cc_write32(cc, offset, (bcma_cc_read32(cc, offset) & (mask)) | (set))
665 665
666extern void bcma_core_chipcommon_init(struct bcma_drv_cc *cc);
667extern void bcma_core_chipcommon_early_init(struct bcma_drv_cc *cc);
668
669extern void bcma_chipco_suspend(struct bcma_drv_cc *cc);
670extern void bcma_chipco_resume(struct bcma_drv_cc *cc);
671
672void bcma_chipco_bcm4331_ext_pa_lines_ctl(struct bcma_drv_cc *cc, bool enable);
673
674extern u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks); 666extern u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks);
675 667
676extern u32 bcma_chipco_get_alp_clock(struct bcma_drv_cc *cc); 668extern u32 bcma_chipco_get_alp_clock(struct bcma_drv_cc *cc);
@@ -690,9 +682,6 @@ u32 bcma_chipco_gpio_pullup(struct bcma_drv_cc *cc, u32 mask, u32 value);
690u32 bcma_chipco_gpio_pulldown(struct bcma_drv_cc *cc, u32 mask, u32 value); 682u32 bcma_chipco_gpio_pulldown(struct bcma_drv_cc *cc, u32 mask, u32 value);
691 683
692/* PMU support */ 684/* PMU support */
693extern void bcma_pmu_init(struct bcma_drv_cc *cc);
694extern void bcma_pmu_early_init(struct bcma_drv_cc *cc);
695
696extern void bcma_chipco_pll_write(struct bcma_drv_cc *cc, u32 offset, 685extern void bcma_chipco_pll_write(struct bcma_drv_cc *cc, u32 offset,
697 u32 value); 686 u32 value);
698extern void bcma_chipco_pll_maskset(struct bcma_drv_cc *cc, u32 offset, 687extern void bcma_chipco_pll_maskset(struct bcma_drv_cc *cc, u32 offset,
diff --git a/include/linux/bcma/bcma_driver_gmac_cmn.h b/include/linux/bcma/bcma_driver_gmac_cmn.h
index 4dd1f33e36a2..4354d4ea6713 100644
--- a/include/linux/bcma/bcma_driver_gmac_cmn.h
+++ b/include/linux/bcma/bcma_driver_gmac_cmn.h
@@ -91,10 +91,4 @@ struct bcma_drv_gmac_cmn {
91#define gmac_cmn_write16(gc, offset, val) bcma_write16((gc)->core, offset, val) 91#define gmac_cmn_write16(gc, offset, val) bcma_write16((gc)->core, offset, val)
92#define gmac_cmn_write32(gc, offset, val) bcma_write32((gc)->core, offset, val) 92#define gmac_cmn_write32(gc, offset, val) bcma_write32((gc)->core, offset, val)
93 93
94#ifdef CONFIG_BCMA_DRIVER_GMAC_CMN
95extern void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc);
96#else
97static inline void bcma_core_gmac_cmn_init(struct bcma_drv_gmac_cmn *gc) { }
98#endif
99
100#endif /* LINUX_BCMA_DRIVER_GMAC_CMN_H_ */ 94#endif /* LINUX_BCMA_DRIVER_GMAC_CMN_H_ */
diff --git a/include/linux/bcma/bcma_driver_mips.h b/include/linux/bcma/bcma_driver_mips.h
index 0b3b32aeeb8a..8eea7f9e33b4 100644
--- a/include/linux/bcma/bcma_driver_mips.h
+++ b/include/linux/bcma/bcma_driver_mips.h
@@ -39,21 +39,6 @@ struct bcma_drv_mips {
39 u8 early_setup_done:1; 39 u8 early_setup_done:1;
40}; 40};
41 41
42#ifdef CONFIG_BCMA_DRIVER_MIPS
43extern void bcma_core_mips_init(struct bcma_drv_mips *mcore);
44extern void bcma_core_mips_early_init(struct bcma_drv_mips *mcore);
45
46extern unsigned int bcma_core_mips_irq(struct bcma_device *dev);
47#else
48static inline void bcma_core_mips_init(struct bcma_drv_mips *mcore) { }
49static inline void bcma_core_mips_early_init(struct bcma_drv_mips *mcore) { }
50
51static inline unsigned int bcma_core_mips_irq(struct bcma_device *dev)
52{
53 return 0;
54}
55#endif
56
57extern u32 bcma_cpu_clock(struct bcma_drv_mips *mcore); 42extern u32 bcma_cpu_clock(struct bcma_drv_mips *mcore);
58 43
59#endif /* LINUX_BCMA_DRIVER_MIPS_H_ */ 44#endif /* LINUX_BCMA_DRIVER_MIPS_H_ */
diff --git a/include/linux/bcma/bcma_driver_pci.h b/include/linux/bcma/bcma_driver_pci.h
index 6b8bca67851f..8e90004fdfd7 100644
--- a/include/linux/bcma/bcma_driver_pci.h
+++ b/include/linux/bcma/bcma_driver_pci.h
@@ -238,8 +238,6 @@ struct bcma_drv_pci {
238#define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val) 238#define pcicore_write16(pc, offset, val) bcma_write16((pc)->core, offset, val)
239#define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) 239#define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val)
240 240
241extern void bcma_core_pci_early_init(struct bcma_drv_pci *pc);
242extern void bcma_core_pci_init(struct bcma_drv_pci *pc);
243extern int bcma_core_pci_irq_ctl(struct bcma_bus *bus, 241extern int bcma_core_pci_irq_ctl(struct bcma_bus *bus,
244 struct bcma_device *core, bool enable); 242 struct bcma_device *core, bool enable);
245extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up); 243extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up);
diff --git a/include/linux/bcma/bcma_driver_pcie2.h b/include/linux/bcma/bcma_driver_pcie2.h
index d8c43294c527..31e6d17ab798 100644
--- a/include/linux/bcma/bcma_driver_pcie2.h
+++ b/include/linux/bcma/bcma_driver_pcie2.h
@@ -155,6 +155,4 @@ struct bcma_drv_pcie2 {
155#define pcie2_set32(pcie2, offset, set) bcma_set32((pcie2)->core, offset, set) 155#define pcie2_set32(pcie2, offset, set) bcma_set32((pcie2)->core, offset, set)
156#define pcie2_mask32(pcie2, offset, mask) bcma_mask32((pcie2)->core, offset, mask) 156#define pcie2_mask32(pcie2, offset, mask) bcma_mask32((pcie2)->core, offset, mask)
157 157
158void bcma_core_pcie2_init(struct bcma_drv_pcie2 *pcie2);
159
160#endif /* LINUX_BCMA_DRIVER_PCIE2_H_ */ 158#endif /* LINUX_BCMA_DRIVER_PCIE2_H_ */