--- linux-4.9.37/drivers/usb/dwc3/dwc3-goke.h 1970-01-01 03:00:00.000000000 +0300 +++ linux-4.9.y/drivers/usb/dwc3/dwc3-goke.h 2021-06-07 13:01:34.000000000 +0300 @@ -0,0 +1,36 @@ +/* + * Copyright (c) Hunan Goke,Chengdu Goke,Shandong Goke. 2021. All rights reserved. + */ + +#ifndef USB_INCLUDE_DWC3_GOKE_H +#define USB_INCLUDE_DWC3_GOKE_H + +struct bsp_priv { + void __iomem *peri_crg; + void __iomem *sys_ctrl; + void __iomem *misc_ctrl; + unsigned int speed_id; +}; + +struct dwc3_host { + struct device *dev; + struct clk **clks; + int num_clocks; + void __iomem *ctrl_base; + void __iomem *crg_base; + struct reset_control *port_rst; + u32 crg_offset; + u32 crg_ctrl_def_mask; + u32 crg_ctrl_def_val; +}; + +extern int usb_get_max_speed(struct device *dev); +extern void bsp_dwc3_exited(void); + +#define DEV_NODE_FLAG0 0 +#define DEV_NODE_FLAG1 1 +#define DEV_NODE_FLAG2 2 + +#define U_LEVEL2 200 + +#endif