Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17222
b: refs/heads/master
c: 017e0fa
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala authored and Paul Mackerras committed Jan 9, 2006
1 parent 91efd03 commit f0c33c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03929c76f3e5af919fb762e9882a9c286d361e7d
refs/heads/master: 017e0fad3e40ece983527ec88a92b3da8fcdecea
12 changes: 11 additions & 1 deletion trunk/arch/powerpc/kernel/legacy_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ static int __init add_legacy_soc_port(struct device_node *np,
return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags);
}

#ifdef CONFIG_ISA
static int __init add_legacy_isa_port(struct device_node *np,
struct device_node *isa_bridge)
struct device_node *isa_brg)
{
u32 *reg;
char *typep;
Expand Down Expand Up @@ -167,7 +168,9 @@ static int __init add_legacy_isa_port(struct device_node *np,
return add_legacy_port(np, index, UPIO_PORT, reg[1], taddr, NO_IRQ, UPF_BOOT_AUTOCONF);

}
#endif

#ifdef CONFIG_PCI
static int __init add_legacy_pci_port(struct device_node *np,
struct device_node *pci_dev)
{
Expand Down Expand Up @@ -233,6 +236,7 @@ static int __init add_legacy_pci_port(struct device_node *np,
*/
return add_legacy_port(np, index, iotype, base, addr, NO_IRQ, UPF_BOOT_AUTOCONF);
}
#endif

/*
* This is called very early, as part of setup_system() or eventually
Expand Down Expand Up @@ -272,6 +276,7 @@ void __init find_legacy_serial_ports(void)
of_node_put(soc);
}

#ifdef CONFIG_ISA
/* First fill our array with ISA ports */
for (np = NULL; (np = of_find_node_by_type(np, "serial"));) {
struct device_node *isa = of_get_parent(np);
Expand All @@ -282,7 +287,9 @@ void __init find_legacy_serial_ports(void)
}
of_node_put(isa);
}
#endif

#ifdef CONFIG_PCI
/* Next, try to locate PCI ports */
for (np = NULL; (np = of_find_all_nodes(np));) {
struct device_node *pci, *parent = of_get_parent(np);
Expand Down Expand Up @@ -312,6 +319,7 @@ void __init find_legacy_serial_ports(void)
legacy_serial_console = index;
of_node_put(parent);
}
#endif

DBG("legacy_serial_console = %d\n", legacy_serial_console);

Expand Down Expand Up @@ -375,6 +383,7 @@ static void __init fixup_port_pio(int index,
struct device_node *np,
struct plat_serial8250_port *port)
{
#ifdef CONFIG_PCI
struct pci_controller *hose;

DBG("fixup_port_pio(%d)\n", index);
Expand All @@ -391,6 +400,7 @@ static void __init fixup_port_pio(int index,
index, port->iobase, port->iobase + offset);
port->iobase += offset;
}
#endif
}

static void __init fixup_port_mmio(int index,
Expand Down

0 comments on commit f0c33c9

Please sign in to comment.