PCH_UART_HANDLED_LS_INT_SHIFT,
 };
 
-enum {
-       PCH_UART_8LINE,
-       PCH_UART_2LINE,
-};
-
 #define PCH_UART_DRIVER_DEVICE "ttyPCH"
 
 /* Set the max number of UART port
 
 /**
  * struct pch_uart_driver_data - private data structure for UART-DMA
- * @port_type:                 The number of DMA channel
+ * @port_type:                 The type of UART port
  * @line_no:                   UART port line number (0, 1, 2...)
  */
 struct pch_uart_driver_data {
 };
 
 static struct pch_uart_driver_data drv_dat[] = {
-       [pch_et20t_uart0] = {PCH_UART_8LINE, 0},
-       [pch_et20t_uart1] = {PCH_UART_2LINE, 1},
-       [pch_et20t_uart2] = {PCH_UART_2LINE, 2},
-       [pch_et20t_uart3] = {PCH_UART_2LINE, 3},
-       [pch_ml7213_uart0] = {PCH_UART_8LINE, 0},
-       [pch_ml7213_uart1] = {PCH_UART_2LINE, 1},
-       [pch_ml7213_uart2] = {PCH_UART_2LINE, 2},
-       [pch_ml7223_uart0] = {PCH_UART_8LINE, 0},
-       [pch_ml7223_uart1] = {PCH_UART_2LINE, 1},
-       [pch_ml7831_uart0] = {PCH_UART_8LINE, 0},
-       [pch_ml7831_uart1] = {PCH_UART_2LINE, 1},
+       [pch_et20t_uart0] = {PORT_PCH_8LINE, 0},
+       [pch_et20t_uart1] = {PORT_PCH_2LINE, 1},
+       [pch_et20t_uart2] = {PORT_PCH_2LINE, 2},
+       [pch_et20t_uart3] = {PORT_PCH_2LINE, 3},
+       [pch_ml7213_uart0] = {PORT_PCH_8LINE, 0},
+       [pch_ml7213_uart1] = {PORT_PCH_2LINE, 1},
+       [pch_ml7213_uart2] = {PORT_PCH_2LINE, 2},
+       [pch_ml7223_uart0] = {PORT_PCH_8LINE, 0},
+       [pch_ml7223_uart1] = {PORT_PCH_2LINE, 1},
+       [pch_ml7831_uart0] = {PORT_PCH_8LINE, 0},
+       [pch_ml7831_uart1] = {PORT_PCH_2LINE, 1},
 };
 
 #ifdef CONFIG_SERIAL_PCH_UART_CONSOLE
                goto init_port_free_txbuf;
 
        switch (port_type) {
-       case PORT_UNKNOWN:
+       case PORT_PCH_8LINE:
                fifosize = 256; /* EG20T/ML7213: UART0 */
                break;
-       case PORT_8250:
+       case PORT_PCH_2LINE:
                fifosize = 64; /* EG20T:UART1~3  ML7213: UART1~2*/
                break;
        default:
 
        priv->fifo_size = fifosize;
        priv->uartclk = pch_uart_get_uartclk();
-       priv->port_type = PORT_MAX_8250 + port_type + 1;
+       priv->port_type = port_type;
        priv->port.dev = &pdev->dev;
        priv->port.iobase = iobase;
        priv->port.membase = NULL;