blob: c41227f4b3b514695d0c31490bda9b2609164309 [file] [log] [blame]
Alexey Romanov2cb63692023-01-10 13:56:48 +03001.. SPDX-License-Identifier: GPL-2.0+:
2
3sm command
4==========
5
6Synopis
7-------
8
9::
10
11 sm serial <address>
12 sm reboot_reason [name]
13 sm efuseread <offset> <size> <address>
14 sm efusewrite <offset> <size> <address>
15 sm efusedump <offset> <size>
16
17Description
18-----------
19
20The sm command is used to request services from the secure monitor. User
21can call secure monitor to request special TEE function, for example chip
22serial number info, reboot reason, etc.
23
24sm serial
25 Retrieve chip unique serial number from sm and write it to memory on
26 appropriate address.
27
28sm reboot_reason
29 Print reboot reason to the console, if parameter [name] isn't specified.
30 If parameter specified, set reboot reason string to environment variable
31 with this name.
32
33sm efuseread
34 Read <size> bytes starting from <offset> from efuse memory bank and write
35 result to the address <address>.
36
37sm efusewrite
38 Write into efuse memory bank, starting from <offset>, the <size> bytes
39 of data, located at address <address>.
40
41Configuration
42-------------
43
44To use the sm command you must specify CONFIG_CMD_MESON=y