Skip to content

Commit 57b8e23

Browse files
jysnpsFelipe Balbi
authored andcommitted
usb: dwc2: Rearrange param structure members
Group the members by global, host, and gadget params. Formatting and organizational change only. Signed-off-by: John Youn <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent d21bcc3 commit 57b8e23

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

drivers/usb/dwc2/core.h

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -457,53 +457,48 @@ struct dwc2_core_params {
457457
#define DWC2_CAP_PARAM_SRP_ONLY_CAPABLE 1
458458
#define DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE 2
459459

460-
bool dma_desc_enable;
461-
bool dma_desc_fs_enable;
462-
u8 speed;
463-
#define DWC2_SPEED_PARAM_HIGH 0
464-
#define DWC2_SPEED_PARAM_FULL 1
465-
#define DWC2_SPEED_PARAM_LOW 2
466-
467-
bool enable_dynamic_fifo;
468-
bool en_multiple_tx_fifo;
469-
u16 host_rx_fifo_size;
470-
u16 host_nperio_tx_fifo_size;
471-
u16 host_perio_tx_fifo_size;
472-
u32 max_transfer_size;
473-
u16 max_packet_count;
474-
u8 host_channels;
475460
u8 phy_type;
476461
#define DWC2_PHY_TYPE_PARAM_FS 0
477462
#define DWC2_PHY_TYPE_PARAM_UTMI 1
478463
#define DWC2_PHY_TYPE_PARAM_ULPI 2
479464

465+
u8 speed;
466+
#define DWC2_SPEED_PARAM_HIGH 0
467+
#define DWC2_SPEED_PARAM_FULL 1
468+
#define DWC2_SPEED_PARAM_LOW 2
469+
480470
u8 phy_utmi_width;
481471
bool phy_ulpi_ddr;
482472
bool phy_ulpi_ext_vbus;
483-
#define DWC2_PHY_ULPI_INTERNAL_VBUS 0
484-
#define DWC2_PHY_ULPI_EXTERNAL_VBUS 1
473+
#define DWC2_PHY_ULPI_INTERNAL_VBUS 0
474+
#define DWC2_PHY_ULPI_EXTERNAL_VBUS 1
485475

476+
bool enable_dynamic_fifo;
477+
bool en_multiple_tx_fifo;
486478
bool i2c_enable;
487479
bool ulpi_fs_ls;
488-
bool host_support_fs_ls_low_power;
489-
bool host_ls_low_power_phy_clk;
490-
#define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_48MHZ 0
491-
#define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_6MHZ 1
492-
493480
bool ts_dline;
494481
bool reload_ctl;
495-
u32 ahbcfg;
496482
bool uframe_sched;
497483
bool external_id_pin_ctl;
498484
bool hibernation;
499-
500-
/*
501-
* The following parameters are *only* set via device
502-
* properties and cannot be set directly in this structure.
503-
*/
485+
u16 max_packet_count;
486+
u32 max_transfer_size;
487+
u32 ahbcfg;
504488

505489
/* Host parameters */
506490
bool host_dma;
491+
bool dma_desc_enable;
492+
bool dma_desc_fs_enable;
493+
bool host_support_fs_ls_low_power;
494+
bool host_ls_low_power_phy_clk;
495+
#define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_48MHZ 0
496+
#define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_6MHZ 1
497+
498+
u8 host_channels;
499+
u16 host_rx_fifo_size;
500+
u16 host_nperio_tx_fifo_size;
501+
u16 host_perio_tx_fifo_size;
507502

508503
/* Gadget parameters */
509504
bool g_dma;

0 commit comments

Comments
 (0)