mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 04:38:10 +00:00
Implement the same initial clock configuration as what imxrt1176 has. Make an own table for PLL and root clock configurations for m33 and m7 targets. For the PLLs the code still only supports configuring the ARM_PLL. The difference to imxrt1176 is, that instead of just boolean .enable field, this table uses an .action field with 3 states: CONFIGURE, DISABLE and IGNORE. The reason is, that some root clocks can't be just forcefully stopped, but need a root-clock-specific sequence. This is solved by just leaving these clocks marked as IGNORE, so they retain their current state. Specifically, disabling the SEMC and NETC roots by M33 will prevent the M7 from booting. Also FLEXSPI shouldn't be touched, if the code is being executed from there. Also add a function for enabling 24 MHz oscillator clock, and an extendable function to enable the clock sources based on the clock configuration table. Assisted-by: Claude Code Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||