UPSTREAM: usb: dwc2: Improve handling of host and device hwparams
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc2 / core.h
index 0263edfef9b86d180d7c78ed0cc6466759374349..ff239ee4fc374656b2373df979580350c42a22b1 100644 (file)
@@ -486,6 +486,7 @@ struct dwc2_core_params {
  *                       1 - 16 bits
  *                       2 - 8 or 16 bits
  * @snpsid:             Value from SNPSID register
+ * @dev_ep_dirs:        Direction of device endpoints (GHWCFG1)
  */
 struct dwc2_hw_params {
        unsigned op_mode:3;
@@ -496,6 +497,7 @@ struct dwc2_hw_params {
        unsigned en_multiple_tx_fifo:1;
        unsigned host_rx_fifo_size:16;
        unsigned host_nperio_tx_fifo_size:16;
+       unsigned dev_nperio_tx_fifo_size:16;
        unsigned host_perio_tx_fifo_size:16;
        unsigned nperio_tx_q_depth:3;
        unsigned host_perio_tx_q_depth:3;
@@ -512,6 +514,7 @@ struct dwc2_hw_params {
        unsigned power_optimized:1;
        unsigned utmi_phy_data_width:2;
        u32 snpsid;
+       u32 dev_ep_dirs;
 };
 
 /* Size of control and EP0 buffers */