[PATCH 2/4] serial: 8250_dw: allow enable rs485 at boot time

2018-06-06 Thread Giulio Benetti
If "linux,rs485-enabled-at-boot-time" is specified need to setup 485 in probe function. Call uart_get_rs485_mode() to get rs485 configuration, then call rs485_config() callback directly to setup port as rs485. Signed-off-by: Giulio Benetti --- drivers/tty/serial/8250/8250_dw.c | 5 - 1

[PATCH 2/4] serial: 8250_dw: allow enable rs485 at boot time

2018-06-06 Thread Giulio Benetti
If "linux,rs485-enabled-at-boot-time" is specified need to setup 485 in probe function. Call uart_get_rs485_mode() to get rs485 configuration, then call rs485_config() callback directly to setup port as rs485. Signed-off-by: Giulio Benetti --- drivers/tty/serial/8250/8250_dw.c | 5 - 1