Alpha arch development list
 help / color / mirror / Atom feed
From: Thorsten Blum <blum@kernel.org>
To: Richard Henderson <richard.henderson@linaro.org>,
	Matt Turner <mattst88@gmail.com>,
	Magnus Lindholm <linmag7@gmail.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Arnd Bergmann <arnd@arndb.de>
Cc: linux-alpha@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
	linux-arch@vger.kernel.org, Thorsten Blum <blum@kernel.org>
Subject: [PATCH 3/5] alpha: Use shared legacy UART I/O port constants
Date: Sat,  5 Dec 2026 13:23:13 +0100	[thread overview]
Message-ID: <20261205122309.104396-10-blum@kernel.org> (raw)
In-Reply-To: <20261205122309.104396-7-blum@kernel.org>

In smc37c669 and smc37c93x, replace the hard-coded COM1 and COM2 port
addresses with PORT_TTYS0 and PORT_TTYS1.

Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 arch/alpha/kernel/smc37c669.c | 5 +++--
 arch/alpha/kernel/smc37c93x.c | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c
index a5a6ed97a6ce..720d6c6deecc 100644
--- a/arch/alpha/kernel/smc37c669.c
+++ b/arch/alpha/kernel/smc37c669.c
@@ -10,6 +10,7 @@
 
 #include <asm/hwrpb.h>
 #include <asm/io.h>
+#include <asm/serial.h>
 
 #include "proto.h"
 
@@ -106,9 +107,9 @@
 /*
 ** Default Device Function Mappings
 */
-#define COM1_BASE	0x3F8
+#define COM1_BASE	PORT_TTYS0
 #define COM1_IRQ	4
-#define COM2_BASE	0x2F8
+#define COM2_BASE	PORT_TTYS1
 #define COM2_IRQ	3
 #define PARP_BASE	0x3BC
 #define PARP_IRQ	7
diff --git a/arch/alpha/kernel/smc37c93x.c b/arch/alpha/kernel/smc37c93x.c
index 8028273f0d16..0a22efe784d7 100644
--- a/arch/alpha/kernel/smc37c93x.c
+++ b/arch/alpha/kernel/smc37c93x.c
@@ -11,6 +11,7 @@
 
 #include <asm/hwrpb.h>
 #include <asm/io.h>
+#include <asm/serial.h>
 
 #include "proto.h"
 
@@ -71,9 +72,9 @@
 /* default device addresses */
 #define KYBD_INTERRUPT		1
 #define MOUS_INTERRUPT		12
-#define COM2_BASE		0x2f8
+#define COM2_BASE		PORT_TTYS1
 #define COM2_INTERRUPT		3
-#define COM1_BASE		0x3f8
+#define COM1_BASE		PORT_TTYS0
 #define COM1_INTERRUPT		4
 #define PARP_BASE		0x3bc
 #define PARP_INTERRUPT		7

  parent reply	other threads:[~2026-12-05 12:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 12:23 [PATCH 0/5] serial: Share legacy UART I/O port constants Thorsten Blum
2026-12-05 12:23 ` [PATCH 1/5] asm-generic: serial: Define legacy UART I/O port addresses Thorsten Blum
2026-12-05 12:23 ` [PATCH 2/5] alpha/serial: Use shared legacy UART I/O port constants Thorsten Blum
2026-12-05 12:23 ` Thorsten Blum [this message]
2026-12-05 12:23 ` [PATCH 4/5] m68k/serial: " Thorsten Blum
2026-12-05 12:23 ` [PATCH 5/5] m68k: q40: " Thorsten Blum

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=20261205122309.104396-10-blum@kernel.org \
    --to=blum@kernel.org \
    --cc=arnd@arndb.de \
    --cc=geert@linux-m68k.org \
    --cc=linmag7@gmail.com \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=mattst88@gmail.com \
    --cc=richard.henderson@linaro.org \
    /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