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

Enhance OTP handling #1

Merged
merged 4 commits into from
Feb 25, 2020
Merged

Enhance OTP handling #1

merged 4 commits into from
Feb 25, 2020

Conversation

ptesarik
Copy link

@ptesarik ptesarik commented Feb 22, 2020

Rewrite OTP access and add otp_write for RPi4 and RPi3.

This is a clean rewrite of the OTP routines using new findings.
Based on previous research, this commit implements a write command.

       Use with care!
What is done cannot be undone.
This bit does not tell whether programming was OK, but whether
programming is enabled. Renaming should prevent confusion when
BCM283x support is added.
The OTP chip in BCM283x cannot program a full word in a single
command. Instead, individual bits must be programmed one by one.

There is also a subtle difference in program enable. The magic
sequence must be written to OTP_BITSEL, not OTP_DATA.

Tested on a RPi3 B (no plus).
@cleverca22 cleverca22 merged commit 6ddcdc6 into librerpi:vc4 Feb 25, 2020
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.

2 participants