UPSTREAM: usb: typec: tcpm: Create legacy PDOs for PD2 connection
If the port partner is PD2, the PDOs of the local port should follow the
format defined in PD2 Spec. Dynamically modify the pre-defined PD3 PDOs
and transform them into PD2 format before sending them to the PD2 port
partner.
Reviewed-by: Guenter Roeck <linux@roeckus.net>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210115163311.391332-1-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f75a1025c0
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: If2ff7b60d9d9e1693bb152dcad812b0b64a5e334
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c4cf0788e1
commit
63c746b28a
@@ -225,6 +225,7 @@ enum pd_pdo_type {
|
||||
#define PDO_FIXED_EXTPOWER BIT(27) /* Externally powered */
|
||||
#define PDO_FIXED_USB_COMM BIT(26) /* USB communications capable */
|
||||
#define PDO_FIXED_DATA_SWAP BIT(25) /* Data role swap supported */
|
||||
#define PDO_FIXED_UNCHUNK_EXT BIT(24) /* Unchunked Extended Message supported (Source) */
|
||||
#define PDO_FIXED_FRS_CURR_MASK (BIT(24) | BIT(23)) /* FR_Swap Current (Sink) */
|
||||
#define PDO_FIXED_FRS_CURR_SHIFT 23
|
||||
#define PDO_FIXED_VOLT_SHIFT 10 /* 50mV units */
|
||||
|
||||
Reference in New Issue
Block a user