[PATCH rtems 05/12] bsps/imxrt1052: PLL config based on speed grade

Christian Mauderer christian.mauderer at embedded-brains.de
Thu May 4 15:00:46 UTC 2023


---
 bsps/arm/imxrt/start/clock-arm-pll-config.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bsps/arm/imxrt/start/clock-arm-pll-config.c b/bsps/arm/imxrt/start/clock-arm-pll-config.c
index 12ad1867eb..2a0148e73a 100644
--- a/bsps/arm/imxrt/start/clock-arm-pll-config.c
+++ b/bsps/arm/imxrt/start/clock-arm-pll-config.c
@@ -26,8 +26,15 @@
  */
 
 #include "fsl_clock_config.h"
+#include <bspopts.h>
 
 const clock_arm_pll_config_t armPllConfig_BOARD_BootClockRUN = {
+#if (IMXRT_SPEEDGRADE == '6')
     .loopDivider = 100,
+#elif (IMXRT_SPEEDGRADE == '5')
+    .loopDivider = 88,
+#else
+    #error unknown speed grade of i.MXRT processor
+#endif
     .src = 0,
 };
-- 
2.35.3



More information about the devel mailing list