driver: add support for 'PLEX PX-MLT5U'

This commit is contained in:
nns779
2021-03-10 20:57:18 +09:00
parent d24051bb3e
commit d528b9b6af
4 changed files with 11 additions and 2 deletions

View File

@@ -107,6 +107,7 @@ static int px4_usb_probe(struct usb_interface *intf,
case 0x0511:
{
bool px4_use_mldev = false;
enum pxmlt_model pxmlt5_model = PXMLT5PE_MODEL;
enum pxmlt_model pxmlt8_model = PXMLT8PE5_MODEL;
switch (id->idProduct) {
@@ -134,6 +135,9 @@ static int px4_usb_probe(struct usb_interface *intf,
&ctx->quit_completion);
break;
case USB_PID_PX_MLT5U:
pxmlt5_model = PXMLT5U_MODEL;
/* fall through */
case USB_PID_PX_MLT5PE:
ret = px4_usb_init_bridge(dev, usb_dev,
&ctx->ctx.pxmlt.it930x);
@@ -141,7 +145,7 @@ static int px4_usb_probe(struct usb_interface *intf,
break;
ctx->type = PXMLT5_USB_DEVICE;
ret = pxmlt_device_init(&ctx->ctx.pxmlt, dev, PXMLT5PE_MODEL,
ret = pxmlt_device_init(&ctx->ctx.pxmlt, dev, pxmlt5_model,
px4_usb_chrdev_ctx[PXMLT5_USB_DEVICE],
&ctx->quit_completion);
break;
@@ -273,6 +277,7 @@ static const struct usb_device_id px4_usb_ids[] = {
{ USB_DEVICE(0x0511, USB_PID_PX_Q3PE4) },
{ USB_DEVICE(0x0511, USB_PID_PX_W3PE5) },
{ USB_DEVICE(0x0511, USB_PID_PX_Q3PE5) },
{ USB_DEVICE(0x0511, USB_PID_PX_MLT5U) },
{ USB_DEVICE(0x0511, USB_PID_PX_MLT5PE) },
{ USB_DEVICE(0x0511, USB_PID_PX_MLT8PE3) },
{ USB_DEVICE(0x0511, USB_PID_PX_MLT8PE5) },

View File

@@ -14,6 +14,7 @@
#define USB_PID_PX_Q3PE4 0x024a
#define USB_PID_PX_W3PE5 0x073f
#define USB_PID_PX_Q3PE5 0x074a
#define USB_PID_PX_MLT5U 0x084e
#define USB_PID_PX_MLT5PE 0x024e
#define USB_PID_PX_MLT8PE3 0x0252
#define USB_PID_PX_MLT8PE5 0x0253

View File

@@ -856,6 +856,8 @@ static const struct {
u8 i2c_bus;
u8 port_number;
} pxmlt_device_params[][5] = {
/* PX-MLT5U */
{ { 0x65, 3, 4 }, { 0x6c, 1, 3 }, { 0x64, 1, 1 }, { 0x6c, 3, 2 }, { 0x64, 3, 0 } },
/* PX-MLT5PE */
{ { 0x65, 3, 0 }, { 0x6c, 1, 1 }, { 0x64, 1, 2 }, { 0x6c, 3, 3 }, { 0x64, 3, 4 } },
/* PX-MLT8PE3 */

View File

@@ -27,7 +27,8 @@
#define ISDB6014_4TS_CHRDEV_NUM 4
enum pxmlt_model {
PXMLT5PE_MODEL = 0,
PXMLT5U_MODEL = 0,
PXMLT5PE_MODEL,
PXMLT8PE3_MODEL,
PXMLT8PE5_MODEL,
ISDB6014_4TS_MODEL