diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-06-11 04:12:49 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-06-11 04:12:49 -0400 |
commit | cf68676222e54cd0a31efd968da00e65f9a0963f (patch) | |
tree | 11b39153f0acc40b19f4d1e23d75ceeb489e58c0 /drivers | |
parent | 9808901b6c63a1c850b072e624c228901a9eaf10 (diff) |
Blackfin serial driver: actually implement the break_ctl() function
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/bfin_5xx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index 9d356fc96a57..a9d202717829 100644 --- a/drivers/serial/bfin_5xx.c +++ b/drivers/serial/bfin_5xx.c | |||
@@ -519,6 +519,14 @@ static void bfin_serial_mctrl_check(struct bfin_serial_port *uart) | |||
519 | */ | 519 | */ |
520 | static void bfin_serial_break_ctl(struct uart_port *port, int break_state) | 520 | static void bfin_serial_break_ctl(struct uart_port *port, int break_state) |
521 | { | 521 | { |
522 | struct bfin_serial_port *uart = (struct bfin_serial_port *)port; | ||
523 | u16 lcr = UART_GET_LCR(uart); | ||
524 | if (break_state) | ||
525 | lcr |= SB; | ||
526 | else | ||
527 | lcr &= ~SB; | ||
528 | UART_PUT_LCR(uart, lcr); | ||
529 | SSYNC(); | ||
522 | } | 530 | } |
523 | 531 | ||
524 | static int bfin_serial_startup(struct uart_port *port) | 532 | static int bfin_serial_startup(struct uart_port *port) |