9 #include <linux/module.h>
11 #include <linux/serial.h>
22 .platform_data = uart8250_data,
26 #ifdef CONFIG_BCM47XX_SSB
27 static int __init uart8250_init_ssb(
void)
32 memset(&uart8250_data, 0,
sizeof(uart8250_data));
34 for (i = 0; i < mcore->nr_serial_ports; i++) {
36 struct ssb_serial_port *ssb_port = &(mcore->serial_ports[
i]);
39 p->
membase = (
void *) ssb_port->regs;
40 p->
irq = ssb_port->irq + 2;
41 p->
uartclk = ssb_port->baud_base;
50 #ifdef CONFIG_BCM47XX_BCMA
51 static int __init uart8250_init_bcma(
void)
56 memset(&uart8250_data, 0,
sizeof(uart8250_data));
58 for (i = 0; i < cc->nr_serial_ports; i++) {
60 struct bcma_serial_port *bcma_port;
61 bcma_port = &(cc->serial_ports[
i]);
64 p->
membase = (
void *) bcma_port->regs;
65 p->
irq = bcma_port->irq + 2;
66 p->
uartclk = bcma_port->baud_base;
75 static int __init uart8250_init(
void)
78 #ifdef CONFIG_BCM47XX_SSB
79 case BCM47XX_BUS_TYPE_SSB:
80 return uart8250_init_ssb();
82 #ifdef CONFIG_BCM47XX_BCMA
83 case BCM47XX_BUS_TYPE_BCMA:
84 return uart8250_init_bcma();