Skip to content

Commit d528b9b

Browse files
committedMar 10, 2021
driver: add support for 'PLEX PX-MLT5U'
1 parent d24051b commit d528b9b

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed
 

‎driver/px4_usb.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ static int px4_usb_probe(struct usb_interface *intf,
107107
case 0x0511:
108108
{
109109
bool px4_use_mldev = false;
110+
enum pxmlt_model pxmlt5_model = PXMLT5PE_MODEL;
110111
enum pxmlt_model pxmlt8_model = PXMLT8PE5_MODEL;
111112

112113
switch (id->idProduct) {
@@ -134,14 +135,17 @@ static int px4_usb_probe(struct usb_interface *intf,
134135
&ctx->quit_completion);
135136
break;
136137

138+
case USB_PID_PX_MLT5U:
139+
pxmlt5_model = PXMLT5U_MODEL;
140+
/* fall through */
137141
case USB_PID_PX_MLT5PE:
138142
ret = px4_usb_init_bridge(dev, usb_dev,
139143
&ctx->ctx.pxmlt.it930x);
140144
if (ret)
141145
break;
142146

143147
ctx->type = PXMLT5_USB_DEVICE;
144-
ret = pxmlt_device_init(&ctx->ctx.pxmlt, dev, PXMLT5PE_MODEL,
148+
ret = pxmlt_device_init(&ctx->ctx.pxmlt, dev, pxmlt5_model,
145149
px4_usb_chrdev_ctx[PXMLT5_USB_DEVICE],
146150
&ctx->quit_completion);
147151
break;
@@ -273,6 +277,7 @@ static const struct usb_device_id px4_usb_ids[] = {
273277
{ USB_DEVICE(0x0511, USB_PID_PX_Q3PE4) },
274278
{ USB_DEVICE(0x0511, USB_PID_PX_W3PE5) },
275279
{ USB_DEVICE(0x0511, USB_PID_PX_Q3PE5) },
280+
{ USB_DEVICE(0x0511, USB_PID_PX_MLT5U) },
276281
{ USB_DEVICE(0x0511, USB_PID_PX_MLT5PE) },
277282
{ USB_DEVICE(0x0511, USB_PID_PX_MLT8PE3) },
278283
{ USB_DEVICE(0x0511, USB_PID_PX_MLT8PE5) },

‎driver/px4_usb.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define USB_PID_PX_Q3PE4 0x024a
1515
#define USB_PID_PX_W3PE5 0x073f
1616
#define USB_PID_PX_Q3PE5 0x074a
17+
#define USB_PID_PX_MLT5U 0x084e
1718
#define USB_PID_PX_MLT5PE 0x024e
1819
#define USB_PID_PX_MLT8PE3 0x0252
1920
#define USB_PID_PX_MLT8PE5 0x0253

‎driver/pxmlt_device.c

+2
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,8 @@ static const struct {
856856
u8 i2c_bus;
857857
u8 port_number;
858858
} pxmlt_device_params[][5] = {
859+
/* PX-MLT5U */
860+
{ { 0x65, 3, 4 }, { 0x6c, 1, 3 }, { 0x64, 1, 1 }, { 0x6c, 3, 2 }, { 0x64, 3, 0 } },
859861
/* PX-MLT5PE */
860862
{ { 0x65, 3, 0 }, { 0x6c, 1, 1 }, { 0x64, 1, 2 }, { 0x6c, 3, 3 }, { 0x64, 3, 4 } },
861863
/* PX-MLT8PE3 */

‎driver/pxmlt_device.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#define ISDB6014_4TS_CHRDEV_NUM 4
2828

2929
enum pxmlt_model {
30-
PXMLT5PE_MODEL = 0,
30+
PXMLT5U_MODEL = 0,
31+
PXMLT5PE_MODEL,
3132
PXMLT8PE3_MODEL,
3233
PXMLT8PE5_MODEL,
3334
ISDB6014_4TS_MODEL

0 commit comments

Comments
 (0)
Please sign in to comment.