aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/intel/pmc_mux/conn/chip.h
blob: 8497350337b97ac394a0ec0a214739ca3dd2347d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef __DRIVERS_INTEL_PMC_MUX_CONN_H__
#define __DRIVERS_INTEL_PMC_MUX_CONN_H__

enum typec_orientation {
	/* The orientation of the signal follows the orientation of the CC lines. */
	TYPEC_ORIENTATION_FOLLOW_CC = 0,
	/* The orientation of the signal is fixed to follow CC1 */
	TYPEC_ORIENTATION_NORMAL,
	/* The orientation of the signal is fixed to follow CC2 */
	TYPEC_ORIENTATION_REVERSE,
};

struct drivers_intel_pmc_mux_conn_config {
	/* 1-based port numbers (from SoC point of view) */
	int usb2_port_number;
	/* 1-based port numbers (from SoC point of view) */
	int usb3_port_number;
	/* Orientation of the sideband signals (SBU) */
	enum typec_orientation sbu_orientation;
	/* Orientation of the High Speed lines */
	enum typec_orientation hsl_orientation;
};

#endif /* __DRIVERS_INTEL_PMC_MUX_CONN_H__ */