platform/chrome: cros_ec: Import Type C host commands
authorPrashant Malani <pmalani@chromium.org>
Thu, 29 Oct 2020 22:27:36 +0000 (15:27 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 12 Nov 2020 20:32:09 +0000 (21:32 +0100)
commitcd2c40ff90b0e385c18f881ab5e17f7137864223
tree641913cbc70ca4c2ff80bcdb5aa1aa22a2f35e0d
parent514acf1cefd020eb21d7c180050a8d66b723d2d8
platform/chrome: cros_ec: Import Type C host commands

Import the EC_CMD_TYPEC_STATUS and EC_CMD_TYPEC_DISCOVERY Chrome OS EC
host commands from the EC code base [1].

These commands can be used by the application processor to query Power
Delivery (PD) discovery information concerning connected Type C
peripherals.

Also add the EC_FEATURE_TYPEC_CMD feature flag, which is used to
determine whether these commands are supported by the EC.

[1]:
https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/include/ec_commands.h

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20201029222738.482366-5-pmalani@chromium.org
include/linux/platform_data/cros_ec_commands.h