linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ] powerpc:  pass UPIO_TSI flag to 8259 serial driver
@ 2006-08-23  2:20 Zang Roy-r61911
  2006-08-23  3:36 ` Benjamin Herrenschmidt
  2006-08-23  4:30 ` Kumar Gala
  0 siblings, 2 replies; 14+ messages in thread
From: Zang Roy-r61911 @ 2006-08-23  2:20 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev list, Yang Xin-Xin-r48390

The patch passes the UPIO_TSI flag to general 8259 serial driver

Signed-off-by: Roy Zang	<tie-fei.zang@freescale.com>=20

---
 arch/powerpc/kernel/legacy_serial.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/legacy_serial.c
b/arch/powerpc/kernel/legacy_serial.c
index 359ab89..07c2c00 100644
--- a/arch/powerpc/kernel/legacy_serial.c
+++ b/arch/powerpc/kernel/legacy_serial.c
@@ -115,6 +115,7 @@ static int __init add_legacy_soc_port(st
 	u64 addr;
 	u32 *addrp;
 	upf_t flags =3D UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ;
+	struct device_node *tsi =3D of_get_parent(np);
=20
 	/* We only support ports that have a clock frequency properly
 	 * encoded in the device-tree.
@@ -134,7 +135,10 @@ static int __init add_legacy_soc_port(st
 	/* Add port, irq will be dealt with later. We passed a
translated
 	 * IO port value. It will be fixed up later along with the irq
 	 */
-	return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ,
flags, 0);
+	if (tsi && !strcmp(tsi->type, "tsi-bridge"))
+		return add_legacy_port(np, -1, UPIO_TSI, addr, addr,
NO_IRQ, flags, 0);
+	else=20
+		return add_legacy_port(np, -1, UPIO_MEM, addr, addr,
NO_IRQ, flags, 0);
 }
=20
 static int __init add_legacy_isa_port(struct device_node *np,
@@ -464,7 +468,7 @@ static int __init serial_dev_init(void)
 			fixup_port_irq(i, np, port);
 		if (port->iotype =3D=3D UPIO_PORT)
 			fixup_port_pio(i, np, port);
-		if (port->iotype =3D=3D UPIO_MEM)
+		if ((port->iotype =3D=3D UPIO_MEM) || (port->iotype =3D=3D
UPIO_TSI))
 			fixup_port_mmio(i, np, port);
 	}
=20
--=20
1.4.0

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-08-24  5:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23  2:20 [PATCH ] powerpc: pass UPIO_TSI flag to 8259 serial driver Zang Roy-r61911
2006-08-23  3:36 ` Benjamin Herrenschmidt
2006-08-23  8:45   ` Zang Roy-r61911
2006-08-23 13:08     ` Paul Mackerras
2006-08-23 21:52     ` Benjamin Herrenschmidt
2006-08-24  4:43       ` Zang Roy-r61911
2006-08-24  5:17         ` Benjamin Herrenschmidt
2006-08-24  5:38           ` Zang Roy-r61911
2006-08-24  5:49             ` Li Yang-r58472
2006-08-24  5:54               ` Zang Roy-r61911
2006-08-23  4:30 ` Kumar Gala
2006-08-23  6:13   ` Paul Mackerras
2006-08-23  6:27   ` Zang Roy-r61911
2006-08-23  7:08     ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).