mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
platform/chrome: Add Type C connector class driver
Add a driver to implement the Type C connector class for Chrome OS devices with ECs (Embedded Controllers). The driver relies on firmware device specifications for various port attributes. On ACPI platforms, this is specified using the logical device with HID GOOG0014. On DT platforms, this is specified using the DT node with compatible string "google,cros-ec-typec". The driver reads the device FW node and uses the port attributes to register the typec ports with the Type C connector class framework, but doesn't do much else. Subsequent patches will add more functionality to the driver, including obtaining current port information (polarity, vconn role, current power role etc.) after querying the EC. Co-developed-by: Benson Leung <bleung@chromium.org> Signed-off-by: Prashant Malani <pmalani@chromium.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
This commit is contained in:
committed by
Enric Balletbo i Serra
parent
a88214089d
commit
fdc6b21e24
@@ -214,6 +214,17 @@ config CROS_EC_SYSFS
|
||||
To compile this driver as a module, choose M here: the
|
||||
module will be called cros_ec_sysfs.
|
||||
|
||||
config CROS_EC_TYPEC
|
||||
tristate "ChromeOS EC Type-C Connector Control"
|
||||
depends on MFD_CROS_EC_DEV && TYPEC
|
||||
default MFD_CROS_EC_DEV
|
||||
help
|
||||
If you say Y here, you get support for accessing Type C connector
|
||||
information from the Chrome OS EC.
|
||||
|
||||
To compile this driver as a module, choose M here: the module will be
|
||||
called cros_ec_typec.
|
||||
|
||||
config CROS_USBPD_LOGGER
|
||||
tristate "Logging driver for USB PD charger"
|
||||
depends on CHARGER_CROS_USBPD
|
||||
|
||||
Reference in New Issue
Block a user