1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21965aae3SH. Peter Anvin #ifndef _ASM_X86_SERIAL_H 31965aae3SH. Peter Anvin #define _ASM_X86_SERIAL_H 4bb898558SAl Viro 5bb898558SAl Viro /* 6bb898558SAl Viro * This assumes you have a 1.8432 MHz clock for your UART. 7bb898558SAl Viro * 8bb898558SAl Viro * It'd be nice if someone built a serial card with a 24.576 MHz 9bb898558SAl Viro * clock, since the 16550A is capable of handling a top speed of 1.5 10196cf358SIngo Molnar * megabits/second; but this requires a faster clock. 11bb898558SAl Viro */ 12bb898558SAl Viro #define BASE_BAUD (1843200/16) 13bb898558SAl Viro 14bb898558SAl Viro /* Standard COM flags (except for COM4, because of the 8514 problem) */ 15507224aaSValentin Rothberg #ifdef CONFIG_SERIAL_8250_DETECT_IRQ 16079119a2SAndy Shevchenko # define STD_COMX_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ) 17079119a2SAndy Shevchenko # define STD_COM4_FLAGS (UPF_BOOT_AUTOCONF | 0 | UPF_AUTO_IRQ) 18bb898558SAl Viro #else 19079119a2SAndy Shevchenko # define STD_COMX_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | 0 ) 20079119a2SAndy Shevchenko # define STD_COM4_FLAGS (UPF_BOOT_AUTOCONF | 0 | 0 ) 21bb898558SAl Viro #endif 22bb898558SAl Viro 23bb898558SAl Viro #define SERIAL_PORT_DFNS \ 24bb898558SAl Viro /* UART CLK PORT IRQ FLAGS */ \ 25196cf358SIngo Molnar { .uart = 0, BASE_BAUD, 0x3F8, 4, STD_COMX_FLAGS }, /* ttyS0 */ \ 26196cf358SIngo Molnar { .uart = 0, BASE_BAUD, 0x2F8, 3, STD_COMX_FLAGS }, /* ttyS1 */ \ 27196cf358SIngo Molnar { .uart = 0, BASE_BAUD, 0x3E8, 4, STD_COMX_FLAGS }, /* ttyS2 */ \ 289ea029f1SMark Rustad { .uart = 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */ 29bb898558SAl Viro 301965aae3SH. Peter Anvin #endif /* _ASM_X86_SERIAL_H */ 31