From 1ef8cd769db7897ff0a1d2198b90021fc794c073 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 19 Jun 2010 20:39:38 +0000 Subject: as3525v2-usb: tweaks things but still doesn't work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26968 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/usb-drv-as3525v2.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'firmware/target/arm/as3525/usb-drv-as3525v2.h') diff --git a/firmware/target/arm/as3525/usb-drv-as3525v2.h b/firmware/target/arm/as3525/usb-drv-as3525v2.h index 37e8aee1e9..72dd8a0b5a 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525v2.h +++ b/firmware/target/arm/as3525/usb-drv-as3525v2.h @@ -121,7 +121,11 @@ #define USB_GAHBCFG_glblintrmsk (1 << 0) /** Global interrupt mask */ #define USB_GAHBCFG_hburstlen_bit_pos 1 +#define USB_GAHBCFG_INT_DMA_BURST_SINGLE 0 #define USB_GAHBCFG_INT_DMA_BURST_INCR 1 /** note: the linux patch has several other value, this is one picked for internal dma */ +#define USB_GAHBCFG_INT_DMA_BURST_INCR4 3 +#define USB_GAHBCFG_INT_DMA_BURST_INCR8 5 +#define USB_GAHBCFG_INT_DMA_BURST_INCR16 7 #define USB_GAHBCFG_dma_enable (1 << 5) /** Enable DMA */ /* NOTE: USB_GINTSTS bits are the same as in USB_GINTMSK plus the following one */ @@ -362,6 +366,20 @@ /** * Parameters */ +#define USB_USE_CUSTOM_FIFO_LAYOUT + +#ifdef USB_USE_CUSTOM_FIFO_LAYOUT +/* Data fifo: includes RX fifo, non period TX fifo and periodic fifos + * NOTE: this is a hardware parameter, it cannot be changed ! */ +#define USB_DATA_FIFO_DEPTH 0x535 +/* size of the FX fifo */ +#define USB_RX_FIFO_SIZE 0x100 +/* size of the non periodic TX fifo */ +#define USB_NPTX_FIFO_SIZE 0x100 +/* size of each TX ep fifo size */ +#define USB_EPTX_FIFO_SIZE 0x100 +#endif /* USB_USE_CUSTOM_FIFO_LAYOUT */ + /* Number of IN/OUT endpoints */ #define USB_NUM_IN_EP 3 #define USB_NUM_OUT_EP 2 -- cgit v1.2.3