diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/at91_udc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index b6b2a0a5ba37..e2d8a5d86c40 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c | |||
@@ -1687,6 +1687,19 @@ static int __init at91udc_probe(struct platform_device *pdev) | |||
1687 | udc->board.pullup_active_low); | 1687 | udc->board.pullup_active_low); |
1688 | } | 1688 | } |
1689 | 1689 | ||
1690 | /* newer chips have more FIFO memory than rm9200 */ | ||
1691 | if (cpu_is_at91sam9260()) { | ||
1692 | udc->ep[0].maxpacket = 64; | ||
1693 | udc->ep[3].maxpacket = 64; | ||
1694 | udc->ep[4].maxpacket = 512; | ||
1695 | udc->ep[5].maxpacket = 512; | ||
1696 | } else if (cpu_is_at91sam9261()) { | ||
1697 | udc->ep[3].maxpacket = 64; | ||
1698 | } else if (cpu_is_at91sam9263()) { | ||
1699 | udc->ep[0].maxpacket = 64; | ||
1700 | udc->ep[3].maxpacket = 64; | ||
1701 | } | ||
1702 | |||
1690 | udc->udp_baseaddr = ioremap(res->start, res->end - res->start + 1); | 1703 | udc->udp_baseaddr = ioremap(res->start, res->end - res->start + 1); |
1691 | if (!udc->udp_baseaddr) { | 1704 | if (!udc->udp_baseaddr) { |
1692 | retval = -ENOMEM; | 1705 | retval = -ENOMEM; |