Skip to content

veer: Add an OTP fuse controller driver - #980

Open
swenson wants to merge 1 commit into
OpenPRoT:mainfrom
swenson:claude/veer-otp
Open

swenson wants to merge 1 commit into
OpenPRoT:mainfrom
swenson:claude/veer-otp

Conversation

@swenson

@swenson swenson commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

veer_otp reads and writes fuses through the direct access interface (DAI) of the Caliptra-SS OTP controller, and has the controller write the digest of a partition. It takes the size of each access, 4 or 8 bytes, from the generated partition table.

The driver bounds its wait for the DAI, which does not become idle again in the controller's terminal error state. It returns an error when the DAI registers are locked.

The host tests run the driver against a model of the DAI in otp_ctrl_dai.sv. The on-device test reads the vendor public key hash and writes a word of the VENDOR_TEST fuses. It passes on the emulator and the VCK190. The emulator returns the error code of the DAI in a different register from the RTL (chipsalliance/caliptra-mcu-sw#2430), so the test expects no code there.

Fixes #805

veer_otp reads and writes fuses through the direct access interface
(DAI) of the Caliptra-SS OTP controller, and has the controller write
the digest of a partition. It takes the size of each access, 4 or 8
bytes, from the generated partition table.

The driver bounds its wait for the DAI, which does not become idle
again in the controller's terminal error state. It returns an error
when the DAI registers are locked.

The host tests run the driver against a model of the DAI in
otp_ctrl_dai.sv. The on-device test reads the vendor public key hash
and writes a word of the VENDOR_TEST fuses. It passes on the emulator
and the VCK190. The emulator returns the error code of the DAI in
a different register from the RTL (chipsalliance/caliptra-mcu-sw#2430),
so the test expects no code there.

Fixes OpenPRoT#805

Assisted-by: Claude:claude-fable-5-2

This branch has not been deployed

No deployments
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.

veer: Add an OTP fuse controller driver

1 participant