Skip to content

Commit

Permalink
imx8mq-var-dart: clock_config: Do not disable PLLs
Browse files Browse the repository at this point in the history
Disabling PLLS causes video, audio, etc. to crash when loaded
in linux userspace via remoteproc framework.

Signed-off-by: Nate Drude <nate.d@variscite.com>
  • Loading branch information
nsdrude authored and FrancescoFerraro committed Feb 16, 2023
1 parent 4dcbb8f commit 7611be4
Show file tree
Hide file tree
Showing 38 changed files with 0 additions and 190 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/demo_apps/hello_world/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/driver_examples/gpt/capture/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/driver_examples/gpt/timer/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/driver_examples/pwm/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/driver_examples/rdc/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/driver_examples/sema4/uboot/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/driver_examples/uart/polling/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/driver_examples/wdog/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/project_template/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ void BOARD_BootClockRUN(void)
CLOCK_EnableClock(kCLOCK_Dram);
CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/rtos_examples/freertos_event/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/rtos_examples/freertos_hello/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/rtos_examples/freertos_i2c/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
5 changes: 0 additions & 5 deletions boards/dart_mx8mq/rtos_examples/freertos_mutex/clock_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ void BOARD_BootClockRUN(void)
// CLOCK_EnableClock(kCLOCK_Dram);
// CLOCK_EnableClock(kCLOCK_Sec_Debug);

/* Disable unused PLL */
CLOCK_DeinitSysPll3();
CLOCK_DeinitVideoPll1();
CLOCK_DeinitAudioPll1();
CLOCK_DeinitAudioPll2();
/* Update core clock */
SystemCoreClockUpdate();
}
Loading

0 comments on commit 7611be4

Please sign in to comment.