diff options
| author | Alexey Romanov <[email protected]> | 2023-01-10 13:56:48 +0300 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2023-01-10 15:27:40 +0100 |
| commit | 23435cfb3a2b672d7006d2d7e04276bd39fbb1a5 (patch) | |
| tree | 36f14d159c9ec1aa6b2a1f4018ea5c8aa95305a8 /doc/usage/cmd | |
| parent | 311106a1c6eebdc5d0284faae30bf9087227a6c1 (diff) | |
doc/usage: cmd: documentation for meson/sm command
Added docs for Meson Security Monitor command.
Signed-off-by: Alexey Romanov <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Neil Armstrong <[email protected]>
Diffstat (limited to 'doc/usage/cmd')
| -rw-r--r-- | doc/usage/cmd/sm.rst | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/usage/cmd/sm.rst b/doc/usage/cmd/sm.rst new file mode 100644 index 00000000000..c41227f4b3b --- /dev/null +++ b/doc/usage/cmd/sm.rst @@ -0,0 +1,44 @@ +.. SPDX-License-Identifier: GPL-2.0+: + +sm command +========== + +Synopis +------- + +:: + + sm serial <address> + sm reboot_reason [name] + sm efuseread <offset> <size> <address> + sm efusewrite <offset> <size> <address> + sm efusedump <offset> <size> + +Description +----------- + +The sm command is used to request services from the secure monitor. User +can call secure monitor to request special TEE function, for example chip +serial number info, reboot reason, etc. + +sm serial + Retrieve chip unique serial number from sm and write it to memory on + appropriate address. + +sm reboot_reason + Print reboot reason to the console, if parameter [name] isn't specified. + If parameter specified, set reboot reason string to environment variable + with this name. + +sm efuseread + Read <size> bytes starting from <offset> from efuse memory bank and write + result to the address <address>. + +sm efusewrite + Write into efuse memory bank, starting from <offset>, the <size> bytes + of data, located at address <address>. + +Configuration +------------- + +To use the sm command you must specify CONFIG_CMD_MESON=y |
