xref: /linux/arch/m68k/include/asm/serial.h (revision bb29b957eaaa15be33243550d9ee576c2d601669)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_M68K_SERIAL_H
3 #define _ASM_M68K_SERIAL_H
4 
5 #include <asm-generic/serial.h>
6 
7 /* Standard COM flags (except for COM4, because of the 8514 problem) */
8 #ifdef CONFIG_SERIAL_8250_DETECT_IRQ
9 #define STD_COM_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ)
10 #define STD_COM4_FLAGS (UPF_BOOT_AUTOCONF | UPF_AUTO_IRQ)
11 #else
12 #define STD_COM_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST)
13 #define STD_COM4_FLAGS UPF_BOOT_AUTOCONF
14 #endif
15 
16 #ifdef CONFIG_ISA
17 #define SERIAL_PORT_DFNS			\
18 	/* UART CLK   PORT IRQ     FLAGS        */			\
19 	{ 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },	/* ttyS0 */	\
20 	{ 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS },	/* ttyS1 */	\
21 	{ 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS },	/* ttyS2 */	\
22 	{ 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS },	/* ttyS3 */
23 #endif
24 
25 #endif /* _ASM_M68K_SERIAL_H */
26