x1000: enable DMA for USB driver
This boosts USB transfer performance a bit, ~10% for reads and ~25% for writes, for large-ish file transfers. Rockbox is still around 33-50% slower than the OF. Change-Id: I236a1e5c69a290c47ed27b70cb2631111fc157ed
This commit is contained in:
parent
4fc37eb47f
commit
d085d01f5e
3 changed files with 12 additions and 3 deletions
|
@ -106,7 +106,6 @@
|
|||
/* USB support */
|
||||
#ifndef SIMULATOR
|
||||
#define CONFIG_USBOTG USBOTG_DESIGNWARE
|
||||
#define USB_DW_ARCH_SLAVE
|
||||
#define USB_DW_TURNAROUND 5
|
||||
#define HAVE_USBSTACK
|
||||
#define USB_VENDOR_ID 0xc502
|
||||
|
@ -117,6 +116,10 @@
|
|||
#define HAVE_USB_CHARGING_IN_THREAD
|
||||
#define TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE
|
||||
#define HAVE_BOOTLOADER_USB_MODE
|
||||
/* This appears to improve transfer performance (the default is 64 KiB).
|
||||
* Going any higher doesn't help but we're still slower than the OF. */
|
||||
#define USB_READ_BUFFER_SIZE (128 * 1024)
|
||||
#define USB_WRITE_BUFFER_SIZE (128 * 1024)
|
||||
#endif
|
||||
|
||||
/* Rockbox capabilities */
|
||||
|
|
|
@ -106,7 +106,6 @@
|
|||
/* USB support */
|
||||
#ifndef SIMULATOR
|
||||
#define CONFIG_USBOTG USBOTG_DESIGNWARE
|
||||
#define USB_DW_ARCH_SLAVE
|
||||
#define USB_DW_TURNAROUND 5
|
||||
#define HAVE_USBSTACK
|
||||
#define USB_VENDOR_ID 0x2972
|
||||
|
@ -117,6 +116,10 @@
|
|||
#define HAVE_USB_CHARGING_IN_THREAD
|
||||
#define TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE
|
||||
#define HAVE_BOOTLOADER_USB_MODE
|
||||
/* This appears to improve transfer performance (the default is 64 KiB).
|
||||
* Going any higher doesn't help but we're still slower than the OF. */
|
||||
#define USB_READ_BUFFER_SIZE (128 * 1024)
|
||||
#define USB_WRITE_BUFFER_SIZE (128 * 1024)
|
||||
#endif
|
||||
|
||||
/* Rockbox capabilities */
|
||||
|
|
|
@ -96,7 +96,6 @@
|
|||
/* USB support */
|
||||
#ifndef SIMULATOR
|
||||
#define CONFIG_USBOTG USBOTG_DESIGNWARE
|
||||
#define USB_DW_ARCH_SLAVE
|
||||
#define USB_DW_TURNAROUND 5
|
||||
#define HAVE_USBSTACK
|
||||
#define USB_VENDOR_ID 0x0525 /* Same as the xDuuo X3, for some reason. */
|
||||
|
@ -107,6 +106,10 @@
|
|||
#define HAVE_USB_CHARGING_IN_THREAD
|
||||
#define TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE
|
||||
#define HAVE_BOOTLOADER_USB_MODE
|
||||
/* This appears to improve transfer performance (the default is 64 KiB).
|
||||
* Going any higher doesn't help but we're still slower than the OF. */
|
||||
#define USB_READ_BUFFER_SIZE (128 * 1024)
|
||||
#define USB_WRITE_BUFFER_SIZE (128 * 1024)
|
||||
#endif
|
||||
|
||||
/* Rockbox capabilities */
|
||||
|
|
Loading…
Reference in a new issue