Skip to content

Commit

Permalink
i3c: add i3c shell
Browse files Browse the repository at this point in the history
Add an I3C shell. This includes support of all I3C CCC commands that
currently have helper functions implemented. This also includes all
the read/write shell commands that the i2c shell supported. An Info
command is also provided which will print out all i3c and i2c info
of an i3c bus. Only SDR read/writes are currently implemented.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
  • Loading branch information
XenuIsWatching committed Mar 27, 2024
1 parent dd0923d commit 6833699
Show file tree
Hide file tree
Showing 3 changed files with 1,141 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/i3c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ zephyr_library_sources_ifdef(
i3c_handlers.c
)

zephyr_library_sources_ifdef(
CONFIG_I3C_SHELL
i3c_shell.c
)

zephyr_library_sources_ifdef(
CONFIG_I3C_IBI_WORKQUEUE
i3c_ibi_workq.c
Expand Down
9 changes: 9 additions & 0 deletions drivers/i3c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ module = I3C
module-str = i3c
source "subsys/logging/Kconfig.template.log_config"

config I3C_SHELL
bool "I3C Shell"
depends on SHELL
help
Enable I3C Shell.

The I3C shell supports info, bus recovery, CCC, I3C read and
write operations.

config I3C_USE_GROUP_ADDR
bool "Use Group Addresses"
default y
Expand Down

0 comments on commit 6833699

Please sign in to comment.