1 /* SPDX-License-Identifier: GPL-2.0-only */
5 bool dp_aux_request_is_write(enum aux_request request
)
8 case I2C_RAW_WRITE_AND_STOP
:
17 enum i2c_over_aux
dp_get_aux_cmd(enum aux_request request
, uint32_t remaining_after_this
)
20 case I2C_RAW_WRITE_AND_STOP
:
21 if (!remaining_after_this
)
22 return I2C_OVER_AUX_WRITE_MOT_0
;
25 return I2C_OVER_AUX_WRITE_MOT_1
;
26 case I2C_RAW_READ_AND_STOP
:
27 if (!remaining_after_this
)
28 return I2C_OVER_AUX_READ_MOT_0
;
31 return I2C_OVER_AUX_READ_MOT_1
;
33 return NATIVE_AUX_WRITE
;
36 return NATIVE_AUX_READ
;