Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imx9_clockconfig: Add way to change and ask for PLL frequency #12229

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

pussuw
Copy link
Contributor

@pussuw pussuw commented Apr 24, 2024

Summary

This set of patches adds two things for iMX9:

  • A way to set PLL frequencies
  • A way to query PLL frequencies

The frequencies should be set during bootup, it is the responsibility of the second stage program loader (bootloader) to do this.
For most peripherals it is also important to know the root clock frequency, in order to calculate data rate for the peripheral.

Impact

Adds PLL support for iMX9

Testing

imx93-evk:nsh

The frequency LUT idea is not necessary as the PLL output can be calculated
by the CPU. It is better to do this as the clocks are set by the SPL (2nd
stage program loader) which means the NuttX payload would not have access
to such a LUT anyhow.

The mask PLL_DIV_RDIV_MASK is also fixed, as that was simply wrong.

Also add call to imx9_clockconfig (although it does not do anything yet).
This patch adds a way to configure PLL frequencies. The configuration is
given by board logic.

These values should only be modified by the bootloader, but we don't have
that yet so the flag is never activated.
@acassis acassis merged commit 0d9a3d9 into apache:master Apr 25, 2024
26 checks passed
@pussuw pussuw deleted the imx9_pllcfg branch April 25, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants