Ignore:
Timestamp:
2011-07-03T17:02:06+02:00 (5 years ago)
Author:
juhosg
Message:

ramips: add 2.6.39 support

Based on the patches from #9625

Location:
trunk/target/linux/ramips/patches-2.6.39
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/patches-2.6.39/101-rt288x_serial_driver_hack.patch

    r27395 r27396  
    1 --- a/drivers/serial/8250.c 
    2 +++ b/drivers/serial/8250.c 
     1--- a/drivers/tty/serial/8250.c 
     2+++ b/drivers/tty/serial/8250.c 
    33@@ -305,9 +305,9 @@ static const struct serial8250_config ua 
    44        }, 
     
    1313        [UART_RX]  = 0, 
    1414        [UART_IER] = 2, 
    15 @@ -571,8 +571,8 @@ static inline void _serial_dl_write(stru 
     15@@ -597,8 +597,8 @@ static inline void _serial_dl_write(stru 
    1616        serial_outp(up, UART_DLM, value >> 8 & 0xff); 
    1717 } 
     
    2424 { 
    2525        if (up->port.iotype == UPIO_AU) 
    26 @@ -779,22 +779,19 @@ static int size_fifo(struct uart_8250_po 
     26@@ -805,22 +805,19 @@ static int size_fifo(struct uart_8250_po 
    2727  */ 
    2828 static unsigned int autoconfig_read_divisor_id(struct uart_8250_port *p) 
     
    3434  
    3535        old_lcr = serial_inp(p, UART_LCR); 
    36         serial_outp(p, UART_LCR, UART_LCR_DLAB); 
     36        serial_outp(p, UART_LCR, UART_LCR_CONF_MODE_A); 
    3737  
    3838-       old_dll = serial_inp(p, UART_DLL); 
     
    5353  
    5454        return id; 
    55 --- a/drivers/serial/Kconfig 
    56 +++ b/drivers/serial/Kconfig 
     55@@ -946,7 +943,7 @@ static int broken_efr(struct uart_8250_p 
     56        /* 
     57         * Exar ST16C2550 "A2" devices incorrectly detect as 
     58         * having an EFR, and report an ID of 0x0201.  See 
     59-        * http://linux.derkeiler.com/Mailing-Lists/Kernel/2004-11/4812.html  
     60+        * http://linux.derkeiler.com/Mailing-Lists/Kernel/2004-11/4812.html 
     61         */ 
     62        if (autoconfig_read_divisor_id(up) == 0x0201 && size_fifo(up) == 16) 
     63                return 1; 
     64--- a/drivers/tty/serial/Kconfig 
     65+++ b/drivers/tty/serial/Kconfig 
    5766@@ -258,6 +258,14 @@ config SERIAL_8250_ACORN 
    5867          system, say Y to this option.  The driver can handle 1, 2, or 3 port 
     
    7281--- a/include/linux/serial_core.h 
    7382+++ b/include/linux/serial_core.h 
    74 @@ -307,7 +307,7 @@ struct uart_port { 
     83@@ -311,7 +311,7 @@ struct uart_port { 
    7584 #define UPIO_HUB6              (1) 
    7685 #define UPIO_MEM               (2) 
Note: See TracChangeset for help on using the changeset viewer.