[v3,1/2] platform/chrome: cros_ec: Add Type C hard reset
diff mbox series

Message ID 20210420171617.3830902-1-pmalani@chromium.org
State Accepted
Commit 67880f1bc342ed4c94e72cad7f8ca76e5121aae3
Headers show
Series
  • [v3,1/2] platform/chrome: cros_ec: Add Type C hard reset
Related show

Commit Message

Prashant Malani April 20, 2021, 5:16 p.m. UTC
Update the EC command header to include the new event bit. This bit
is included in the latest version of the Chrome EC headers[1].

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

Signed-off-by: Prashant Malani <pmalani@chromium.org>
---

Changes in v3:
- Remove Change-Id tag and add Signed-off-by tag to the commit message.

v2 is the first version the patch was introduced.

 include/linux/platform_data/cros_ec_commands.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Enric Balletbo i Serra April 23, 2021, 6:57 a.m. UTC | #1
On Tue, 20 Apr 2021 10:16:11 -0700, Prashant Malani wrote:
> Update the EC command header to include the new event bit. This bit
> is included in the latest version of the Chrome EC headers[1].
> 
> [1] https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/ec_commands.h

Applied, thanks!

[1/2] platform/chrome: cros_ec: Add Type C hard reset
      commit: 67880f1bc342ed4c94e72cad7f8ca76e5121aae3
[2/2] platform/chrome: cros_ec_typec: Handle hard reset
      commit: 944b3a639573796debe3cd47298a5dd79810be73

Best regards,

Patch
diff mbox series

diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h
index 5ff8597ceabd..9156078c6fc6 100644
--- a/include/linux/platform_data/cros_ec_commands.h
+++ b/include/linux/platform_data/cros_ec_commands.h
@@ -5678,6 +5678,7 @@  enum tcpc_cc_polarity {
 
 #define PD_STATUS_EVENT_SOP_DISC_DONE		BIT(0)
 #define PD_STATUS_EVENT_SOP_PRIME_DISC_DONE	BIT(1)
+#define PD_STATUS_EVENT_HARD_RESET		BIT(2)
 
 struct ec_params_typec_status {
 	uint8_t port;