All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raphael Zimmerer <killekulla@rdrz.de>
To: linux-kernel@vger.kernel.org
Cc: rmk+serial@arm.linux.org.uk
Subject: [PATCH] [serial, pci]: Support for Exar XR17C158 Octal UART
Date: Fri, 30 Jul 2004 10:13:40 +0200	[thread overview]
Message-ID: <20040730081340.GH7931@rdrz.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 2204 bytes --]

Hello,

here a minimal patch to support the Exar Corp. XR17C158 Octal UART
Chip (PCI).

Regards,
Raphael

Signed-off-by: Raphael Zimmerer <killekulla@rdrz.de>

 drivers/serial/8250_pci.c |   22 ++++++++++++++++++++++
 include/linux/pci_ids.h   |    3 +++
 2 files changed, 25 insertions(+)

diff -rNu linux-2.6.8-rc2/drivers/serial/8250_pci.c linux-2.6.8-rc2-[uart]/drivers/serial/8250_pci.c
--- linux-2.6.8-rc2/drivers/serial/8250_pci.c	2004-07-27 13:13:38.000000000 +0200
+++ linux-2.6.8-rc2-[uart]/drivers/serial/8250_pci.c	2004-07-27 14:22:31.000000000 +0200
@@ -630,6 +630,17 @@
 		.setup		= afavlab_setup,
 	},
 	/*
+	 * Exar Corp. XR17C158 Octal UART
+	 *  Only basic 16550A support.
+	 */
+	{
+		.vendor		= PCI_VENDOR_ID_EXAR,
+		.device		= PCI_DEVICE_ID_EXAR_XR17C158,
+		.subvendor	= PCI_ANY_ID,
+		.subdevice	= PCI_ANY_ID,
+		.setup		= pci_default_setup,
+	},
+	/*
 	 * HP Diva
 	 */
 	{
@@ -1069,6 +1080,7 @@
 	pbn_computone_6,
 	pbn_computone_8,
 	pbn_sbsxrsio,
+	pbn_exar_XR17C158,
 };
 
 /*
@@ -1489,6 +1501,12 @@
 		.base_baud	= 460800,
 		.uart_offset	= 256,
 		.reg_shift	= 4,
+	},
+	[pbn_exar_XR17C158] = {
+		.flags		= FL_BASE0,
+		.num_ports	= 8,
+		.base_baud	= 921600,
+		.uart_offset	= 0x200,
 	}
 };
 
@@ -1759,6 +1777,10 @@
 }
 
 static struct pci_device_id serial_pci_tbl[] = {
+	{	PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C158,
+		PCI_ANY_ID, PCI_ANY_ID,
+		0,
+		0, pbn_exar_XR17C158 },
 	{	PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960,
 		PCI_SUBVENDOR_ID_CONNECT_TECH,
 		PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232, 0, 0,
diff -rNu linux-2.6.8-rc2/include/linux/pci_ids.h linux-2.6.8-rc2-[uart]/include/linux/pci_ids.h
--- linux-2.6.8-rc2/include/linux/pci_ids.h	2004-07-27 13:13:49.000000000 +0200
+++ linux-2.6.8-rc2-[uart]/include/linux/pci_ids.h	2004-07-27 14:52:53.000000000 +0200
@@ -1794,6 +1794,9 @@
 #define PCI_DEVICE_ID_CCD_B00C		0xb00c
 #define PCI_DEVICE_ID_CCD_B100		0xb100
 
+#define PCI_VENDOR_ID_EXAR		0x13a8
+#define PCI_DEVICE_ID_EXAR_XR17C158	0x0158
+
 #define PCI_VENDOR_ID_MICROGATE		0x13c0
 #define PCI_DEVICE_ID_MICROGATE_USC	0x0010
 #define PCI_DEVICE_ID_MICROGATE_SCC	0x0020

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2004-07-30  8:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040730081340.GH7931@rdrz.de \
    --to=killekulla@rdrz.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+serial@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.