Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_SERIAL_H
0003 #define _ASM_X86_SERIAL_H
0004 
0005 /*
0006  * This assumes you have a 1.8432 MHz clock for your UART.
0007  *
0008  * It'd be nice if someone built a serial card with a 24.576 MHz
0009  * clock, since the 16550A is capable of handling a top speed of 1.5
0010  * megabits/second; but this requires a faster clock.
0011  */
0012 #define BASE_BAUD (1843200/16)
0013 
0014 /* Standard COM flags (except for COM4, because of the 8514 problem) */
0015 #ifdef CONFIG_SERIAL_8250_DETECT_IRQ
0016 # define STD_COMX_FLAGS (UPF_BOOT_AUTOCONF |    UPF_SKIP_TEST   | UPF_AUTO_IRQ)
0017 # define STD_COM4_FLAGS (UPF_BOOT_AUTOCONF |    0       | UPF_AUTO_IRQ)
0018 #else
0019 # define STD_COMX_FLAGS (UPF_BOOT_AUTOCONF |    UPF_SKIP_TEST   | 0     )
0020 # define STD_COM4_FLAGS (UPF_BOOT_AUTOCONF |    0       | 0     )
0021 #endif
0022 
0023 #define SERIAL_PORT_DFNS                                \
0024     /* UART     CLK     PORT    IRQ FLAGS               */  \
0025     { .uart = 0,    BASE_BAUD,  0x3F8,  4,  STD_COMX_FLAGS  }, /* ttyS0 */  \
0026     { .uart = 0,    BASE_BAUD,  0x2F8,  3,  STD_COMX_FLAGS  }, /* ttyS1 */  \
0027     { .uart = 0,    BASE_BAUD,  0x3E8,  4,  STD_COMX_FLAGS  }, /* ttyS2 */  \
0028     { .uart = 0,    BASE_BAUD,  0x2E8,  3,  STD_COM4_FLAGS  }, /* ttyS3 */
0029 
0030 #endif /* _ASM_X86_SERIAL_H */