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

[sw/silicon_creator] Refactor ROM bootstrap into a common lib #19155

Merged
merged 3 commits into from
Jul 11, 2023

Commits on Jul 11, 2023

  1. [sw/silicon_creator] Move ROM bootstrap impl into common library

    The goal of the overarching refactor is to move bootstrap code into a
    library that can be shared by ROM and ROM_EXT. This will enable us to
    share code between the two variants of bootstrap. (ROM_EXT bootstrap is
    also referred to as "recovery".)
    
    This commit renames bootstrap.c and does a little surgery on BUILD files
    to ensure the bootstrap library still builds. Splitting this refactor
    into two commits preserves bootstrap.c's edit history.
    
    Issue lowRISC#19151
    
    Signed-off-by: Dan McArdle <dmcardle@opentitan.org>
    dmcardle committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    9707ba1 View commit details
    Browse the repository at this point in the history
  2. [sw/silicon_creator] Refactor bootstrap and reflash libraries

    Now, bootstrap() in bootstrap.c checks whether bootstrap is requested,
    but delegates the SPI loop to the common bootstrap library.
    
    Issue lowRISC#19151
    
    Signed-off-by: Dan McArdle <dmcardle@opentitan.org>
    dmcardle committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    93d211e View commit details
    Browse the repository at this point in the history
  3. [sw/silicon_creator] Create hollowed-out bootstrap lib for englishbre…

    …akfast
    
    This is based on the solution to issue lowRISC#12905.
    
    Signed-off-by: Dan McArdle <dmcardle@opentitan.org>
    dmcardle committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    639ccec View commit details
    Browse the repository at this point in the history