Skip to content

Commit

Permalink
drivers: i3c: shell: add crhdly1 and crcaps to info
Browse files Browse the repository at this point in the history
Add crhdly1 and crcaps to the info shell command.

Signed-off-by: Ryan McClelland <[email protected]>
  • Loading branch information
XenuIsWatching committed Nov 2, 2024
1 parent f3e4bac commit ba246db
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions drivers/i3c/i3c_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ static int cmd_i3c_info(const struct shell *sh, size_t argc, char **argv)
"\tmrl: 0x%04x\n"
"\tmwl: 0x%04x\n"
"\tmax_ibi: 0x%02x\n"
"\tgetcaps: 0x%02x; 0x%02x; 0x%02x; 0x%02x",
"\tcrhdly1: 0x%02x\n"
"\tgetcaps: 0x%02x; 0x%02x; 0x%02x; 0x%02x\n"
"\tcrcaps: 0x%02x; 0x%02x",
desc->dev->name, (uint64_t)desc->pid,
desc->static_addr, desc->dynamic_addr,
#if defined(CONFIG_I3C_USE_GROUP_ADDR)
Expand All @@ -217,9 +219,10 @@ static int cmd_i3c_info(const struct shell *sh, size_t argc, char **argv)
desc->data_speed.maxwr,
desc->data_speed.max_read_turnaround,
desc->data_length.mrl, desc->data_length.mwl,
desc->data_length.max_ibi,
desc->data_length.max_ibi, desc->crhdly1,
desc->getcaps.getcap1, desc->getcaps.getcap2,
desc->getcaps.getcap3, desc->getcaps.getcap4);
desc->getcaps.getcap3, desc->getcaps.getcap4,
desc->crcaps.crcaps1, desc->crcaps.crcaps2);
found = true;
break;
}
Expand Down Expand Up @@ -253,7 +256,9 @@ static int cmd_i3c_info(const struct shell *sh, size_t argc, char **argv)
"\tmrl: 0x%04x\n"
"\tmwl: 0x%04x\n"
"\tmax_ibi: 0x%02x\n"
"\tgetcaps: 0x%02x; 0x%02x; 0x%02x; 0x%02x",
"\tcrhdly1: 0x%02x\n"
"\tgetcaps: 0x%02x; 0x%02x; 0x%02x; 0x%02x\n"
"\tcrcaps: 0x%02x; 0x%02x",
desc->dev->name, (uint64_t)desc->pid, desc->static_addr,
desc->dynamic_addr,
#if defined(CONFIG_I3C_USE_GROUP_ADDR)
Expand All @@ -263,9 +268,10 @@ static int cmd_i3c_info(const struct shell *sh, size_t argc, char **argv)
desc->data_speed.maxwr,
desc->data_speed.max_read_turnaround,
desc->data_length.mrl, desc->data_length.mwl,
desc->data_length.max_ibi, desc->getcaps.getcap1,
desc->getcaps.getcap2, desc->getcaps.getcap3,
desc->getcaps.getcap4);
desc->data_length.max_ibi, desc->crhdly1,
desc->getcaps.getcap1, desc->getcaps.getcap2,
desc->getcaps.getcap3, desc->getcaps.getcap4,
desc->crcaps.crcaps1, desc->crcaps.crcaps2);
}
} else {
shell_print(sh, "I3C: No devices found.");
Expand Down

0 comments on commit ba246db

Please sign in to comment.