summaryrefslogtreecommitdiff
path: root/board/purism
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-03-17 05:42:52 +0100
committerMattijs Korpershoek <mkorpershoek@baylibre.com>2024-04-02 09:08:07 +0200
commit4d158980897085a5b0255ab910208d8afc8522dc (patch)
treea26bbb4a713c654c950b6055363eca136c665687 /board/purism
parent42839c0fdf7893200d214200a1bd539fb4fbdf65 (diff)
downloadu-boot-4d158980897085a5b0255ab910208d8afc8522dc.tar.gz
u-boot-4d158980897085a5b0255ab910208d8afc8522dc.tar.bz2
u-boot-4d158980897085a5b0255ab910208d8afc8522dc.zip
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 <marek.vasut+renesas@mailbox.org> Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # vim3 Tested-by: Caleb Connolly <caleb.connolly@linaro.org> # qcom sdm845 Link: https://lore.kernel.org/r/20240317044357.547037-1-marek.vasut+renesas@mailbox.org Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'board/purism')
-rw-r--r--board/purism/librem5/spl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/board/purism/librem5/spl.c b/board/purism/librem5/spl.c
index 581f092966..9aadc55330 100644
--- a/board/purism/librem5/spl.c
+++ b/board/purism/librem5/spl.c
@@ -418,12 +418,6 @@ out:
return rv;
}
-int dm_usb_gadget_handle_interrupts(struct udevice *dev)
-{
- dwc3_uboot_handle_interrupt(dev);
- return 0;
-}
-
static void dwc3_nxp_usb_phy_init(struct dwc3_device *dwc3)
{
u32 RegData;