Back to home page

OSCL-LXR

 
 

    


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