]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
doc/usage: cmd: documentation for meson/sm command
authorAlexey Romanov <avromanov@sberdevices.ru>
Tue, 10 Jan 2023 10:56:48 +0000 (13:56 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 10 Jan 2023 14:27:40 +0000 (15:27 +0100)
Added docs for Meson Security Monitor command.

Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20230110105650.54580-4-avromanov@sberdevices.ru
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
doc/usage/cmd/sm.rst [new file with mode: 0644]
doc/usage/index.rst

diff --git a/doc/usage/cmd/sm.rst b/doc/usage/cmd/sm.rst
new file mode 100644 (file)
index 0000000..c41227f
--- /dev/null
@@ -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
index bbd40a6e18972f09ce18a743000efee93ba84fa1..9ae64db3f8679ab108c14d0c384cdce8ab1c4b15 100644 (file)
@@ -74,6 +74,7 @@ Shell commands
    cmd/setexpr
    cmd/size
    cmd/sound
+   cmd/sm
    cmd/temperature
    cmd/tftpput
    cmd/true