summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2018-03-23 20:42:46 +0300
committerBenson Leung <bleung@chromium.org>2018-04-11 08:24:51 +0300
commitb082b2e1454c3e0217d7cf70f2211966c3d54301 (patch)
treeb6cf2291b8e252388144df16bbd6c65363f7f8cb /include/linux
parentf63192800ebd01099d3487f7fef1dd0ee0b18b45 (diff)
downloadlinux-b082b2e1454c3e0217d7cf70f2211966c3d54301.tar.xz
platform/chrome: cros_ec_debugfs: Add PD port info to debugfs
Add info useful for debugging USB-PD port state. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/cros_ec_commands.h3
1 files changed, 3 insertions, 0 deletions
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 {
#define EC_CMD_USB_PD_PORTS 0x102
+/* Maximum number of PD ports on a device, num_ports will be <= this */
+#define EC_USB_PD_MAX_PORTS 8
+
struct ec_response_usb_pd_ports {
uint8_t num_ports;
} __packed;