Skip to content

Commit

Permalink
i3c_controller: add offload submodule
Browse files Browse the repository at this point in the history
The offload module is embed in the axi module.
Perhaps it would be better to break axi_i3c_controller into multiple
submodules like the other modules, since the logic is more complex now.
Also, perhaps even merge with the host_controller block.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
  • Loading branch information
gastmaier committed Jul 17, 2023
1 parent de8f7fc commit a2c557f
Show file tree
Hide file tree
Showing 21 changed files with 659 additions and 308 deletions.
79 changes: 57 additions & 22 deletions docs/regmap/adi_regmap_i3c_controller.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,6 @@ ENDFIELD
############################################################################################
############################################################################################

REG
0x03
PARAMETERS
Controller parameters values.
ENDREG

FIELD
[3:0] 0x00000000
MAX_DEVS
RO
Maximum number of peripherals in the bus (does not count the controller).
Valid range is 0 to 15 devices.
ENDFIELD

############################################################################################
############################################################################################

REG
0x10
ENABLE
Expand Down Expand Up @@ -140,6 +123,12 @@ CMDR_PENDING
RW
If set to 0 the CMDR_PENDING interrupt is masked.

FIELD
[6] 0x00
IBI_PENDING
RW
If set to 0 the IBI_PENDING interrupt is masked.

############################################################################################
############################################################################################

Expand Down Expand Up @@ -387,31 +376,57 @@ FIELD
[1] 0x1
IBI_EMPTY
RO
If there is no element to be read in the IBIR FIFO.
If there is no element to be read in the IBI FIFO.
ENDFIELD

FIELD
[2] 0x1
SDI_EMPTY
RO
If there is no element to be read in the IBIR FIFO.
If there is no element to be read in the SDI FIFO.
ENDFIELD

############################################################################################
############################################################################################

REG
0x40
DAA_STATUS :TODO: Update to be a high level controller state, with DAA one of the states.
OPS
ENDREG

FIELD
[0] 0x??
DAA_STATUS_IN_PROGRESS
OPS_MODE
WO
Set 0 to private transfers, 1 to offload.
Setting to DAA automatically trigger the DAA process.
ENDFIELD

FIELD
[4:1] 0x??
OPS_OFFLOAD_LENGTH
WO
Offload commands length.
ENDFIELD

[5] 0x0
OPS_STATUS_DAA
RO
This bit is set to 1 when the assignment is in progress.
ENDFIELD

[6] 0x0
OPS_STATUS_PRIV_TRANSFER TODO: These status signals
RO
This bit is set to 1 when a private transfer is in progress.
ENDFIELD

[7] 0x0
OPS_STATUS_OFFLOAD
RO
This bit is set to 1 when a offload transfer is in progress.
ENDFIELD

############################################################################################
############################################################################################

Expand Down Expand Up @@ -533,7 +548,7 @@ ENDFIELD
############################################################################################

REG
0x90
0xa0
DEVS_CTRL
ENDREG

Expand All @@ -559,3 +574,23 @@ ENDFIELD

############################################################################################
############################################################################################

REG
0xb[0-f]
OFFLOAD_CMD_*
Offload command memory. Write commands in sequence to these addresses and update the
OFFLOAD_CMD_LENGTH register.
ENDREG

############################################################################################
############################################################################################

REG
0xc[0-f]
OFFLOAD_SDO_*
Offload SDO memory.
The length is infered by the commands and reset after each burst.
ENDREG

############################################################################################
############################################################################################
Loading

0 comments on commit a2c557f

Please sign in to comment.