usb: typec: tcpm: add support to set tcpc connector orientatition
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 22 Feb 2024 21:09:02 +0000 (22:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 13:29:30 +0000 (13:29 +0000)
commitac92ea6b656374abab230f9f38fd3f0ab6cd0d61
treec206375a1919d81812fb83914a58247bb7e79a7f
parent8774ea7a553e2aec323170d49365b59af0a2b7e0
usb: typec: tcpm: add support to set tcpc connector orientatition

This adds the support to set the connector orientation value
accordingly. This is part of the optional CONFIG_STANDARD_OUTPUT
register 0x18, specified within the USB port controller spsicification
rev. 2.0 [1].

[1] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240222210903.208901-4-m.felsch@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c
include/linux/usb/tcpm.h