|
Hi We are using Atmel AT91SAM9260 processor for our development with Angstrom Linux distro. Reading through the datasheet, i noticed it is possible to configure uart to use 16 bit oversampling instead of 8 bit. The setting is in the mode register of the uart. My question is, what is the easiest way to set this bit in the mode register in linux? (we are using 2.6.27 kernel) I looked through the kernel source but didn't find any reference to that register bit being used anywhere, however its defined in linux/include/linux/atmel_serial.h #define ATMEL_US_OVER (1 << 19) /* Oversampling Mode */
I also looked at linux/drivers/serial/atmel_serial.c and though that i can put setting this register bit in the static void atmel_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old)
function. Is this a proper way of doing it? Thanx in advance
|