summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-12-31 14:42:10 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-12-31 14:42:10 +0000
commitab475d121c6e53aeb811c34d2c0049ba3c1775a5 (patch)
treeb2c70c9f5a27843ee1a51eb0ba545d25dcb216fa /firmware/usbstack
parent11707abd400f91a80bad3f95872907234a1b507d (diff)
downloadrockbox-ab475d121c6e53aeb811c34d2c0049ba3c1775a5.tar.gz
rockbox-ab475d121c6e53aeb811c34d2c0049ba3c1775a5.tar.bz2
rockbox-ab475d121c6e53aeb811c34d2c0049ba3c1775a5.zip
The AMSv1 driver limitation that disallows 64K transfers is a USB core limitation, not a CPU limitation, so use the appropriate defines to test for it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31476 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack')
-rw-r--r--firmware/usbstack/usb_storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index 8d1b94bf7a..1b271b9c98 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -67,7 +67,7 @@
#ifdef USB_READ_BUFFER_SIZE
#define READ_BUFFER_SIZE USB_READ_BUFFER_SIZE
#else
-#if CONFIG_CPU == AS3525
+#if CONFIG_USBOTG == USBOTG_AS3525
/* We'd need to implement multidescriptor dma for sizes >65535 */
#define READ_BUFFER_SIZE (1024*63)
#else
@@ -81,7 +81,7 @@
#define WRITE_BUFFER_SIZE USB_WRITE_BUFFER_SIZE
#else
#if (CONFIG_STORAGE & STORAGE_SD)
-#if CONFIG_CPU == AS3525
+#if CONFIG_USBOTG == USBOTG_AS3525
/* We'd need to implement multidescriptor dma for sizes >65535 */
#define WRITE_BUFFER_SIZE (1024*63)
#else