Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142518
b: refs/heads/master
c: f08b7e9
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Apr 7, 2009
1 parent 02f2640 commit 3588a60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6966b1be568e83a48585369731f1123a6f85157
refs/heads/master: f08b7e9f551fa74219bf32df483fb95c58aad94b
15 changes: 15 additions & 0 deletions trunk/drivers/serial/pmac_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,21 @@ static int __init pmz_init_port(struct uart_pmac_port *uap)
uap->port.type = PORT_PMAC_ZILOG;
uap->port.flags = 0;

/*
* Fixup for the port on Gatwick for which the device-tree has
* missing interrupts. Normally, the macio_dev would contain
* fixed up interrupt info, but we use the device-tree directly
* here due to early probing so we need the fixup too.
*/
if (uap->port.irq == NO_IRQ &&
np->parent && np->parent->parent &&
of_device_is_compatible(np->parent->parent, "gatwick")) {
/* IRQs on gatwick are offset by 64 */
uap->port.irq = irq_create_mapping(NULL, 64 + 15);
uap->tx_dma_irq = irq_create_mapping(NULL, 64 + 4);
uap->rx_dma_irq = irq_create_mapping(NULL, 64 + 5);
}

/* Setup some valid baud rate information in the register
* shadows so we don't write crap there before baud rate is
* first initialized.
Expand Down

0 comments on commit 3588a60

Please sign in to comment.