RFC: firmware: meson-sm: add chipid sysfs export
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | firmware: meson-sm: change sprintf to scnprintfdrivers/ | +1 | 0 replies | |
| 2/4 | firmware: meson_sm: Add chipid number sysfs entrydrivers/ | +53 | 0 replies | |
| 3/4 | soc: amlogic: meson-gx-socinfo: export socinfo for use in other modulesdrivers/ | +20 | 1 reply | |
| 4/4 | firmware: meson_sm: use meson_gx_socinfo for compatibilitydrivers/ | +17 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] RFC: firmware: meson-sm: add chipid sysfs export
The Amlogic Meson SoC Secure Monitor implements a call to retrieve an unique SoC ID starting from the GX Family and all new families. But GX-family chips (e.g. GXB, GXL and newer) supports also 128-bit chip ID. 128-bit chip ID consists 32-bit SoC version and 96-bit OTP data.
This patchset introduces an exported sysfs string for the 128-bit chipid, considering a check for the version of the returned value. If the chip does not support version 2 of the call, it falls back to (where possible) information from the meson-gx-socinfo driver to supplement the data from OTP.
Viacheslav Bocharov (4):
firmware: meson-sm: change sprintf to scnprintf
firmware: meson_sm: Add chipid number sysfs entry
soc: amlogic: meson-gx-socinfo: export socinfo for use in other
modules
firmware: meson_sm: use meson_gx_socinfo for compatibility
drivers/firmware/meson/meson_sm.c | 72 +++++++++++++++++++++++++- drivers/soc/amlogic/meson-gx-socinfo.c | 34 +++++++----- 2 files changed, 90 insertions(+), 16 deletions(-)
Signature · 1 line
2.34.1