swmbx: Introduce mailbox target driver #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce software mailbox driver, which enables the BMC to
communicate with the Root of Trust (RoT) over an I2C target interface.
Execute the following command at the BMC prompt to verify SWMBX functionality:
Verify the SWMBX address:
aspeed-pfr-tool -w 0x13 0x8
aspeed-pfr-tool -r 0x13
[Expected output: 0x8]
Verify the protected SWMBX address:
aspeed-pfr-tool -w 0x12 0x8
aspeed-pfr-tool -r 0x12
[Expected output: 0x0]
Verify the notify functionality:
aspeed-pfr-tool -w 0x13 0x8
On Ast1060 console, you should see [NOTIFY] SWMBX: notify triggered on port 0 addr 0x13
Verify the FIFO functionality:
aspeed-pfr-tool -w 0xd 0x1f
aspeed-pfr-tool -w 0xd 0x2f
aspeed-pfr-tool -w 0xd 0x3f
aspeed-pfr-tool -r 0xd
aspeed-pfr-tool -r 0xd
aspeed-pfr-tool -r 0xd
aspeed-pfr-tool -r 0xd
[Expected output: 0x1f, 0x2f, 0x3f, 0x0]