diff options
author | Li Yang <leoli@freescale.com> | 2007-06-06 21:13:44 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 16:34:30 -0700 |
commit | 4365831dadfeeeb4c9f8c4944e48ccf78c27f845 (patch) | |
tree | cf6eefc0d86403fb3a29b688407fb57cc4c9792b /drivers/usb/gadget/fsl_usb2_udc.h | |
parent | 37b5453dd4dafccec3fad636c28f1c3e3e14354f (diff) | |
download | linux-3.10-4365831dadfeeeb4c9f8c4944e48ccf78c27f845.tar.gz linux-3.10-4365831dadfeeeb4c9f8c4944e48ccf78c27f845.tar.bz2 linux-3.10-4365831dadfeeeb4c9f8c4944e48ccf78c27f845.zip |
USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register
Currently the driver is expecting max ep number in platform
data which isn't passing this information. This patch fix
the problem by reading it from DCCPARAMS(Device Controller
Capability Parameters) register. The change also need some
reordering of the probe code.
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/fsl_usb2_udc.h')
-rw-r--r-- | drivers/usb/gadget/fsl_usb2_udc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fsl_usb2_udc.h b/drivers/usb/gadget/fsl_usb2_udc.h index c6291e04650..832ab82b488 100644 --- a/drivers/usb/gadget/fsl_usb2_udc.h +++ b/drivers/usb/gadget/fsl_usb2_udc.h @@ -101,6 +101,10 @@ struct usb_sys_interface { #define WAIT_FOR_OUT_STATUS 3 #define DATA_STATE_RECV 4 +/* Device Controller Capability Parameter register */ +#define DCCPARAMS_DC 0x00000080 +#define DCCPARAMS_DEN_MASK 0x0000001f + /* Frame Index Register Bit Masks */ #define USB_FRINDEX_MASKS 0x3fff /* USB CMD Register Bit Masks */ |