mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
usb: typec: Combine the definitions for Accessory and USB modes
There is no need to describe them sparately. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20200701115618.22482-2-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b9b70170db
commit
f470a65548
1 changed files with 5 additions and 9 deletions
|
@ -95,13 +95,7 @@ enum {
|
||||||
*
|
*
|
||||||
* Port drivers can use TYPEC_MODE_AUDIO and TYPEC_MODE_DEBUG as the mode
|
* Port drivers can use TYPEC_MODE_AUDIO and TYPEC_MODE_DEBUG as the mode
|
||||||
* value for typec_set_mode() when accessory modes are supported.
|
* value for typec_set_mode() when accessory modes are supported.
|
||||||
*/
|
*
|
||||||
enum {
|
|
||||||
TYPEC_MODE_AUDIO = TYPEC_STATE_MODAL, /* Audio Accessory */
|
|
||||||
TYPEC_MODE_DEBUG, /* Debug Accessory */
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
|
||||||
* USB4 also requires that the pins on the connector are repurposed, just like
|
* USB4 also requires that the pins on the connector are repurposed, just like
|
||||||
* Alternate Modes. USB4 mode is however not entered with the Enter Mode Command
|
* Alternate Modes. USB4 mode is however not entered with the Enter Mode Command
|
||||||
* like the Alternate Modes are, but instead with a special Enter_USB Message.
|
* like the Alternate Modes are, but instead with a special Enter_USB Message.
|
||||||
|
@ -112,9 +106,11 @@ enum {
|
||||||
* state values, just like the Accessory Modes.
|
* state values, just like the Accessory Modes.
|
||||||
*/
|
*/
|
||||||
enum {
|
enum {
|
||||||
TYPEC_MODE_USB2 = TYPEC_MODE_DEBUG, /* USB 2.0 mode */
|
TYPEC_MODE_USB2 = TYPEC_STATE_MODAL, /* USB 2.0 mode */
|
||||||
TYPEC_MODE_USB3, /* USB 3.2 mode */
|
TYPEC_MODE_USB3, /* USB 3.2 mode */
|
||||||
TYPEC_MODE_USB4 /* USB4 mode */
|
TYPEC_MODE_USB4, /* USB4 mode */
|
||||||
|
TYPEC_MODE_AUDIO, /* Audio Accessory */
|
||||||
|
TYPEC_MODE_DEBUG, /* Debug Accessory */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define TYPEC_MODAL_STATE(_state_) ((_state_) + TYPEC_STATE_MODAL)
|
#define TYPEC_MODAL_STATE(_state_) ((_state_) + TYPEC_STATE_MODAL)
|
||||||
|
|
Loading…
Add table
Reference in a new issue