Skip to content

Commit 1ddeb5a

Browse files
andy-shevgregkh
authored andcommitted
tty: baudrate: SPARC supports few more baud rates
According to termbits.h SPARC supports few more baud rates than currently defined in tty_baudrate.c. Append supported ones to baud_table[] and baud_bits[]. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6ada606 commit 1ddeb5a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/tty/tty_baudrate.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ static const speed_t baud_table[] = {
2020
0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400,
2121
4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800,
2222
#ifdef __sparc__
23-
76800, 153600, 307200, 614400, 921600
23+
76800, 153600, 307200, 614400, 921600, 500000, 576000,
24+
1000000, 1152000, 1500000, 2000000
2425
#else
2526
500000, 576000, 921600, 1000000, 1152000, 1500000, 2000000,
2627
2500000, 3000000, 3500000, 4000000
@@ -31,7 +32,8 @@ static const tcflag_t baud_bits[] = {
3132
B0, B50, B75, B110, B134, B150, B200, B300, B600, B1200, B1800, B2400,
3233
B4800, B9600, B19200, B38400, B57600, B115200, B230400, B460800,
3334
#ifdef __sparc__
34-
B76800, B153600, B307200, B614400, B921600
35+
B76800, B153600, B307200, B614400, B921600, B500000, B576000,
36+
B1000000, B1152000, B1500000, B2000000
3537
#else
3638
B500000, B576000, B921600, B1000000, B1152000, B1500000, B2000000,
3739
B2500000, B3000000, B3500000, B4000000

0 commit comments

Comments
 (0)