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

MPFS boot enhancements #14994

Merged
merged 2 commits into from
Nov 29, 2024
Merged

MPFS boot enhancements #14994

merged 2 commits into from
Nov 29, 2024

Commits on Nov 29, 2024

  1. risc-v/mpfs: introduce CONFIG_MPFS_CLKINIT flag

    This CONFIG_MPFS_CLKINIT is set with bootloaders by default. However,
    this gives an option to have it unset. In some cases, the clocks
    may be already set so it becomes unnecessary to re-initialize them.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    834d189 View commit details
    Browse the repository at this point in the history
  2. risc-v/mpfs: clear IPIs at boot

    Inter-processor interrupts (IPIs) are not cleared via mie/mip registers but
    rather, at the MPFS_CLINT_BASE + mhartid * 4 (a word or 4-byte offset for
    each hart).
    
    If there's an IPI waiting, the system will continue to boot altough it's
    expected to stay at the wfi loop waiting for the IPI.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    34f8599 View commit details
    Browse the repository at this point in the history