Add A10/A20 support for aw_sid.
Expose the rootkey via sysctl.
The rootkey can be used for product identification or to generate a mac address (this is was u-boot uses).
Details
Details
- Reviewers
jmcneill - Group Reviewers
ARM - Commits
- rS305440: MFC r303087
rS303087: Add support for the SID (Security ID Module) on Allwinner A10 and A20.
Tested on A10 and A20 hardware.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4490 Build 4541: arc lint + arc unit
Event Timeline
sys/arm/allwinner/aw_sid.c | ||
---|---|---|
184 | I think you can use %D here. It's part of printf(9). |
sys/arm/allwinner/aw_sid.c | ||
---|---|---|
184 | %D gives me the decimal representation. |
sys/arm/allwinner/aw_sid.c | ||
---|---|---|
184 | The libc printf will print a decimal representation, however the kernel printf will print a hexdump of a string. It is also not listed as being deprecated in the man page. |
sys/arm/allwinner/aw_sid.c | ||
---|---|---|
159 | Should return an error here if this gets called on something other than A10/A20. |
Comment Actions
Return ENXIO if rootkey is called on a SoC != A10 and A20 Return ENXIO if tscalib is called on a SoC != A83T