* [PATCH 1/2] m68k/serial: Use generic BASE_BAUD in asm/serial.h
@ 2026-07-31 9:44 Thorsten Blum
2026-07-31 9:44 ` [PATCH 2/2] m68k/serial: Add include guard to asm/serial.h Thorsten Blum
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-07-31 9:44 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Thorsten Blum, linux-m68k, linux-kernel
Include asm-generic/serial.h and use the generic BASE_BAUD definition
instead of redefining it.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/m68k/include/asm/serial.h | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/arch/m68k/include/asm/serial.h b/arch/m68k/include/asm/serial.h
index 3f76bc7b9edb..e215b48975d5 100644
--- a/arch/m68k/include/asm/serial.h
+++ b/arch/m68k/include/asm/serial.h
@@ -7,15 +7,7 @@
*
*/
-
-/*
- * This assumes you have a 1.8432 MHz clock for your UART.
- *
- * It'd be nice if someone built a serial card with a 24.576 MHz
- * clock, since the 16550A is capable of handling a top speed of 1.5
- * megabits/second; but this requires the faster clock.
- */
-#define BASE_BAUD ( 1843200 / 16 )
+#include <asm-generic/serial.h>
/* Standard COM flags (except for COM4, because of the 8514 problem) */
#ifdef CONFIG_SERIAL_8250_DETECT_IRQ
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] m68k/serial: Add include guard to asm/serial.h
2026-07-31 9:44 [PATCH 1/2] m68k/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
@ 2026-07-31 9:44 ` Thorsten Blum
0 siblings, 0 replies; 2+ messages in thread
From: Thorsten Blum @ 2026-07-31 9:44 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Thorsten Blum, linux-m68k, linux-kernel
Add an include guard and remove the stale comment while at it.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/m68k/include/asm/serial.h | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/arch/m68k/include/asm/serial.h b/arch/m68k/include/asm/serial.h
index e215b48975d5..866ef25a74a2 100644
--- a/arch/m68k/include/asm/serial.h
+++ b/arch/m68k/include/asm/serial.h
@@ -1,11 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * include/asm-m68k/serial.h
- *
- * currently this seems useful only for a Q40,
- * it's an almost exact copy of ../asm-alpha/serial.h
- *
- */
+#ifndef _ASM_M68K_SERIAL_H
+#define _ASM_M68K_SERIAL_H
#include <asm-generic/serial.h>
@@ -26,3 +21,5 @@
{ 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \
{ 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */
#endif
+
+#endif /* _ASM_M68K_SERIAL_H */
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-31 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 9:44 [PATCH 1/2] m68k/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
2026-07-31 9:44 ` [PATCH 2/2] m68k/serial: Add include guard to asm/serial.h Thorsten Blum
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.