blob: 96347ae4a02710d1c1dbf2be70cd78b60d4b56b2 (
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
27
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef __DRIVERS_INTEL_PMC_MUX_CONN_H__
#define __DRIVERS_INTEL_PMC_MUX_CONN_H__
#include <boot/coreboot_tables.h>
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 type_c_orientation sbu_orientation;
/* Orientation of the High Speed lines */
enum type_c_orientation hsl_orientation;
};
/*
* Method verifies input "conn" device.
* Returns 'true' if device passed is Intel PMC MUX Conn device else returns 'false'.
* Method also outputs the usb2 and usb3 port numbers associated with the 'conn' device
*/
bool intel_pmc_mux_conn_get_ports(const struct device *conn, unsigned int *usb2_port,
unsigned int *usb3_port);
#endif /* __DRIVERS_INTEL_PMC_MUX_CONN_H__ */
|