Skip to content

Commit a8c17b9

Browse files
IoanaCiorneichleroy
authored andcommitted
bus: fsl-mc: add the dprc_get_mem() command to the whitelist
Add a new MC command to the list of accepted firmware commands. The DPRC_GET_MEM command can be used to gather information on the internal memory characteristics. Signed-off-by: Ioana Ciornei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christophe Leroy <[email protected]>
1 parent c78230a commit a8c17b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/bus/fsl-mc/fsl-mc-uapi.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ enum fsl_mc_cmd_index {
4848
DPRC_GET_POOL,
4949
DPRC_GET_POOL_COUNT,
5050
DPRC_GET_CONNECTION,
51+
DPRC_GET_MEM,
5152
DPCI_GET_LINK_STATE,
5253
DPCI_GET_PEER_ATTR,
5354
DPAIOP_GET_SL_VERSION,
@@ -194,6 +195,12 @@ static struct fsl_mc_cmd_desc fsl_mc_accepted_cmds[] = {
194195
.token = true,
195196
.size = 32,
196197
},
198+
[DPRC_GET_MEM] = {
199+
.cmdid_value = 0x16D0,
200+
.cmdid_mask = 0xFFF0,
201+
.token = true,
202+
.size = 12,
203+
},
197204

198205
[DPCI_GET_LINK_STATE] = {
199206
.cmdid_value = 0x0E10,

0 commit comments

Comments
 (0)