Commit d21bcc3f authored by John Youn's avatar John Youn Committed by Felipe Balbi

usb: dwc2: Update parameter types

Update the param types to appropriately sized ints and bools.
Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent f9f93cbb
...@@ -452,50 +452,50 @@ enum dwc2_ep0_state { ...@@ -452,50 +452,50 @@ enum dwc2_ep0_state {
* default described above. * default described above.
*/ */
struct dwc2_core_params { struct dwc2_core_params {
int otg_cap; u8 otg_cap;
#define DWC2_CAP_PARAM_HNP_SRP_CAPABLE 0 #define DWC2_CAP_PARAM_HNP_SRP_CAPABLE 0
#define DWC2_CAP_PARAM_SRP_ONLY_CAPABLE 1 #define DWC2_CAP_PARAM_SRP_ONLY_CAPABLE 1
#define DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE 2 #define DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE 2
int dma_desc_enable; bool dma_desc_enable;
int dma_desc_fs_enable; bool dma_desc_fs_enable;
int speed; u8 speed;
#define DWC2_SPEED_PARAM_HIGH 0 #define DWC2_SPEED_PARAM_HIGH 0
#define DWC2_SPEED_PARAM_FULL 1 #define DWC2_SPEED_PARAM_FULL 1
#define DWC2_SPEED_PARAM_LOW 2 #define DWC2_SPEED_PARAM_LOW 2
int enable_dynamic_fifo; bool enable_dynamic_fifo;
int en_multiple_tx_fifo; bool en_multiple_tx_fifo;
int host_rx_fifo_size; u16 host_rx_fifo_size;
int host_nperio_tx_fifo_size; u16 host_nperio_tx_fifo_size;
int host_perio_tx_fifo_size; u16 host_perio_tx_fifo_size;
int max_transfer_size; u32 max_transfer_size;
int max_packet_count; u16 max_packet_count;
int host_channels; u8 host_channels;
int phy_type; u8 phy_type;
#define DWC2_PHY_TYPE_PARAM_FS 0 #define DWC2_PHY_TYPE_PARAM_FS 0
#define DWC2_PHY_TYPE_PARAM_UTMI 1 #define DWC2_PHY_TYPE_PARAM_UTMI 1
#define DWC2_PHY_TYPE_PARAM_ULPI 2 #define DWC2_PHY_TYPE_PARAM_ULPI 2
int phy_utmi_width; u8 phy_utmi_width;
int phy_ulpi_ddr; bool phy_ulpi_ddr;
int phy_ulpi_ext_vbus; bool phy_ulpi_ext_vbus;
#define DWC2_PHY_ULPI_INTERNAL_VBUS 0 #define DWC2_PHY_ULPI_INTERNAL_VBUS 0
#define DWC2_PHY_ULPI_EXTERNAL_VBUS 1 #define DWC2_PHY_ULPI_EXTERNAL_VBUS 1
int i2c_enable; bool i2c_enable;
int ulpi_fs_ls; bool ulpi_fs_ls;
int host_support_fs_ls_low_power; bool host_support_fs_ls_low_power;
int host_ls_low_power_phy_clk; bool host_ls_low_power_phy_clk;
#define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_48MHZ 0 #define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_48MHZ 0
#define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_6MHZ 1 #define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_6MHZ 1
int ts_dline; bool ts_dline;
int reload_ctl; bool reload_ctl;
int ahbcfg; u32 ahbcfg;
int uframe_sched; bool uframe_sched;
int external_id_pin_ctl; bool external_id_pin_ctl;
int hibernation; bool hibernation;
/* /*
* The following parameters are *only* set via device * The following parameters are *only* set via device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment