File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 23
23
/* Enable print with color */
24
24
#define CONFIG_USB_PRINTF_COLOR_ENABLE
25
25
26
+ // #define CONFIG_USB_DCACHE_ENABLE
27
+
26
28
/* data align size when use dma or use dcache */
27
- #ifndef CONFIG_USB_ALIGN_SIZE
29
+ #ifdef CONFIG_USB_DCACHE_ENABLE
30
+ #define CONFIG_USB_ALIGN_SIZE 32 // 32 or 64
31
+ #else
28
32
#define CONFIG_USB_ALIGN_SIZE 4
29
33
#endif
30
34
31
- // #define CONFIG_USB_DCACHE_ENABLE
32
-
33
35
/* attribute data into no cache ram */
34
36
#define USB_NOCACHE_RAM_SECTION __attribute__((section(".noncacheable")))
35
37
332
334
/* ---------------- MUSB Configuration ---------------- */
333
335
// #define CONFIG_USB_MUSB_SUNXI
334
336
335
- /* ================ USB Dcache Configuration ==================*/
336
- // #define CONFIG_USB_DCACHE_ENABLE
337
- // #undef CONFIG_USB_ALIGN_SIZE
338
- // #define CONFIG_USB_ALIGN_SIZE 32
339
-
340
337
#ifndef usb_phyaddr2ramaddr
341
338
#define usb_phyaddr2ramaddr (addr ) (addr)
342
339
#endif
You can’t perform that action at this time.
0 commit comments