@@ -65,29 +65,6 @@ static const clock_sys_pll2_config_t sysPll2Config = {
65
65
.ssEnable = false,
66
66
};
67
67
68
- #ifdef CONFIG_INIT_VIDEO_PLL
69
- static const clock_video_pll_config_t videoPllConfig = {
70
- /* PLL Loop divider, valid range for DIV_SELECT divider value: 27 ~ 54. */
71
- .loopDivider = 41 ,
72
- /* Divider after PLL, should only be 1, 2, 4, 8, 16, 32 */
73
- .postDivider = 0 ,
74
- /*
75
- * 30 bit numerator of fractional loop divider,
76
- * Fout = Fin * ( loopDivider + numerator / denominator )
77
- */
78
- .numerator = 1 ,
79
- /*
80
- * 30 bit denominator of fractional loop divider,
81
- * Fout = Fin * ( loopDivider + numerator / denominator )
82
- */
83
- .denominator = 960000 ,
84
- /* Spread spectrum parameter */
85
- .ss = NULL ,
86
- /* Enable spread spectrum or not */
87
- .ssEnable = false,
88
- };
89
- #endif
90
-
91
68
#if CONFIG_USB_DC_NXP_EHCI
92
69
usb_phy_config_struct_t usbPhyConfig = {
93
70
BOARD_USB_PHY_D_CAL ,
@@ -277,10 +254,31 @@ __weak void clock_init(void)
277
254
/* Init System Pll3 pfd3. */
278
255
CLOCK_InitPfd (kCLOCK_PllSys3 , kCLOCK_Pfd3 , 22 );
279
256
280
- #ifdef CONFIG_INIT_VIDEO_PLL
281
- /* Init Video Pll. */
282
- CLOCK_InitVideoPll (& videoPllConfig );
283
- #endif
257
+ static const clock_video_pll_config_t videoPllConfig = {
258
+ /* PLL Loop divider, valid range for DIV_SELECT divider value: 27 ~ 54. */
259
+ .loopDivider = 41 ,
260
+ /* Divider after PLL, should only be 1, 2, 4, 8, 16, 32 */
261
+ .postDivider = 0 ,
262
+ /*
263
+ * 30 bit numerator of fractional loop divider,
264
+ * Fout = Fin * ( loopDivider + numerator / denominator )
265
+ */
266
+ .numerator = 1 ,
267
+ /*
268
+ * 30 bit denominator of fractional loop divider,
269
+ * Fout = Fin * ( loopDivider + numerator / denominator )
270
+ */
271
+ .denominator = 960000 ,
272
+ /* Spread spectrum parameter */
273
+ .ss = NULL ,
274
+ /* Enable spread spectrum or not */
275
+ .ssEnable = false,
276
+ };
277
+
278
+ if (IS_ENABLED (CONFIG_INIT_VIDEO_PLL )) {
279
+ /* Init Video Pll. */
280
+ CLOCK_InitVideoPll (& videoPllConfig );
281
+ }
284
282
285
283
/* Module clock root configurations. */
286
284
/* Configure M7 using ARM_PLL_CLK */
0 commit comments