summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-04-24 16:53:24 +0700
committerGitHub <[email protected]>2023-04-24 16:53:24 +0700
commit964e7ebf2109df2d9880389cb677aef821e37fb1 (patch)
tree577a720c27da80ed065add44d71a4e2a4d37cfcb /src
parent8ede566c41ee0fc89929e7bc45cdbe31fe53bf0f (diff)
parent2cda9b60c99894db9a4610f80fc6f974f0499622 (diff)
Merge pull request #2013 from tannewt/imx_1042
Handle iMX RT 1042 usb naming
Diffstat (limited to 'src')
-rw-r--r--src/portable/chipidea/ci_hs/ci_hs_imxrt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/portable/chipidea/ci_hs/ci_hs_imxrt.h b/src/portable/chipidea/ci_hs/ci_hs_imxrt.h
index 2de0d9cb4..607926a65 100644
--- a/src/portable/chipidea/ci_hs/ci_hs_imxrt.h
+++ b/src/portable/chipidea/ci_hs/ci_hs_imxrt.h
@@ -37,6 +37,11 @@
#define USB2_BASE USB_OTG2_BASE
#endif
+// RT1040 calls its only USB USB_OTG (no 1)
+#if defined(MIMXRT1042_SERIES)
+#define USB_OTG1_IRQn USB_OTG_IRQn
+#endif
+
static const ci_hs_controller_t _ci_controller[] =
{
// RT1010 and RT1020 only has 1 USB controller