drivers: i3c: npcx: add HDR-DDR mode for transfer
1. Support HDR-DDR DMA transfer. 2. Remove polling mode in transfer. Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
This commit is contained in:
parent
4cec19952f
commit
03580e4a1b
2 changed files with 155 additions and 35 deletions
|
@ -1913,12 +1913,17 @@ struct i3c_reg {
|
|||
#define MCTRL_IBIRESP_ACK_MANDATORY 2 /* ACK with mandatory byte */
|
||||
#define MCTRL_IBIRESP_MANUAL 3
|
||||
|
||||
/* For REQUEST = EmitStartAddr */
|
||||
enum npcx_i3c_mctrl_type {
|
||||
NPCX_I3C_MCTRL_TYPE_I3C,
|
||||
NPCX_I3C_MCTRL_TYPE_I2C,
|
||||
NPCX_I3C_MCTRL_TYPE_I3C_HDR_DDR,
|
||||
};
|
||||
|
||||
/* For REQUEST = ForceExit/Target Reset */
|
||||
#define MCTRL_TYPE_HDR_EXIT 0
|
||||
#define MCTRL_TYPE_TGT_RESTART 2
|
||||
|
||||
/* MSTATUS options */
|
||||
#define MSTATUS_STATE_IDLE 0x0
|
||||
#define MSTATUS_STATE_TGTREQ 0x1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue