[rtems commit] bsps/imxrt: Enable DMA clock

Christian Mauderer christianm at rtems.org
Mon May 17 07:13:08 UTC 2021


Module:    rtems
Branch:    master
Commit:    15e26f4d7f808368362fbe82888fe66485d082dd
Changeset: http://git.rtems.org/rtems/commit/?id=15e26f4d7f808368362fbe82888fe66485d082dd

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Wed May 12 11:34:52 2021 +0200

bsps/imxrt: Enable DMA clock

The EDMA is intialized so make sure the the clock is initialized too.

Update #4180

---

 bsps/arm/imxrt/start/bspstarthooks.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bsps/arm/imxrt/start/bspstarthooks.c b/bsps/arm/imxrt/start/bspstarthooks.c
index 2b6b59f..b814969 100644
--- a/bsps/arm/imxrt/start/bspstarthooks.c
+++ b/bsps/arm/imxrt/start/bspstarthooks.c
@@ -48,4 +48,7 @@ BSP_START_TEXT_SECTION void bsp_start_hook_1(void)
 
   /* Reduce frequency for I2C */
   CLOCK_SetDiv(kCLOCK_Lpi2cDiv, 5);
+
+  /* Enable EDMA clock. We initialize the EDMA so we need the clock. */
+  CLOCK_EnableClock(kCLOCK_Dma);
 }



More information about the vc mailing list