diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-05-27 22:24:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 18:15:58 -0400 |
commit | bb24280ffce6a8bc6b03d29a43ec16ac14e9ec85 (patch) | |
tree | c344f66890f16a386429b72245bb4443c5e94906 /drivers/usb/gadget/at91_udc.c | |
parent | e184d5fcaac9676bd83a956a774a04a72bf2b28b (diff) |
USB: at91_udc: updated fifo sizes
It turns out newer versions of the AT91 UDC hardware have increased
sizes of some of the FIFOs. Reporting that is a Good Thing.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/at91_udc.c')
-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; |