Add Sunxi SID read support - #1
Open
karthi012 wants to merge 1 commit into
Open
Conversation
Author
|
@ssekar15 @parthitce Request for review. |
|
This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
parthitce
reviewed
Jul 16, 2026
parthitce
left a comment
Member
There was a problem hiding this comment.
Should be fine to submit upstream
| int tee_otp_get_die_id(uint8_t *buffer, size_t len) | ||
| { | ||
| if (!buffer || len != SUNXI_SID_CHIPID_LEN) | ||
| return -1; |
| return -1; | ||
|
|
||
| if (sunxi_sid_read_otp(buffer, len, SUNXI_SID_CHIP_ID_REG)) | ||
| return -1; |
karthi012
force-pushed
the
upstream/a133-sid
branch
from
August 13, 2026 08:09
60d9da0 to
a8b6d3a
Compare
Add a driver for the Allwinner Security ID (SID) efuse block, based on the register layout described in [1] and tested on the A133 SoC. A133 uses same SID layout as the H6 generation described there. Currently the driver only implements reading and is used for the chip ID and the HUK from efuse register. Note that the SID, including the HUK area, is readable from the normal world unless the secure boot fuse is burnt. The HUK is therefore only secret on devices with secure boot enabled. [1]: https://linux-sunxi.org/SID_Register_Guide Signed-off-by: Karthikeyan Kalamani <karthikeyan@linumiz.com> Reviewed-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@oss.qualcomm.com>
karthi012
force-pushed
the
upstream/a133-sid
branch
from
August 14, 2026 12:21
735faee to
6dc0ac3
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add supprt for allwinner sunxi sid registers read. Driver is tested on the A133 platform. For more information about the sunxi SID regiters see https://linux-sunxi.org/SID_Register_Guide