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 morishitaandre committed Oct 31, 2024
1 parent bc36a20 commit a587294
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();
}
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();
}
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 a587294

Please sign in to comment.