lkml.org 
[lkml]   [2020]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.5 090/189] serial: 8250_exar: add support for ACCES cards
    Date
    From: Jay Dolan <jay.dolan@accesio.com>

    commit 10c5ccc3c6d32f3d7d6c07de1d3f0f4b52f3e3ab upstream.

    Add ACCES VIDs and PIDs that use the Exar chips

    Signed-off-by: Jay Dolan <jay.dolan@accesio.com>
    Cc: stable <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/20200305140504.22237-1-jay.dolan@accesio.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/tty/serial/8250/8250_exar.c | 33 +++++++++++++++++++++++++++++++++
    1 file changed, 33 insertions(+)

    --- a/drivers/tty/serial/8250/8250_exar.c
    +++ b/drivers/tty/serial/8250/8250_exar.c
    @@ -25,6 +25,14 @@

    #include "8250.h"

    +#define PCI_DEVICE_ID_ACCES_COM_2S 0x1052
    +#define PCI_DEVICE_ID_ACCES_COM_4S 0x105d
    +#define PCI_DEVICE_ID_ACCES_COM_8S 0x106c
    +#define PCI_DEVICE_ID_ACCES_COM232_8 0x10a8
    +#define PCI_DEVICE_ID_ACCES_COM_2SM 0x10d2
    +#define PCI_DEVICE_ID_ACCES_COM_4SM 0x10db
    +#define PCI_DEVICE_ID_ACCES_COM_8SM 0x10ea
    +
    #define PCI_DEVICE_ID_COMMTECH_4224PCI335 0x0002
    #define PCI_DEVICE_ID_COMMTECH_4222PCI335 0x0004
    #define PCI_DEVICE_ID_COMMTECH_2324PCI335 0x000a
    @@ -677,6 +685,22 @@ static int __maybe_unused exar_resume(st

    static SIMPLE_DEV_PM_OPS(exar_pci_pm, exar_suspend, exar_resume);

    +static const struct exar8250_board acces_com_2x = {
    + .num_ports = 2,
    + .setup = pci_xr17c154_setup,
    +};
    +
    +static const struct exar8250_board acces_com_4x = {
    + .num_ports = 4,
    + .setup = pci_xr17c154_setup,
    +};
    +
    +static const struct exar8250_board acces_com_8x = {
    + .num_ports = 8,
    + .setup = pci_xr17c154_setup,
    +};
    +
    +
    static const struct exar8250_board pbn_fastcom335_2 = {
    .num_ports = 2,
    .setup = pci_fastcom335_setup,
    @@ -745,6 +769,15 @@ static const struct exar8250_board pbn_e
    }

    static const struct pci_device_id exar_pci_tbl[] = {
    + EXAR_DEVICE(ACCESSIO, ACCES_COM_2S, acces_com_2x),
    + EXAR_DEVICE(ACCESSIO, ACCES_COM_4S, acces_com_4x),
    + EXAR_DEVICE(ACCESSIO, ACCES_COM_8S, acces_com_8x),
    + EXAR_DEVICE(ACCESSIO, ACCES_COM232_8, acces_com_8x),
    + EXAR_DEVICE(ACCESSIO, ACCES_COM_2SM, acces_com_2x),
    + EXAR_DEVICE(ACCESSIO, ACCES_COM_4SM, acces_com_4x),
    + EXAR_DEVICE(ACCESSIO, ACCES_COM_8SM, acces_com_8x),
    +
    +
    CONNECT_DEVICE(XR17C152, UART_2_232, pbn_connect),
    CONNECT_DEVICE(XR17C154, UART_4_232, pbn_connect),
    CONNECT_DEVICE(XR17C158, UART_8_232, pbn_connect),

    \
     
     \ /
      Last update: 2020-03-10 14:00    [W:2.288 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site