multicomp: update to termios masking
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:00:39 +0000 (14:00 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Oct 2018 13:00:39 +0000 (14:00 +0100)
Kernel/platform-multicomp09/devtty.c

index c922645..cb9365f 100644 (file)
@@ -76,6 +76,29 @@ struct s_queue ttyinq[NUM_DEV_TTY + 1] = {
        {tbufa, tbufa, tbufa, TTYSIZ, 0, TTYSIZ / 2},
 };
 
+static tcflag_t console_mask[4] = {
+       _ISYS,
+       _OSYS,
+       _CSYS,
+       _LSYS
+};
+
+tcflag_t *termios_mask[NUM_DEV_TTY + 1] = {
+       NULL,
+       /* Virtual UART */
+       console_mask,
+       console_mask,
+       /* Drivewire */
+       console_mask,
+       console_mask,
+       console_mask,
+       console_mask,
+       /* Virtual Window */
+       console_mask,
+       console_mask,
+       console_mask,
+       console_mask
+};
 
 
 /* A wrapper for tty_close that closes the DW port properly */