summaryrefslogtreecommitdiff
path: root/src/ec/google/chromeec/usbc_mux.c
blob: 64195428b0969207ae4d4cb497ceb695a00cb72e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */

#include <ec/google/chromeec/ec.h>

static const struct usbc_ops google_chromeec_usbc_ops = {
	.mux_ops = {
		.get_mux_info = google_chromeec_get_usbc_mux_info,
	},
	.dp_ops = {
		.wait_for_connection = google_chromeec_wait_for_displayport,
		.enter_dp_mode = google_chromeec_typec_control_enter_dp_mode,
		.wait_for_hpd = google_chromeec_wait_for_dp_hpd,
	},
};

const struct usbc_ops *usbc_get_ops(void)
{
	return &google_chromeec_usbc_ops;
}