From: Deepak Saxena <dsaxena@plexity.net>
To: rmk@arm.linux.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2.6 SERIAL] Add support for word-length UART registers.
Date: Thu, 9 Sep 2004 16:19:47 -0700 [thread overview]
Message-ID: <20040909231947.GA5236@plexity.net> (raw)
UARTS on several Intel IXP2000 systems are connected in such
a way that they can only be addressed using full word accesses
instead of bytes. Following patch adds a UPIO_MEM32 io-type to
identify these UARTs.
Please apply,
~Deepak
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
===== drivers/serial/8250.c 1.57 vs edited =====
--- 1.57/drivers/serial/8250.c Mon Jul 5 03:33:38 2004
+++ edited/drivers/serial/8250.c Thu Sep 9 14:22:07 2004
@@ -187,6 +187,9 @@
case UPIO_MEM:
return readb(up->port.membase + offset);
+ case UPIO_MEM32:
+ return readl(up->port.membase + offset);
+
default:
return inb(up->port.iobase + offset);
}
@@ -205,6 +208,10 @@
case UPIO_MEM:
writeb(value, up->port.membase + offset);
+ break;
+
+ case UPIO_MEM32:
+ writel(value, up->port.membase + offset);
break;
default:
===== drivers/serial/serial_core.c 1.87 vs edited =====
--- 1.87/drivers/serial/serial_core.c Tue Jun 29 07:43:58 2004
+++ edited/drivers/serial/serial_core.c Thu Sep 9 15:02:33 2004
@@ -1978,6 +1978,7 @@
printk("I/O 0x%x offset 0x%x", port->iobase, port->hub6);
break;
case UPIO_MEM:
+ case UPIO_MEM32:
printk("MMIO 0x%lx", port->mapbase);
break;
}
===== include/linux/serial_core.h 1.42 vs edited =====
--- 1.42/include/linux/serial_core.h Thu Jul 29 06:12:47 2004
+++ edited/include/linux/serial_core.h Thu Sep 9 14:18:25 2004
@@ -176,6 +176,7 @@
#define UPIO_PORT (0)
#define UPIO_HUB6 (1)
#define UPIO_MEM (2)
+#define UPIO_MEM32 (3)
unsigned int read_status_mask; /* driver specific */
unsigned int ignore_status_mask; /* driver specific */
--
Deepak Saxena - dsaxena at plexity dot net - http://www.plexity.net/
"Unlike me, many of you have accepted the situation of your imprisonment
and will die here like rotten cabbages." - Number 6
next reply other threads:[~2004-09-09 23:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-09 23:19 Deepak Saxena [this message]
2004-09-09 23:29 ` [PATCH 2.6 SERIAL] Add support for word-length UART registers Deepak Saxena
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=20040909231947.GA5236@plexity.net \
--to=dsaxena@plexity.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox