1 /* 2 * drivers/usb/sunxi_usb/udc/sunxi_udc_config.h 3 * (C) Copyright 2010-2015 4 * Allwinner Technology Co., Ltd. <www.allwinnertech.com> 5 * javen, 2010-3-3, create this file 6 * 7 * usb udc config. 8 * 9 * This program is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License as 11 * published by the Free Software Foundation; either version 2 of 12 * the License, or (at your option) any later version. 13 * 14 */ 15 16 #ifndef __SUNXI_UDC_CONFIG_H__ 17 #define __SUNXI_UDC_CONFIG_H__ 18 19 #include <linux/slab.h> 20 #include <linux/list.h> 21 #include <linux/interrupt.h> 22 #include <linux/errno.h> 23 #include <linux/clk.h> 24 #include <linux/device.h> 25 #include <linux/usb/ch9.h> 26 27 #define SW_UDC_DOUBLE_FIFO /* double FIFO */ 28 29 /** 30 * we previously deleted the "dma_flag" variable for GKI, which led to the 31 * loss of the flag that distinguishes some gadget modules to use DMA. 32 * Therefore, UDC does not provide DMA transmission. 33 */ 34 #define SW_UDC_DMA 35 36 /** 37 * only SUN8IW5 and later ic support inner dma, 38 * former ic(eg. SUN8IW1, SUN8IW3, SUN8IW2 etc) use outer dma. 39 */ 40 #ifdef SW_UDC_DMA 41 #define SW_UDC_DMA_INNER 42 #endif 43 44 #define SW_UDC_HS_TO_FS /* support HS to FS */ 45 #define SW_UDC_DEBUG 46 47 /* sw udc debug print */ 48 #if 0 49 #define DMSG_DBG_UDC DMSG_MSG 50 #else 51 #define DMSG_DBG_UDC(...) 52 #endif 53 54 #include "../include/sunxi_usb_config.h" 55 56 #endif /* __SUNXI_UDC_CONFIG_H__ */ 57