-
Notifications
You must be signed in to change notification settings - Fork 2
bsp: imx95: add fuse section #409
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
base: main
Are you sure you want to change the base?
Conversation
The i.MX 95 features groups of programmable fuses. These can be locked additionally. For an initial section, keep it simple and focus on translating fuse positions from Reference Manual to U-Boot API. Signed-off-by: Yannic Moog <y.moog@phytec.de>
|
I deviated from the norm with including content in an intermediate file (i.e. imx95/fuses includes bsp/fuse instead of the head.rst manual). The goal/advantage of this would be that the leaf file is less cluttered and does not include multiple pieces of content for the same logical section. |
|
|
||
| All of the ``General Purpose fuse for customer use`` fuses are word aligned so | ||
| no care needs to be taken in regards to bit positions within a word. | ||
| Example of burning GPR4_CFG6 fuses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would add the Fuse Index to this example too.
| u-boot=> fuse read 40 6 | ||
| Reading bank 40: | ||
|
|
||
| Word 0x00000006: 0300BC9A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a warning about partial register writes here and remember which is the dominant state used for the fuses.
|
|
||
| \frac{i - 256b}{32} = w | ||
|
|
||
| where :math:`i` is the ``Fuse Index`` as specfied in the Reference Manual, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add maybe a more specific hint like chapter name where to find the fuse index description in the reference manual. Otherwise this alone is kind of abstract.
| :math:`b` is the bank and :math:`w` is the word U-Boot expects as arguments to fuse | ||
| commands. | ||
|
|
||
| MAC_ADDR example; Substituting 10400 for :math:`i` in case for the higher order |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add an info that phytec usually already fuses the mac with an valid address.
I think we already removed the fuse section in the past as people had trouble using it... So we should be sensitive here.
The i.MX 95 features groups of programmable fuses. These can be locked additionally. For an initial section, keep it simple and focus on translating fuse positions from Reference Manual to U-Boot API.