Skip to content

Commit

Permalink
usb: dwc2: gadget: add bi-directional endpoint support
Browse files Browse the repository at this point in the history
GHWCFG1 provides hardware configuration of each endpoint. Use
it to configure the endpoints instead of assuming all even
endpoint are OUT and all odd endpoints are IN.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Mian Yousaf Kaukab authored and Felipe Balbi committed Jan 12, 2015
1 parent b2f93ef commit c6f5c05
Show file tree
Hide file tree
Showing 2 changed files with 210 additions and 119 deletions.
3 changes: 2 additions & 1 deletion drivers/usb/dwc2/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,8 @@ struct dwc2_hsotg {
unsigned int connected:1;
unsigned int setup:1;
unsigned long last_rst;
struct s3c_hsotg_ep *eps;
struct s3c_hsotg_ep *eps_in[MAX_EPS_CHANNELS];
struct s3c_hsotg_ep *eps_out[MAX_EPS_CHANNELS];
u32 g_using_dma;
#endif /* CONFIG_USB_DWC2_PERIPHERAL || CONFIG_USB_DWC2_DUAL_ROLE */
};
Expand Down
Loading

0 comments on commit c6f5c05

Please sign in to comment.