1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 21:10:17 +02:00

More udc cleanup

This commit is contained in:
Lars-Peter Clausen 2009-09-09 19:34:24 +02:00 committed by Xiangfu Liu
parent 88f159b443
commit 935e79e5ab
2 changed files with 2 additions and 29 deletions

View File

@ -90,32 +90,4 @@ extern struct jz4740_udc *the_controller;
#define ep_index(EP) ((EP)->bEndpointAddress&0xF) #define ep_index(EP) ((EP)->bEndpointAddress&0xF)
#define usb_set_index(i) (REG8(USB_REG_INDEX) = (i)) #define usb_set_index(i) (REG8(USB_REG_INDEX) = (i))
/*-------------------------------------------------------------------------*/
/* 2.5 stuff that's sometimes missing in 2.4 */
#ifndef container_of
#define container_of list_entry
#endif
#ifndef likely
#define likely(x) (x)
#define unlikely(x) (x)
#endif
#ifndef BUG_ON
#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
#endif
#ifndef WARN_ON
#define WARN_ON(x) do { } while (0)
#endif
#ifndef IRQ_NONE
typedef void irqreturn_t;
#define IRQ_NONE
#define IRQ_HANDLED
#define IRQ_RETVAL(x)
#endif
#endif /* __USB_GADGET_JZ4740_H__ */ #endif /* __USB_GADGET_JZ4740_H__ */

View File

@ -93,13 +93,14 @@ diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 7f8e83a..a973ce7 100644 index 7f8e83a..a973ce7 100644
--- a/drivers/usb/gadget/Kconfig --- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig
@@ -121,11 +121,24 @@ choice @@ -121,11 +121,25 @@ choice
# #
# Integrated controllers # Integrated controllers
# #
+config USB_GADGET_JZ4740 +config USB_GADGET_JZ4740
+ boolean "JZ4740 UDC" + boolean "JZ4740 UDC"
+ depends on SOC_JZ4740 + depends on SOC_JZ4740
+ select USB_GADGET_SELECTED
+ select USB_GADGET_DUALSPEED + select USB_GADGET_DUALSPEED
+ help + help
+ Select this to support the Ingenic JZ4740 processor + Select this to support the Ingenic JZ4740 processor