platform/chrome: cros_ec_typec: Add initial VDM support
authorPrashant Malani <pmalani@chromium.org>
Wed, 28 Dec 2022 00:45:11 +0000 (00:45 +0000)
committerPrashant Malani <pmalani@chromium.org>
Mon, 9 Jan 2023 20:32:53 +0000 (20:32 +0000)
commit493e699b9934d9cd6a46ecc7782540014b369267
tree94e3bcacf4484b58e4312188a60f198825b5cb24
parente5eea6a3319fcd0d6c71c8ff359e0d8c5b1bd5cd
platform/chrome: cros_ec_typec: Add initial VDM support

Add ops to support USB PD VDM (Vendor Defined Message) from the port
driver. This enables the port driver to interface with alternate mode
drivers and communicate with connected peripherals.

The initial support just contains an implementation of the Enter
Mode command.

Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
[pmalani: Fixed trivial conflict in Makefile]
Reviewed-by: Benson Leung <bleung@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20221228004648.793339-9-pmalani@chromium.org
MAINTAINERS
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_typec.c
drivers/platform/chrome/cros_typec_vdm.c [new file with mode: 0644]
drivers/platform/chrome/cros_typec_vdm.h [new file with mode: 0644]