summaryrefslogtreecommitdiffstats
path: root/src/config/serial.h
blob: a372963aa7e242b72d4d29f782a109dce0df1c65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef CONFIG_SERIAL_H
#define CONFIG_SERIAL_H

/** @file
 *
 * Serial port configuration
 *
 * These options affect the operation of the serial console.  They
 * take effect only if the serial console is included using the
 * CONSOLE_SERIAL option.
 *
 */

FILE_LICENCE ( GPL2_OR_LATER );

#include <config/defaults.h>

#define	COMCONSOLE	COM1		/* I/O port address */

/* Keep settings from a previous user of the serial port (e.g. lilo or
 * LinuxBIOS), ignoring COMSPEED.
 */
#undef	COMPRESERVE

#ifndef COMPRESERVE
#define	COMSPEED	115200		/* Baud rate */
#endif

/* Uncomment these to ignore the ACPI SPCR table (if present) */
//#undef SERIAL_SPCR
//#define SERIAL_FIXED

/* Early UART configuration (for bare metal prefix debugging only) */
//#define EARLY_UART_MODEL	8250
//#define EARLY_UART_REG_BASE	0x10000000
//#define EARLY_UART_REG_SHIFT	0

#include <config/named.h>
#include NAMED_CONFIG(serial.h)
#include <config/local/serial.h>
#include LOCAL_NAMED_CONFIG(serial.h)

#endif /* CONFIG_SERIAL_H */