diff options
Diffstat (limited to 'drivers/serial/pmac_zilog.c')
-rw-r--r-- | drivers/serial/pmac_zilog.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/serial/pmac_zilog.c b/drivers/serial/pmac_zilog.c index ad3488504010..9c1243fbd512 100644 --- a/drivers/serial/pmac_zilog.c +++ b/drivers/serial/pmac_zilog.c | |||
@@ -1538,6 +1538,21 @@ no_dma: | |||
1538 | uap->port.type = PORT_PMAC_ZILOG; | 1538 | uap->port.type = PORT_PMAC_ZILOG; |
1539 | uap->port.flags = 0; | 1539 | uap->port.flags = 0; |
1540 | 1540 | ||
1541 | /* | ||
1542 | * Fixup for the port on Gatwick for which the device-tree has | ||
1543 | * missing interrupts. Normally, the macio_dev would contain | ||
1544 | * fixed up interrupt info, but we use the device-tree directly | ||
1545 | * here due to early probing so we need the fixup too. | ||
1546 | */ | ||
1547 | if (uap->port.irq == NO_IRQ && | ||
1548 | np->parent && np->parent->parent && | ||
1549 | of_device_is_compatible(np->parent->parent, "gatwick")) { | ||
1550 | /* IRQs on gatwick are offset by 64 */ | ||
1551 | uap->port.irq = irq_create_mapping(NULL, 64 + 15); | ||
1552 | uap->tx_dma_irq = irq_create_mapping(NULL, 64 + 4); | ||
1553 | uap->rx_dma_irq = irq_create_mapping(NULL, 64 + 5); | ||
1554 | } | ||
1555 | |||
1541 | /* Setup some valid baud rate information in the register | 1556 | /* Setup some valid baud rate information in the register |
1542 | * shadows so we don't write crap there before baud rate is | 1557 | * shadows so we don't write crap there before baud rate is |
1543 | * first initialized. | 1558 | * first initialized. |