File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
include/linux/platform_data Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -5044,8 +5044,11 @@ struct ec_response_pd_status {
5044
5044
#define PD_EVENT_POWER_CHANGE BIT(1)
5045
5045
#define PD_EVENT_IDENTITY_RECEIVED BIT(2)
5046
5046
#define PD_EVENT_DATA_SWAP BIT(3)
5047
+ #define PD_EVENT_TYPEC BIT(4)
5048
+ #define PD_EVENT_PPM BIT(5)
5049
+
5047
5050
struct ec_response_host_event_status {
5048
- uint32_t status ; /* PD MCU host event status */
5051
+ uint32_t status ; /* PD MCU host event status */
5049
5052
} __ec_align4 ;
5050
5053
5051
5054
/* Set USB type-C port role and muxes */
@@ -6105,6 +6108,29 @@ struct ec_response_typec_vdm_response {
6105
6108
6106
6109
#undef VDO_MAX_SIZE
6107
6110
6111
+ /*
6112
+ * UCSI OPM-PPM commands
6113
+ *
6114
+ * These commands are used for communication between OPM and PPM.
6115
+ * Only UCSI3.0 is tested.
6116
+ */
6117
+
6118
+ #define EC_CMD_UCSI_PPM_SET 0x0140
6119
+
6120
+ /* The data size is stored in the host command protocol header. */
6121
+ struct ec_params_ucsi_ppm_set {
6122
+ uint16_t offset ;
6123
+ uint8_t data [];
6124
+ } __ec_align2 ;
6125
+
6126
+ #define EC_CMD_UCSI_PPM_GET 0x0141
6127
+
6128
+ /* For 'GET' sub-commands, data will be returned as a raw payload. */
6129
+ struct ec_params_ucsi_ppm_get {
6130
+ uint16_t offset ;
6131
+ uint8_t size ;
6132
+ } __ec_align2 ;
6133
+
6108
6134
/*****************************************************************************/
6109
6135
/* The command range 0x200-0x2FF is reserved for Rotor. */
6110
6136
You can’t perform that action at this time.
0 commit comments