Skip to content

Commit

Permalink
drivers: i3c: add controller handoff support
Browse files Browse the repository at this point in the history
Add controller handoff

Signed-off-by: Ryan McClelland <[email protected]>
  • Loading branch information
XenuIsWatching committed Nov 30, 2024
1 parent 35bdbb3 commit 84ec905
Show file tree
Hide file tree
Showing 10 changed files with 1,054 additions and 244 deletions.
8 changes: 8 additions & 0 deletions drivers/i3c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ zephyr_library_sources(
i3c_common.c
)

if(CONFIG_I3C_NUM_OF_DESC_MEM_SLABS GREATER 0)
zephyr_library_sources(i3c_mem_slab.c)
endif()

if(CONFIG_I3C_I2C_NUM_OF_DESC_MEM_SLABS GREATER 0)
zephyr_library_sources(i3c_i2c_mem_slab.c)
endif()

zephyr_library_sources_ifdef(
CONFIG_USERSPACE
i3c_handlers.c
Expand Down
16 changes: 16 additions & 0 deletions drivers/i3c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,22 @@ config I3C_INIT_RSTACT
This determines whether the bus initialization routine
sends a reset action command to I3C targets.

config I3C_NUM_OF_DESC_MEM_SLABS
int "Number of I3C Device Descriptors Mem Slabs"
default 3
help
This is the number of memory slabs allocated from when
there is a device encounted through ENTDAA or DEFTGTS that
is not within known I3C devices.

config I3C_I2C_NUM_OF_DESC_MEM_SLABS
int "Number of I2C Device Descriptors Mem Slabs"
default 3
help
This is the number of memory slabs allocated from when
there is a device encounted through DEFTGTS that is not
within known I2C devices.

comment "Device Drivers"

rsource "Kconfig.nxp"
Expand Down
Loading

0 comments on commit 84ec905

Please sign in to comment.