mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 20:18:18 +00:00 
			
		
		
		
	The only call site of dwc3_uboot_handle_interrupt() is the dm_usb_gadget_handle_interrupts(), fold the former into the later. This makes dwc3_uboot_handle_interrupt() unavailable to be called from board code as well. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # vim3 Link: https://lore.kernel.org/r/20240317044357.547037-2-marek.vasut+renesas@mailbox.org Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
		
			
				
	
	
		
			66 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| /* include/dwc3-uboot.h
 | |
|  *
 | |
|  * Copyright (c) 2015 Texas Instruments Incorporated - https://www.ti.com
 | |
|  *
 | |
|  * Designware SuperSpeed USB uboot init
 | |
|  */
 | |
| 
 | |
| #ifndef __DWC3_UBOOT_H_
 | |
| #define __DWC3_UBOOT_H_
 | |
| 
 | |
| #include <generic-phy.h>
 | |
| #include <linux/usb/otg.h>
 | |
| #include <linux/usb/phy.h>
 | |
| 
 | |
| struct dwc3_device {
 | |
| 	unsigned long base;
 | |
| 	enum usb_dr_mode dr_mode;
 | |
| 	enum usb_phy_interface hsphy_mode;
 | |
| 	u32 maximum_speed;
 | |
| 	unsigned tx_fifo_resize:1;
 | |
| 	unsigned has_lpm_erratum;
 | |
| 	u8 lpm_nyet_threshold;
 | |
| 	unsigned is_utmi_l1_suspend;
 | |
| 	u8 hird_threshold;
 | |
| 	unsigned disable_scramble_quirk;
 | |
| 	unsigned u2exit_lfps_quirk;
 | |
| 	unsigned u2ss_inp3_quirk;
 | |
| 	unsigned req_p1p2p3_quirk;
 | |
| 	unsigned del_p1p2p3_quirk;
 | |
| 	unsigned del_phy_power_chg_quirk;
 | |
| 	unsigned lfps_filter_quirk;
 | |
| 	unsigned rx_detect_poll_quirk;
 | |
| 	unsigned dis_u3_susphy_quirk;
 | |
| 	unsigned dis_u2_susphy_quirk;
 | |
| 	unsigned dis_del_phy_power_chg_quirk;
 | |
| 	unsigned dis_tx_ipgap_linecheck_quirk;
 | |
| 	unsigned dis_enblslpm_quirk;
 | |
| 	unsigned dis_u2_freeclk_exists_quirk;
 | |
| 	unsigned tx_de_emphasis_quirk;
 | |
| 	unsigned tx_de_emphasis;
 | |
| 	int index;
 | |
| };
 | |
| 
 | |
| int dwc3_uboot_init(struct dwc3_device *dev);
 | |
| void dwc3_uboot_exit(int index);
 | |
| int dwc3_uboot_interrupt_status(struct udevice *dev);
 | |
| 
 | |
| struct phy;
 | |
| #if CONFIG_IS_ENABLED(PHY) && CONFIG_IS_ENABLED(DM_USB)
 | |
| int dwc3_setup_phy(struct udevice *dev, struct phy_bulk *phys);
 | |
| int dwc3_shutdown_phy(struct udevice *dev, struct phy_bulk *phys);
 | |
| #else
 | |
| static inline int dwc3_setup_phy(struct udevice *dev, struct phy_bulk *phys)
 | |
| {
 | |
| 	return -ENOTSUPP;
 | |
| }
 | |
| 
 | |
| static inline int dwc3_shutdown_phy(struct udevice *dev, struct phy_bulk *phys)
 | |
| {
 | |
| 	return -ENOTSUPP;
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif /* __DWC3_UBOOT_H_ */
 |