nuttx/boards/arm/imxrt
Jukka Laitinen 9fa22b32c1 arch/arm/imxrt: Add board-specific clock configuration tables for imxrt118x
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>
2026-09-29 18:40:10 +08:00
..
arcx-socket-grid arch/arm: Reserve r10 via ARCHCFLAGS and hoist the PIC module flags. 2026-07-24 23:09:08 +08:00
fmu-v6xrt boards/arm/imxrt: add the Holybro Pixhawk 6X-RT 2026-09-23 18:51:23 -03:00
imxrt1020-evk arch/arm: Reserve r10 via ARCHCFLAGS and hoist the PIC module flags. 2026-07-24 23:09:08 +08:00
imxrt1050-evk !arch/arm: Use r9 as the PIC base register. 2026-08-06 01:38:23 +08:00
imxrt1060-evk !arch/arm: Use r9 as the PIC base register. 2026-08-06 01:38:23 +08:00
imxrt1064-evk !arch/arm: Use r9 as the PIC base register. 2026-08-06 01:38:23 +08:00
imxrt1170-evk !arch/arm: Use r9 as the PIC base register. 2026-08-06 01:38:23 +08:00
imxrt1180-evk arch/arm/imxrt: Add board-specific clock configuration tables for imxrt118x 2026-09-29 18:40:10 +08:00
teensy-4.x arch/arm: Reserve r10 via ARCHCFLAGS and hoist the PIC module flags. 2026-07-24 23:09:08 +08:00