5.2. Setting parameters on serial drivers

The serial port drivers (s3c2410_serial and u16550_serial) can be given parameters when they are initialised. This is achieved by placing additional comma separated parameters after the driver name within the containing brackets.

The configuration format is in one of the forms:

(driverX)
(driverX,baud)
(driverX,baud,data-format)

Options may be omitted. Such options are either left as the current settings or set to defaults as necessary. The default settings, when the ports are first initialised, is 115200 baud, eight data bits, no parity and a single stop bit (115200,8n1)

The data format is specified as three single character values. The first denotes the number of data bits, typically eight or seven. The second sets the parity type one of none (n), odd (o) or even (e). The third is the number of stop bits either one or two.

Example 5.2. Setting serial console driver parameters

To use the s3c2410_serial driver first port at 19200 baud using the default data format

(s3c2410_serial0,19200)

To use the s3c2410_serial driver second port at 38400 baud, 8 data bits, no parity and a single stop bit

(s3c2410_serial1,38400,8n1)

To use the u16550_serial driver first port with the current baud rate, 8 data bits, no parity and a single stop bit

(u16550_serial0,,8n1)