-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rom: Populate fuses from OTP controller (#80)
We had to shave a few yaks. First, we added an autogenerator that takes the OTP memory map hjson file and uses it to generate a list of fuses (partitions, offsets, sizes) and some simple data structures for manipulating them, since doing so is fiddly and error-prone. Plus, this memory map is in the process of changing quite a lot, so this helps us avoid having to reprogram everything manually later. Then, we updated the emulator to use the autogenerated peripheral trait and the autogenerated fuse data, which will also help keep it up-to-date. Finally, we added in a section of ROM code to read the non-secret fuses from the OTP controller and write them to Calipta Core's SoC interface. (There is a hardware state machine that will write the secret fuses, so we don't have to worry about.) For now, I've checked in a copy of the latest `otp_ctrl_mmap.hjson` file from `caliptra-ss` because that repository does not have a single branch that contains both it and the I3C RDL that we need at the moment.
- Loading branch information
Showing
20 changed files
with
1,079 additions
and
449 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.