Commit 4d75c8bd authored by Robert Baldyga's avatar Robert Baldyga Committed by Felipe Balbi

usb: gadget: lpc32xx_udc: add ep capabilities support

Convert endpoint configuration to new capabilities model.
Signed-off-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 89226992
...@@ -2575,6 +2575,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2575,6 +2575,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep0", .name = "ep0",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_CONTROL,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 0, .hwep_num_base = 0,
...@@ -2586,6 +2588,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2586,6 +2588,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep1-int", .name = "ep1-int",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_INT,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 2, .hwep_num_base = 2,
...@@ -2597,6 +2601,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2597,6 +2601,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep2-bulk", .name = "ep2-bulk",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 4, .hwep_num_base = 4,
...@@ -2608,6 +2614,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2608,6 +2614,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep3-iso", .name = "ep3-iso",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_ISO,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 1023, .maxpacket = 1023,
.hwep_num_base = 6, .hwep_num_base = 6,
...@@ -2619,6 +2627,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2619,6 +2627,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep4-int", .name = "ep4-int",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_INT,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 8, .hwep_num_base = 8,
...@@ -2630,6 +2640,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2630,6 +2640,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep5-bulk", .name = "ep5-bulk",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 10, .hwep_num_base = 10,
...@@ -2641,6 +2653,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2641,6 +2653,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep6-iso", .name = "ep6-iso",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_ISO,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 1023, .maxpacket = 1023,
.hwep_num_base = 12, .hwep_num_base = 12,
...@@ -2652,6 +2666,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2652,6 +2666,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep7-int", .name = "ep7-int",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_INT,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 14, .hwep_num_base = 14,
...@@ -2663,6 +2679,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2663,6 +2679,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep8-bulk", .name = "ep8-bulk",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 16, .hwep_num_base = 16,
...@@ -2674,6 +2692,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2674,6 +2692,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep9-iso", .name = "ep9-iso",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_ISO,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 1023, .maxpacket = 1023,
.hwep_num_base = 18, .hwep_num_base = 18,
...@@ -2685,6 +2705,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2685,6 +2705,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep10-int", .name = "ep10-int",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_INT,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 20, .hwep_num_base = 20,
...@@ -2696,6 +2718,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2696,6 +2718,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep11-bulk", .name = "ep11-bulk",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 22, .hwep_num_base = 22,
...@@ -2707,6 +2731,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2707,6 +2731,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep12-iso", .name = "ep12-iso",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_ISO,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 1023, .maxpacket = 1023,
.hwep_num_base = 24, .hwep_num_base = 24,
...@@ -2718,6 +2744,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2718,6 +2744,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep13-int", .name = "ep13-int",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_INT,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 26, .hwep_num_base = 26,
...@@ -2729,6 +2757,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2729,6 +2757,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep14-bulk", .name = "ep14-bulk",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 64, .maxpacket = 64,
.hwep_num_base = 28, .hwep_num_base = 28,
...@@ -2740,6 +2770,8 @@ static const struct lpc32xx_udc controller_template = { ...@@ -2740,6 +2770,8 @@ static const struct lpc32xx_udc controller_template = {
.ep = { .ep = {
.name = "ep15-bulk", .name = "ep15-bulk",
.ops = &lpc32xx_ep_ops, .ops = &lpc32xx_ep_ops,
.caps = USB_EP_CAPS(USB_EP_CAPS_TYPE_BULK,
USB_EP_CAPS_DIR_ALL),
}, },
.maxpacket = 1023, .maxpacket = 1023,
.hwep_num_base = 30, .hwep_num_base = 30,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment