2 * Sonics Silicon Backplane
3 * Broadcom PCI-core driver
5 * Copyright 2005, Broadcom Corporation
6 * Copyright 2006, 2007, Michael Buesch <m@bues.ch>
8 * Licensed under the GNU/GPL. See COPYING for details.
11 #include "ssb_private.h"
13 #include <linux/ssb/ssb.h>
14 #include <linux/pci.h>
15 #include <linux/export.h>
16 #include <linux/delay.h>
17 #include <linux/ssb/ssb_embedded.h>
19 static u32
ssb_pcie_read(struct ssb_pcicore
*pc
, u32 address
);
20 static void ssb_pcie_write(struct ssb_pcicore
*pc
, u32 address
, u32 data
);
21 static u16
ssb_pcie_mdio_read(struct ssb_pcicore
*pc
, u8 device
, u8 address
);
22 static void ssb_pcie_mdio_write(struct ssb_pcicore
*pc
, u8 device
,
23 u8 address
, u16 data
);
26 u32
pcicore_read32(struct ssb_pcicore
*pc
, u16 offset
)
28 return ssb_read32(pc
->dev
, offset
);
32 void pcicore_write32(struct ssb_pcicore
*pc
, u16 offset
, u32 value
)
34 ssb_write32(pc
->dev
, offset
, value
);
38 u16
pcicore_read16(struct ssb_pcicore
*pc
, u16 offset
)
40 return ssb_read16(pc
->dev
, offset
);
44 void pcicore_write16(struct ssb_pcicore
*pc
, u16 offset
, u16 value
)
46 ssb_write16(pc
->dev
, offset
, value
);
49 /**************************************************
50 * Code for hostmode operation.
51 **************************************************/
53 #ifdef CONFIG_SSB_PCICORE_HOSTMODE
55 #include <asm/paccess.h>
56 /* Probe a 32bit value on the bus and catch bus exceptions.
57 * Returns nonzero on a bus exception.
58 * This is MIPS specific
60 #define mips_busprobe32(val, addr) get_dbe((val), ((u32 *)(addr)))
62 /* Assume one-hot slot wiring */
63 #define SSB_PCI_SLOT_MAX 16
65 /* Global lock is OK, as we won't have more than one extpci anyway. */
66 static DEFINE_SPINLOCK(cfgspace_lock
);
67 /* Core to access the external PCI config space. Can only have one. */
68 static struct ssb_pcicore
*extpci_core
;
71 static u32
get_cfgspace_addr(struct ssb_pcicore
*pc
,
72 unsigned int bus
, unsigned int dev
,
73 unsigned int func
, unsigned int off
)
78 /* We do only have one cardbus device behind the bridge. */
79 if (pc
->cardbusmode
&& (dev
> 1))
83 /* Type 0 transaction */
84 if (unlikely(dev
>= SSB_PCI_SLOT_MAX
))
86 /* Slide the window */
87 tmp
= SSB_PCICORE_SBTOPCI_CFG0
;
88 tmp
|= ((1 << (dev
+ 16)) & SSB_PCICORE_SBTOPCI1_MASK
);
89 pcicore_write32(pc
, SSB_PCICORE_SBTOPCI1
, tmp
);
90 /* Calculate the address */
92 addr
|= ((1 << (dev
+ 16)) & ~SSB_PCICORE_SBTOPCI1_MASK
);
96 /* Type 1 transaction */
97 pcicore_write32(pc
, SSB_PCICORE_SBTOPCI1
,
98 SSB_PCICORE_SBTOPCI_CFG1
);
99 /* Calculate the address */
110 static int ssb_extpci_read_config(struct ssb_pcicore
*pc
,
111 unsigned int bus
, unsigned int dev
,
112 unsigned int func
, unsigned int off
,
119 WARN_ON(!pc
->hostmode
);
120 if (unlikely(len
!= 1 && len
!= 2 && len
!= 4))
122 addr
= get_cfgspace_addr(pc
, bus
, dev
, func
, off
);
126 mmio
= ioremap(addr
, len
);
130 if (mips_busprobe32(val
, mmio
)) {
136 val
>>= (8 * (off
& 3));
140 *((u8
*)buf
) = (u8
)val
;
143 *((u16
*)buf
) = (u16
)val
;
146 *((u32
*)buf
) = (u32
)val
;
156 static int ssb_extpci_write_config(struct ssb_pcicore
*pc
,
157 unsigned int bus
, unsigned int dev
,
158 unsigned int func
, unsigned int off
,
159 const void *buf
, int len
)
165 WARN_ON(!pc
->hostmode
);
166 if (unlikely(len
!= 1 && len
!= 2 && len
!= 4))
168 addr
= get_cfgspace_addr(pc
, bus
, dev
, func
, off
);
172 mmio
= ioremap(addr
, len
);
176 if (mips_busprobe32(val
, mmio
)) {
184 val
&= ~(0xFF << (8 * (off
& 3)));
185 val
|= *((const u8
*)buf
) << (8 * (off
& 3));
189 val
&= ~(0xFFFF << (8 * (off
& 3)));
190 val
|= *((const u16
*)buf
) << (8 * (off
& 3));
193 val
= *((const u32
*)buf
);
205 static int ssb_pcicore_read_config(struct pci_bus
*bus
, unsigned int devfn
,
206 int reg
, int size
, u32
*val
)
211 spin_lock_irqsave(&cfgspace_lock
, flags
);
212 err
= ssb_extpci_read_config(extpci_core
, bus
->number
, PCI_SLOT(devfn
),
213 PCI_FUNC(devfn
), reg
, val
, size
);
214 spin_unlock_irqrestore(&cfgspace_lock
, flags
);
216 return err
? PCIBIOS_DEVICE_NOT_FOUND
: PCIBIOS_SUCCESSFUL
;
219 static int ssb_pcicore_write_config(struct pci_bus
*bus
, unsigned int devfn
,
220 int reg
, int size
, u32 val
)
225 spin_lock_irqsave(&cfgspace_lock
, flags
);
226 err
= ssb_extpci_write_config(extpci_core
, bus
->number
, PCI_SLOT(devfn
),
227 PCI_FUNC(devfn
), reg
, &val
, size
);
228 spin_unlock_irqrestore(&cfgspace_lock
, flags
);
230 return err
? PCIBIOS_DEVICE_NOT_FOUND
: PCIBIOS_SUCCESSFUL
;
233 static struct pci_ops ssb_pcicore_pciops
= {
234 .read
= ssb_pcicore_read_config
,
235 .write
= ssb_pcicore_write_config
,
238 static struct resource ssb_pcicore_mem_resource
= {
239 .name
= "SSB PCIcore external memory",
240 .start
= SSB_PCI_DMA
,
241 .end
= SSB_PCI_DMA
+ SSB_PCI_DMA_SZ
- 1,
242 .flags
= IORESOURCE_MEM
| IORESOURCE_PCI_FIXED
,
245 static struct resource ssb_pcicore_io_resource
= {
246 .name
= "SSB PCIcore external I/O",
249 .flags
= IORESOURCE_IO
| IORESOURCE_PCI_FIXED
,
252 static struct pci_controller ssb_pcicore_controller
= {
253 .pci_ops
= &ssb_pcicore_pciops
,
254 .io_resource
= &ssb_pcicore_io_resource
,
255 .mem_resource
= &ssb_pcicore_mem_resource
,
258 /* This function is called when doing a pci_enable_device().
259 * We must first check if the device is a device on the PCI-core bridge.
261 int ssb_pcicore_plat_dev_init(struct pci_dev
*d
)
263 if (d
->bus
->ops
!= &ssb_pcicore_pciops
) {
264 /* This is not a device on the PCI-core bridge. */
268 dev_info(&d
->dev
, "PCI: Fixing up device %s\n", pci_name(d
));
270 /* Fix up interrupt lines */
271 d
->irq
= ssb_mips_irq(extpci_core
->dev
) + 2;
272 pci_write_config_byte(d
, PCI_INTERRUPT_LINE
, d
->irq
);
277 /* Early PCI fixup for a device on the PCI-core bridge. */
278 static void ssb_pcicore_fixup_pcibridge(struct pci_dev
*dev
)
282 if (dev
->bus
->ops
!= &ssb_pcicore_pciops
) {
283 /* This is not a device on the PCI-core bridge. */
286 if (dev
->bus
->number
!= 0 || PCI_SLOT(dev
->devfn
) != 0)
289 dev_info(&dev
->dev
, "PCI: Fixing up bridge %s\n", pci_name(dev
));
291 /* Enable PCI bridge bus mastering and memory space */
293 if (pcibios_enable_device(dev
, ~0) < 0) {
294 dev_err(&dev
->dev
, "PCI: SSB bridge enable failed\n");
298 /* Enable PCI bridge BAR1 prefetch and burst */
299 pci_write_config_dword(dev
, SSB_BAR1_CONTROL
, 3);
301 /* Make sure our latency is high enough to handle the devices behind us */
304 "PCI: Fixing latency timer of device %s to %u\n",
306 pci_write_config_byte(dev
, PCI_LATENCY_TIMER
, lat
);
308 DECLARE_PCI_FIXUP_EARLY(PCI_ANY_ID
, PCI_ANY_ID
, ssb_pcicore_fixup_pcibridge
);
310 /* PCI device IRQ mapping. */
311 int ssb_pcicore_pcibios_map_irq(const struct pci_dev
*dev
, u8 slot
, u8 pin
)
313 if (dev
->bus
->ops
!= &ssb_pcicore_pciops
) {
314 /* This is not a device on the PCI-core bridge. */
317 return ssb_mips_irq(extpci_core
->dev
) + 2;
320 static void ssb_pcicore_init_hostmode(struct ssb_pcicore
*pc
)
324 if (WARN_ON(extpci_core
))
328 dev_dbg(pc
->dev
->dev
, "PCIcore in host mode found\n");
329 /* Reset devices on the external PCI bus */
330 val
= SSB_PCICORE_CTL_RST_OE
;
331 val
|= SSB_PCICORE_CTL_CLK_OE
;
332 pcicore_write32(pc
, SSB_PCICORE_CTL
, val
);
333 val
|= SSB_PCICORE_CTL_CLK
; /* Clock on */
334 pcicore_write32(pc
, SSB_PCICORE_CTL
, val
);
335 udelay(150); /* Assertion time demanded by the PCI standard */
336 val
|= SSB_PCICORE_CTL_RST
; /* Deassert RST# */
337 pcicore_write32(pc
, SSB_PCICORE_CTL
, val
);
338 val
= SSB_PCICORE_ARBCTL_INTERN
;
339 pcicore_write32(pc
, SSB_PCICORE_ARBCTL
, val
);
340 udelay(1); /* Assertion time demanded by the PCI standard */
342 if (pc
->dev
->bus
->has_cardbus_slot
) {
343 dev_dbg(pc
->dev
->dev
, "CardBus slot detected\n");
345 /* GPIO 1 resets the bridge */
346 ssb_gpio_out(pc
->dev
->bus
, 1, 1);
347 ssb_gpio_outen(pc
->dev
->bus
, 1, 1);
348 pcicore_write16(pc
, SSB_PCICORE_SPROM(0),
349 pcicore_read16(pc
, SSB_PCICORE_SPROM(0))
353 /* 64MB I/O window */
354 pcicore_write32(pc
, SSB_PCICORE_SBTOPCI0
,
355 SSB_PCICORE_SBTOPCI_IO
);
356 /* 64MB config space */
357 pcicore_write32(pc
, SSB_PCICORE_SBTOPCI1
,
358 SSB_PCICORE_SBTOPCI_CFG0
);
359 /* 1GB memory window */
360 pcicore_write32(pc
, SSB_PCICORE_SBTOPCI2
,
361 SSB_PCICORE_SBTOPCI_MEM
| SSB_PCI_DMA
);
364 * Accessing PCI config without a proper delay after devices reset (not
365 * GPIO reset) was causing reboots on WRT300N v1.0 (BCM4704).
366 * Tested delay 850 us lowered reboot chance to 50-80%, 1000 us fixed it
367 * completely. Flushing all writes was also tested but with no luck.
368 * The same problem was reported for WRT350N v1 (BCM4705), so we just
369 * sleep here unconditionally.
371 usleep_range(1000, 2000);
373 /* Enable PCI bridge BAR0 prefetch and burst */
374 val
= PCI_COMMAND_MASTER
| PCI_COMMAND_MEMORY
;
375 ssb_extpci_write_config(pc
, 0, 0, 0, PCI_COMMAND
, &val
, 2);
376 /* Clear error conditions */
378 ssb_extpci_write_config(pc
, 0, 0, 0, PCI_STATUS
, &val
, 2);
380 /* Enable PCI interrupts */
381 pcicore_write32(pc
, SSB_PCICORE_IMASK
,
382 SSB_PCICORE_IMASK_INTA
);
384 /* Ok, ready to run, register it to the system.
385 * The following needs change, if we want to port hostmode
386 * to non-MIPS platform.
388 ssb_pcicore_controller
.io_map_base
= (unsigned long)ioremap(SSB_PCI_MEM
, 0x04000000);
389 set_io_port_base(ssb_pcicore_controller
.io_map_base
);
390 /* Give some time to the PCI controller to configure itself with the new
391 * values. Not waiting at this point causes crashes of the machine.
394 register_pci_controller(&ssb_pcicore_controller
);
397 static int pcicore_is_in_hostmode(struct ssb_pcicore
*pc
)
399 struct ssb_bus
*bus
= pc
->dev
->bus
;
403 chipid_top
= (bus
->chip_id
& 0xFF00);
404 if (chipid_top
!= 0x4700 &&
405 chipid_top
!= 0x5300)
408 if (bus
->sprom
.boardflags_lo
& SSB_PCICORE_BFL_NOPCI
)
411 /* The 200-pin BCM4712 package does not bond out PCI. Even when
412 * PCI is bonded out, some boards may leave the pins floating.
414 if (bus
->chip_id
== 0x4712) {
415 if (bus
->chip_package
== SSB_CHIPPACK_BCM4712S
)
417 if (bus
->chip_package
== SSB_CHIPPACK_BCM4712M
)
420 if (bus
->chip_id
== 0x5350)
423 return !mips_busprobe32(tmp
, (bus
->mmio
+ (pc
->dev
->core_index
* SSB_CORE_SIZE
)));
425 #endif /* CONFIG_SSB_PCICORE_HOSTMODE */
427 /**************************************************
429 **************************************************/
431 static void ssb_pcicore_fix_sprom_core_index(struct ssb_pcicore
*pc
)
433 u16 tmp
= pcicore_read16(pc
, SSB_PCICORE_SPROM(0));
434 if (((tmp
& 0xF000) >> 12) != pc
->dev
->core_index
) {
436 tmp
|= (pc
->dev
->core_index
<< 12);
437 pcicore_write16(pc
, SSB_PCICORE_SPROM(0), tmp
);
441 static u8
ssb_pcicore_polarity_workaround(struct ssb_pcicore
*pc
)
443 return (ssb_pcie_read(pc
, 0x204) & 0x10) ? 0xC0 : 0x80;
446 static void ssb_pcicore_serdes_workaround(struct ssb_pcicore
*pc
)
448 const u8 serdes_pll_device
= 0x1D;
449 const u8 serdes_rx_device
= 0x1F;
452 ssb_pcie_mdio_write(pc
, serdes_rx_device
, 1 /* Control */,
453 ssb_pcicore_polarity_workaround(pc
));
454 tmp
= ssb_pcie_mdio_read(pc
, serdes_pll_device
, 1 /* Control */);
456 ssb_pcie_mdio_write(pc
, serdes_pll_device
, 1, tmp
& ~0x4000);
459 static void ssb_pcicore_pci_setup_workarounds(struct ssb_pcicore
*pc
)
461 struct ssb_device
*pdev
= pc
->dev
;
462 struct ssb_bus
*bus
= pdev
->bus
;
465 tmp
= pcicore_read32(pc
, SSB_PCICORE_SBTOPCI2
);
466 tmp
|= SSB_PCICORE_SBTOPCI_PREF
;
467 tmp
|= SSB_PCICORE_SBTOPCI_BURST
;
468 pcicore_write32(pc
, SSB_PCICORE_SBTOPCI2
, tmp
);
470 if (pdev
->id
.revision
< 5) {
471 tmp
= ssb_read32(pdev
, SSB_IMCFGLO
);
472 tmp
&= ~SSB_IMCFGLO_SERTO
;
474 tmp
&= ~SSB_IMCFGLO_REQTO
;
475 tmp
|= 3 << SSB_IMCFGLO_REQTO_SHIFT
;
476 ssb_write32(pdev
, SSB_IMCFGLO
, tmp
);
477 ssb_commit_settings(bus
);
478 } else if (pdev
->id
.revision
>= 11) {
479 tmp
= pcicore_read32(pc
, SSB_PCICORE_SBTOPCI2
);
480 tmp
|= SSB_PCICORE_SBTOPCI_MRM
;
481 pcicore_write32(pc
, SSB_PCICORE_SBTOPCI2
, tmp
);
485 static void ssb_pcicore_pcie_setup_workarounds(struct ssb_pcicore
*pc
)
488 u8 rev
= pc
->dev
->id
.revision
;
490 if (rev
== 0 || rev
== 1) {
491 /* TLP Workaround register. */
492 tmp
= ssb_pcie_read(pc
, 0x4);
494 ssb_pcie_write(pc
, 0x4, tmp
);
497 /* DLLP Link Control register. */
498 tmp
= ssb_pcie_read(pc
, 0x100);
500 ssb_pcie_write(pc
, 0x100, tmp
);
504 const u8 serdes_rx_device
= 0x1F;
506 ssb_pcie_mdio_write(pc
, serdes_rx_device
,
507 2 /* Timer */, 0x8128);
508 ssb_pcie_mdio_write(pc
, serdes_rx_device
,
509 6 /* CDR */, 0x0100);
510 ssb_pcie_mdio_write(pc
, serdes_rx_device
,
511 7 /* CDR BW */, 0x1466);
512 } else if (rev
== 3 || rev
== 4 || rev
== 5) {
513 /* TODO: DLLP Power Management Threshold */
514 ssb_pcicore_serdes_workaround(pc
);
516 } else if (rev
== 7) {
517 /* TODO: No PLL down */
521 /* Miscellaneous Configuration Fixup */
522 tmp
= pcicore_read16(pc
, SSB_PCICORE_SPROM(5));
524 pcicore_write16(pc
, SSB_PCICORE_SPROM(5),
529 /**************************************************
530 * Generic and Clientmode operation code.
531 **************************************************/
533 static void ssb_pcicore_init_clientmode(struct ssb_pcicore
*pc
)
535 struct ssb_device
*pdev
= pc
->dev
;
536 struct ssb_bus
*bus
= pdev
->bus
;
538 if (bus
->bustype
== SSB_BUSTYPE_PCI
)
539 ssb_pcicore_fix_sprom_core_index(pc
);
541 /* Disable PCI interrupts. */
542 ssb_write32(pdev
, SSB_INTVEC
, 0);
544 /* Additional PCIe always once-executed workarounds */
545 if (pc
->dev
->id
.coreid
== SSB_DEV_PCIE
) {
546 ssb_pcicore_serdes_workaround(pc
);
548 /* TODO: Clock Request Update */
552 void ssb_pcicore_init(struct ssb_pcicore
*pc
)
554 struct ssb_device
*dev
= pc
->dev
;
558 if (!ssb_device_is_enabled(dev
))
559 ssb_device_enable(dev
, 0);
561 #ifdef CONFIG_SSB_PCICORE_HOSTMODE
562 pc
->hostmode
= pcicore_is_in_hostmode(pc
);
564 ssb_pcicore_init_hostmode(pc
);
565 #endif /* CONFIG_SSB_PCICORE_HOSTMODE */
567 ssb_pcicore_init_clientmode(pc
);
570 static u32
ssb_pcie_read(struct ssb_pcicore
*pc
, u32 address
)
572 pcicore_write32(pc
, 0x130, address
);
573 return pcicore_read32(pc
, 0x134);
576 static void ssb_pcie_write(struct ssb_pcicore
*pc
, u32 address
, u32 data
)
578 pcicore_write32(pc
, 0x130, address
);
579 pcicore_write32(pc
, 0x134, data
);
582 static void ssb_pcie_mdio_set_phy(struct ssb_pcicore
*pc
, u8 phy
)
584 const u16 mdio_control
= 0x128;
585 const u16 mdio_data
= 0x12C;
589 v
= (1 << 30); /* Start of Transaction */
590 v
|= (1 << 28); /* Write Transaction */
591 v
|= (1 << 17); /* Turnaround */
594 pcicore_write32(pc
, mdio_data
, v
);
597 for (i
= 0; i
< 200; i
++) {
598 v
= pcicore_read32(pc
, mdio_control
);
599 if (v
& 0x100 /* Trans complete */)
605 static u16
ssb_pcie_mdio_read(struct ssb_pcicore
*pc
, u8 device
, u8 address
)
607 const u16 mdio_control
= 0x128;
608 const u16 mdio_data
= 0x12C;
609 int max_retries
= 10;
614 v
= 0x80; /* Enable Preamble Sequence */
615 v
|= 0x2; /* MDIO Clock Divisor */
616 pcicore_write32(pc
, mdio_control
, v
);
618 if (pc
->dev
->id
.revision
>= 10) {
620 ssb_pcie_mdio_set_phy(pc
, device
);
623 v
= (1 << 30); /* Start of Transaction */
624 v
|= (1 << 29); /* Read Transaction */
625 v
|= (1 << 17); /* Turnaround */
626 if (pc
->dev
->id
.revision
< 10)
627 v
|= (u32
)device
<< 22;
628 v
|= (u32
)address
<< 18;
629 pcicore_write32(pc
, mdio_data
, v
);
630 /* Wait for the device to complete the transaction */
632 for (i
= 0; i
< max_retries
; i
++) {
633 v
= pcicore_read32(pc
, mdio_control
);
634 if (v
& 0x100 /* Trans complete */) {
636 ret
= pcicore_read32(pc
, mdio_data
);
641 pcicore_write32(pc
, mdio_control
, 0);
645 static void ssb_pcie_mdio_write(struct ssb_pcicore
*pc
, u8 device
,
646 u8 address
, u16 data
)
648 const u16 mdio_control
= 0x128;
649 const u16 mdio_data
= 0x12C;
650 int max_retries
= 10;
654 v
= 0x80; /* Enable Preamble Sequence */
655 v
|= 0x2; /* MDIO Clock Divisor */
656 pcicore_write32(pc
, mdio_control
, v
);
658 if (pc
->dev
->id
.revision
>= 10) {
660 ssb_pcie_mdio_set_phy(pc
, device
);
663 v
= (1 << 30); /* Start of Transaction */
664 v
|= (1 << 28); /* Write Transaction */
665 v
|= (1 << 17); /* Turnaround */
666 if (pc
->dev
->id
.revision
< 10)
667 v
|= (u32
)device
<< 22;
668 v
|= (u32
)address
<< 18;
670 pcicore_write32(pc
, mdio_data
, v
);
671 /* Wait for the device to complete the transaction */
673 for (i
= 0; i
< max_retries
; i
++) {
674 v
= pcicore_read32(pc
, mdio_control
);
675 if (v
& 0x100 /* Trans complete */)
679 pcicore_write32(pc
, mdio_control
, 0);
682 int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore
*pc
,
683 struct ssb_device
*dev
)
685 struct ssb_device
*pdev
= pc
->dev
;
690 if (dev
->bus
->bustype
!= SSB_BUSTYPE_PCI
) {
691 /* This SSB device is not on a PCI host-bus. So the IRQs are
692 * not routed through the PCI core.
693 * So we must not enable routing through the PCI core.
702 might_sleep_if(pdev
->id
.coreid
!= SSB_DEV_PCI
);
704 /* Enable interrupts for this device. */
705 if ((pdev
->id
.revision
>= 6) || (pdev
->id
.coreid
== SSB_DEV_PCIE
)) {
708 /* Calculate the "coremask" for the device. */
709 coremask
= (1 << dev
->core_index
);
711 WARN_ON(bus
->bustype
!= SSB_BUSTYPE_PCI
);
712 err
= pci_read_config_dword(bus
->host_pci
, SSB_PCI_IRQMASK
, &tmp
);
715 tmp
|= coremask
<< 8;
716 err
= pci_write_config_dword(bus
->host_pci
, SSB_PCI_IRQMASK
, tmp
);
722 intvec
= ssb_read32(pdev
, SSB_INTVEC
);
723 tmp
= ssb_read32(dev
, SSB_TPSFLAG
);
724 tmp
&= SSB_TPSFLAG_BPFLAG
;
725 intvec
|= (1 << tmp
);
726 ssb_write32(pdev
, SSB_INTVEC
, intvec
);
729 /* Setup PCIcore operation. */
732 if (pdev
->id
.coreid
== SSB_DEV_PCI
) {
733 ssb_pcicore_pci_setup_workarounds(pc
);
735 WARN_ON(pdev
->id
.coreid
!= SSB_DEV_PCIE
);
736 ssb_pcicore_pcie_setup_workarounds(pc
);
742 EXPORT_SYMBOL(ssb_pcicore_dev_irqvecs_enable
);