From 23435cfb3a2b672d7006d2d7e04276bd39fbb1a5 Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Tue, 10 Jan 2023 13:56:48 +0300 Subject: [PATCH] doc/usage: cmd: documentation for meson/sm command Added docs for Meson Security Monitor command. Signed-off-by: Alexey Romanov Reviewed-by: Mattijs Korpershoek Link: https://lore.kernel.org/r/20230110105650.54580-4-avromanov@sberdevices.ru Signed-off-by: Neil Armstrong --- doc/usage/cmd/sm.rst | 44 ++++++++++++++++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + 2 files changed, 45 insertions(+) create mode 100644 doc/usage/cmd/sm.rst diff --git a/doc/usage/cmd/sm.rst b/doc/usage/cmd/sm.rst new file mode 100644 index 0000000000..c41227f4b3 --- /dev/null +++ b/doc/usage/cmd/sm.rst @@ -0,0 +1,44 @@ +.. SPDX-License-Identifier: GPL-2.0+: + +sm command +========== + +Synopis +------- + +:: + + sm serial
+ sm reboot_reason [name] + sm efuseread
+ sm efusewrite
+ sm efusedump + +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 bytes starting from from efuse memory bank and write + result to the address
. + +sm efusewrite + Write into efuse memory bank, starting from , the bytes + of data, located at address
. + +Configuration +------------- + +To use the sm command you must specify CONFIG_CMD_MESON=y diff --git a/doc/usage/index.rst b/doc/usage/index.rst index bbd40a6e18..9ae64db3f8 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -74,6 +74,7 @@ Shell commands cmd/setexpr cmd/size cmd/sound + cmd/sm cmd/temperature cmd/tftpput cmd/true -- 2.39.5