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 4/5] m68k/serial: Use shared legacy UART I/O port constants
Date: Sat, 5 Dec 2026 13:23:14 +0100 [thread overview]
Message-ID: <20261205122309.104396-11-blum@kernel.org> (raw)
In-Reply-To: <20261205122309.104396-7-blum@kernel.org>
Replace the hard-coded port addresses in SERIAL_PORT_DFNS with
PORT_TTYS*. Drop the redundant ttyS comments and align the columns.
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
arch/m68k/include/asm/serial.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/m68k/include/asm/serial.h b/arch/m68k/include/asm/serial.h
index 866ef25a74a2..8f9847eb0b9d 100644
--- a/arch/m68k/include/asm/serial.h
+++ b/arch/m68k/include/asm/serial.h
@@ -14,12 +14,12 @@
#endif
#ifdef CONFIG_ISA
-#define SERIAL_PORT_DFNS \
- /* UART CLK PORT IRQ FLAGS */ \
- { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
- { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, /* ttyS1 */ \
- { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \
- { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */
+#define SERIAL_PORT_DFNS \
+ /* UART CLK PORT IRQ FLAGS */ \
+ { 0, BASE_BAUD, PORT_TTYS0, 4, STD_COM_FLAGS }, \
+ { 0, BASE_BAUD, PORT_TTYS1, 3, STD_COM_FLAGS }, \
+ { 0, BASE_BAUD, PORT_TTYS2, 4, STD_COM_FLAGS }, \
+ { 0, BASE_BAUD, PORT_TTYS3, 3, STD_COM4_FLAGS },
#endif
#endif /* _ASM_M68K_SERIAL_H */
next prev 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 ` Thorsten Blum [this message]
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-11-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 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.