diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2018-11-16 12:35:35 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-17 05:16:21 -0800 |
commit | fdeda2324792fc4a5db61779c1b03bb740c2bc90 (patch) | |
tree | 2ac97a91b428379b9b59d8ced199b112cc03a931 /include | |
parent | e8b6819b899cb8528f1ec1873bbc585bf8671405 (diff) | |
download | chrome-ec-fdeda2324792fc4a5db61779c1b03bb740c2bc90.tar.gz |
usb_mux_virtual: Update the virtual MUX when HPD level or irq changes
HPD level changes when there is an attach or detach event of the HPD.
Hence virtual MUX level need to be updated with the current HPD level
and a host notification needs to be sent so that host can configure
the HPD MUX.
BUG=b:118477809
BRANCH=none
TEST=Manually tested on Dragonegg, observed HPD event updated by
EC is received by Kernel MUX driver.
Change-Id: Ib916ebb3f6cbcfe2cb3e738f5b3e14d29e1bc27c
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1340491
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 45198db0dc..82e1dab1a6 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4925,10 +4925,11 @@ struct ec_params_usb_pd_mux_info { } __ec_align1; /* Flags representing mux state */ -#define USB_PD_MUX_USB_ENABLED (1 << 0) -#define USB_PD_MUX_DP_ENABLED (1 << 1) -#define USB_PD_MUX_POLARITY_INVERTED (1 << 2) -#define USB_PD_MUX_HPD_IRQ (1 << 3) +#define USB_PD_MUX_USB_ENABLED (1 << 0) /* USB connected */ +#define USB_PD_MUX_DP_ENABLED (1 << 1) /* DP connected */ +#define USB_PD_MUX_POLARITY_INVERTED (1 << 2) /* CC line Polarity inverted */ +#define USB_PD_MUX_HPD_IRQ (1 << 3) /* HPD IRQ is asserted */ +#define USB_PD_MUX_HPD_LVL (1 << 4) /* HPD level is asserted */ struct ec_response_usb_pd_mux_info { uint8_t flags; /* USB_PD_MUX_*-encoded USB mux state */ |