genie-e64: update termios masking
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:01:09 +0000 (14:01 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:01:09 +0000 (14:01 +0100)
Kernel/platform-genie-eg64/devtty.c

index 9c2c1ee..de204f9 100644 (file)
@@ -51,6 +51,37 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {   /* ttyinq[0] is never used */
        {tbuf3, tbuf3, tbuf3, TTYSIZ, 0, TTYSIZ / 2},
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+static tcflag_t uart_mask[4] = {
+       _ISYS,
+       _OSYS,
+       /* Need to review CSTOPB */
+       _CSYS|CBAUD|CSIZE|PARENB|PARODD|CRTSCTS,
+       _LSYS
+};
+
+static tcflag_t uartnb_mask[4] = {
+       _ISYS,
+       _OSYS,
+       /* Need to review CSTOPB */
+       _CSYS|CSIZE|PARENB|PARODD|CRTSCTS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       console_mask,
+       uart_mask,
+       /* FIXME: set both to uartnb_mask on LNW80 */
+       uartnb_mask
+};
+
 static uint8_t trs_flow;               /* RTS/CTS */
 
 /* Write to system console */