aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBenson Leung <bleung@chromium.org>2018-04-11 01:29:14 -0400
committerBenson Leung <bleung@chromium.org>2018-04-11 01:30:34 -0400
commitc171d3b8a67e08884d915ffbb1dbc475747d7df2 (patch)
treed2061a569bffc691e9dde9c994e1889f5658bd9d /include/linux
parent72655f6cf7fe04b867776bb7120fbdb84dee4f61 (diff)
parentc1d1e91aff3d1183d6b16a282c2575e3e006cee4 (diff)
Merge remote-tracking branch 'origin/ib-chrome-platform-cros-ec-sysfs-debugfs-for-v4.17' into working-branch-for-4.17
Merging Enric's cros-ec sysfs and debugfs fixes from immutable branch. Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/cros_ec.h2
-rw-r--r--include/linux/mfd/cros_ec_commands.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index c61535979b8f..2d4e23c9ea0a 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -183,6 +183,7 @@ struct cros_ec_debugfs;
183 * @ec_dev: cros_ec_device structure to talk to the physical device 183 * @ec_dev: cros_ec_device structure to talk to the physical device
184 * @dev: pointer to the platform device 184 * @dev: pointer to the platform device
185 * @debug_info: cros_ec_debugfs structure for debugging information 185 * @debug_info: cros_ec_debugfs structure for debugging information
186 * @has_kb_wake_angle: true if at least 2 accelerometer are connected to the EC.
186 * @cmd_offset: offset to apply for each command. 187 * @cmd_offset: offset to apply for each command.
187 */ 188 */
188struct cros_ec_dev { 189struct cros_ec_dev {
@@ -191,6 +192,7 @@ struct cros_ec_dev {
191 struct cros_ec_device *ec_dev; 192 struct cros_ec_device *ec_dev;
192 struct device *dev; 193 struct device *dev;
193 struct cros_ec_debugfs *debug_info; 194 struct cros_ec_debugfs *debug_info;
195 bool has_kb_wake_angle;
194 u16 cmd_offset; 196 u16 cmd_offset;
195 u32 features[2]; 197 u32 features[2];
196}; 198};
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h
index 2b96e630e3b6..f2edd9969b40 100644
--- a/include/linux/mfd/cros_ec_commands.h
+++ b/include/linux/mfd/cros_ec_commands.h
@@ -2948,6 +2948,9 @@ struct ec_response_usb_pd_control_v1 {
2948 2948
2949#define EC_CMD_USB_PD_PORTS 0x102 2949#define EC_CMD_USB_PD_PORTS 0x102
2950 2950
2951/* Maximum number of PD ports on a device, num_ports will be <= this */
2952#define EC_USB_PD_MAX_PORTS 8
2953
2951struct ec_response_usb_pd_ports { 2954struct ec_response_usb_pd_ports {
2952 uint8_t num_ports; 2955 uint8_t num_ports;
2953} __packed; 2956} __packed;