From ab475d121c6e53aeb811c34d2c0049ba3c1775a5 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 31 Dec 2011 14:42:10 +0000 Subject: 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 --- firmware/usbstack/usb_storage.c | 4 ++-- 1 file 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 -- cgit v1.2.3