]> www.infradead.org Git - users/willy/xarray.git/commitdiff
platform/chrome: add PD_EVENT_INIT bit definition
authorJameson Thies <jthies@google.com>
Tue, 4 Feb 2025 02:45:58 +0000 (02:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2025 08:29:07 +0000 (09:29 +0100)
Update cros_ec_commands.h to include a definition for PD_EVENT_INIT.
On platforms supporting UCSI, this host event type is sent when the PPM
initializes.

Signed-off-by: Jameson Thies <jthies@google.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Ɓukasz Bartosik <ukaszb@chromium.org>
Link: https://lore.kernel.org/r/20250204024600.4138776-2-jthies@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/platform_data/cros_ec_commands.h

index ecf290a0c98f0b67d9dba157965aeeedf308e56b..1f4e4f2b89bb936b4b1c3f4162fec203b196cbc8 100644 (file)
@@ -5046,6 +5046,7 @@ struct ec_response_pd_status {
 #define PD_EVENT_DATA_SWAP         BIT(3)
 #define PD_EVENT_TYPEC             BIT(4)
 #define PD_EVENT_PPM               BIT(5)
+#define PD_EVENT_INIT              BIT(6)
 
 struct ec_response_host_event_status {
        uint32_t status; /* PD MCU host event status */