Linux M68K Architecture development
 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>, Thorsten Blum <blum@kernel.org>
Cc: linux-alpha@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
	linux-arch@vger.kernel.org
Subject: [PATCH 5/5] m68k: q40: Use shared legacy UART I/O port constants
Date: Sat,  5 Dec 2026 13:23:15 +0100	[thread overview]
Message-ID: <20261205122309.104396-12-blum@kernel.org> (raw)
In-Reply-To: <20261205122309.104396-7-blum@kernel.org>

Replace the hard-coded port addresses with PORT_TTYS*.

Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 arch/m68k/q40/config.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/m68k/q40/config.c b/arch/m68k/q40/config.c
index ed59a742baae..934f7a63d75e 100644
--- a/arch/m68k/q40/config.c
+++ b/arch/m68k/q40/config.c
@@ -24,6 +24,7 @@
 
 #include <asm/io.h>
 #include <asm/bootinfo.h>
+#include <asm/serial.h>
 #include <asm/setup.h>
 #include <asm/irq.h>
 #include <asm/traps.h>
@@ -124,9 +125,12 @@ static void q40_get_model(char *model)
 	sprintf(model, "Q40");
 }
 
-static unsigned int serports[] =
-{
-	0x3f8,0x2f8,0x3e8,0x2e8,0
+static unsigned int serports[] = {
+	PORT_TTYS0,
+	PORT_TTYS1,
+	PORT_TTYS2,
+	PORT_TTYS3,
+	0,
 };
 
 static void __init q40_disable_irqs(void)

      parent reply	other threads:[~2026-12-05 12:24 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 ` [PATCH 3/5] alpha: " Thorsten Blum
2026-12-05 12:23 ` [PATCH 4/5] m68k/serial: " Thorsten Blum
2026-12-05 12:23 ` Thorsten Blum [this message]

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-12-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