diff options
| author | Marek Vasut <[email protected]> | 2024-03-17 05:42:52 +0100 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2024-04-02 09:08:07 +0200 |
| commit | 4d158980897085a5b0255ab910208d8afc8522dc (patch) | |
| tree | a26bbb4a713c654c950b6055363eca136c665687 /include/dwc3-uboot.h | |
| parent | 42839c0fdf7893200d214200a1bd539fb4fbdf65 (diff) | |
usb: udc: dwc3: Fold board dm_usb_gadget_handle_interrupts() into DWC3 gadget
The dm_usb_gadget_handle_interrupts() has no place in board code. Move
this into DWC3 driver. The OMAP implementation is special, add new weak
dwc3_uboot_interrupt_status() function to decide whether DWC3 interrupt
handling should be called, and override it in OMAP DWC3 code, to repair
the special OMAP interrupt handling code until OMAP gets switched over
to DM UDC proper.
Signed-off-by: Marek Vasut <[email protected]>
Reviewed-by: Caleb Connolly <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Tested-by: Mattijs Korpershoek <[email protected]> # vim3
Tested-by: Caleb Connolly <[email protected]> # qcom sdm845
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include/dwc3-uboot.h')
| -rw-r--r-- | include/dwc3-uboot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dwc3-uboot.h b/include/dwc3-uboot.h index 35cfbb93b29..5f13f5bcf40 100644 --- a/include/dwc3-uboot.h +++ b/include/dwc3-uboot.h @@ -44,6 +44,7 @@ struct dwc3_device { int dwc3_uboot_init(struct dwc3_device *dev); void dwc3_uboot_exit(int index); +int dwc3_uboot_interrupt_status(struct udevice *dev); void dwc3_uboot_handle_interrupt(struct udevice *dev); struct phy; |
